Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Log shipping Restore job out of sync error

Posted on 2010-11-19
11
Medium Priority
?
406 Views
Last Modified: 2012-05-10
Hello Experts,

One of my Log shipping database is failing with out of sync alert even after reconfiguring 3 times till now. The backup job is running fine, the copy is fine and the restore is also running fine but its not moving forward. New logs are being copied over correctly. Not sure why the Retore job is not picking up logs. when i checked in the log_shipping_monitor_seconday table, the last_restored_file = 'NULL' it tell it never actually moved forward after the setup completed. Not sure where to go from here. Any thoughts?

0
Comment
Question by:parpaa
  • 6
  • 5
11 Comments
 
LVL 27

Expert Comment

by:Zberteoc
ID: 34183426
Make sure that before you setup the log shipping you backup the source database and restore it over the target database.  While you do this make sure that the source is not inserted by some outer processes. When you set up the log shipping the 2 databases have to be identical.
0
 

Author Comment

by:parpaa
ID: 34200473
I can defiantely take a source backup and copy it and restore it before configuring log shipping. But i didnt understand your statement here
 " While you do this make sure that the source is not inserted by some outer processes" - How can i control the outer process that inserts into the database?
0
 
LVL 27

Expert Comment

by:Zberteoc
ID: 34200991
By changing the db restricted access option to single user. In MS right click on db > Properties > Option > Restricted user.

When done change it back to multiple user.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:parpaa
ID: 34251518
No way i can do that.. its is  a prod db.
0
 
LVL 27

Expert Comment

by:Zberteoc
ID: 34253860
Ok, then try doing it while live. You still have to go through he backup restore process.
0
 

Author Comment

by:parpaa
ID: 34258468
I even tried that.. no luck :(
0
 
LVL 27

Expert Comment

by:Zberteoc
ID: 34269355
Are you sure that the log files location are setup correctly with the permissions for the 2 servers?
0
 

Author Comment

by:parpaa
ID: 34287203
yes very much. I cautiously did this for almost 5 times now. I have set up log shipping for numerous databases but only this one gives me hard time.
0
 
LVL 27

Accepted Solution

by:
Zberteoc earned 1200 total points
ID: 34287283
Is you principal in the FULL recovery mode? Have you left your secondary in recovery mode? Are the 2 servers the same version? I am not sure now what else to ask. :o)

It seems something very specific. In might be a faulty install or something. Try to repair the server see if it helps. A
0
 

Author Comment

by:parpaa
ID: 34287303
There are 7 other standy databases on the same cluster. Both are having same version. i was going through some forumns and they suggested to reboot the server and see. I didnt get a chance to do that. The primary is in Full Recovery mode and the seconday is in Standby/Readonly mode.
0
 

Author Comment

by:parpaa
ID: 34336167
It seems like we had another Transaction Log Backup job which wasn't turned off. This was the reason for those skipping transactions logs as it was unable to find the next tlog back up as part of Log shipping.

Thanks for your help!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question