Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

log shipping restore job Expand / Collapse
Posted Thursday, July 25, 2013 7:11 AM


Group: General Forum Members
Last Login: Today @ 7:17 AM
Points: 499, Visits: 2,850
Sometimes our log shipping restore job takes too long to complete. Though the file sizes(around 1 GB) are small it takes 4-5 hours to finish. The wait type we observe is IO_Completion. This happens once in a while. When i check the percent_complete it shows 100 percent but the job still runs. The lag is above 12 hours. I am trying to restore the differential backup on to the secondary server database to keep the databases in sync without breaking the log shipping. But the restore job continuously picks all the files one by one that are to be restored. If I stop the job the database will go into suspect mode. I had this issue before. I moved all the files which need to be restored to other location.

How to stop the job without disturbing the state of the database so that i can continue with differential backup restore and then go back to log backup restore?
Post #1477472
Posted Thursday, July 25, 2013 4:48 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Saturday, October 15, 2016 1:06 PM
Points: 288, Visits: 1,213
What about stopping the copy job or moving the log files waiting to be restored to a separate temp folder on the same drive ? Not ideal but at least the job won't be able to restore any more files - its going into suspect mode because you're stopping a log restore before its complete.

Are you using ms log shipping or your own method ? We use powershell for our log shipping and it works really well - Worth checking this link;


Post #1477797
Posted Friday, July 26, 2013 7:49 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, October 13, 2016 1:22 AM
Points: 1,416, Visits: 2,931
Regarding the log running restore job, you are probably dealing with extensive VLF fragmentation.

Run DBCC LOGINFO against the database in question to check how many VLF's you have
Post #1478013
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse