Solved

Log shipping Restore job out of sync error

Posted on 2010-11-19
11
403 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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 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

Independent Software Vendors: 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

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard 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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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