Solved

Log shipping Restore job out of sync error

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

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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now