We help IT Professionals succeed at work.

Log Shipping Error

I have set up log shipping for 2 servers. I have the files being sent to a 3rd server and then being copied to the secondary server. The LS jobs on the primary server are being completed and i see the files on the 3rd server. On the secondary server both the LScopy and LSretore are failing. Both are coming back with just Step failed errors and no other reasons. On the monitor i see that it has a 14421 error which i have looked and forums have been saying its not really an error to worry about.
Comment
Watch Question

Commented:
The LScopy and LSrestore wont work on the second server as it will be looking for the files localy ..  you have them residing on the third server...   what i would do is set up log shipping between you pimary and secondary servers and alter the copy job so it copies the log files to the secondard and your third server ..

Author

Commented:
is there no way to have it with a third server. reason being is that the primary server is being mirrored with a secondary server and there is a witness. these server are in another geographic location from us. we are setting up the log shipping to restore on a local SQL. To minimize bandwidth usage on the primary server with want it to quickly transfer the data to the witness server and then pull it from there to our local server.

Author

Commented:
I have set up the LS without the third server now. The LScopy works now but the LSrestore is still failing. This is the only error in the logs that I can find:

Date            6/14/2010 12:08:00 PM
Log            Job History (LSAlert_REQ-SQL-1\REQSQL1)

Step ID            1
Server            REQ-SQL-1\REQSQL1
Job Name            LSAlert_REQ-SQL-1\REQSQL1
Step Name            Log shipping alert job step.
Duration            00:00:00
Sql Severity            16
Sql Message ID            14421
Operator Emailed            
Operator Net sent            
Operator Paged            
Retries Attempted            0

Message
Executed as user: REQUIRE\privacy. The log shipping secondary database REQ-SQL-1\REQSQL1.testlogshipping has restore threshold of 45 minutes and is out of sync. No restore was performed for 685043 minutes. Restored latency is 30 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14421).  The step failed.





Author

Commented:
Update: After reviewing the logs again and looking at the successful steps, on of the actually contained an error that was access issue. found out that one of the sqlagent service was running under another account. went through all accounts to make sure they are the same even on third machine. Now i have the log shipping working with three machines.

New problem is that i create a new table on the primary but on the secondary it is not being added even though all the jobs are completing successfully.

Commented:
Now that is wierd ..   is the data being loaded into the secondary ..  ie add 100 rows into the primary , do they load into the secondary ?

Author

Commented:
so i figured out that the LSrestore job is completing but it actually is not restoring because it is unable to locate an appropriate file to restore. all the files are there from the backup of the primary. when i try to do a manual restore it says that the file is not the right and that there is an earlier version.

i have tried deleting all the files and removing the log shipping then creating it again and it still does it.
Commented:
ok...   you can logship from 1 primary to 2 secondary servers ...  but as far as i am aware you can logship from 1 primary to  a standby then a secondary ..

The only way i can see to do this is setup manual log shipping "which i use to do in sql 2000 standard edition "  you will have to edit the script in the link to fit with 2005

http://www.sqlservercentral.com/Forums/Topic456549-54-1.aspx

Author

Commented:
So i have it working now. the issue was that there was another backup job running that was saving files that the LSrestore would be looking for. Disabled that job and all is working fine now. created new tables from primary and they shipped over to secondary. It is working well with the third server.
James MurrellProduct Specialist

Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.