Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Log shipping Restore job out of sync error

Posted on 2010-11-19
11
Medium Priority
?
405 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

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…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

704 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