Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

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

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 1:29 PM
Points: 395, Visits: 1,992
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: Wednesday, September 24, 2014 6:12 AM
Points: 234, Visits: 1,095
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;

http://www.sqlservercentral.com/articles/powershell/99832/

Cheers

Vultar
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: Monday, September 22, 2014 4:37 AM
Points: 1,379, Visits: 2,688
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