Solved

Log shipping Restore job out of sync error

Posted on 2010-11-19
11
400 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 26

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 26

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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

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

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 26

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 26

Accepted Solution

by:
Zberteoc earned 300 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
In this article I will describe the Detach & Attach 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.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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