Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


log shipping restore job


log shipping restore job

Author
Message
muth_51
muth_51
Mr or Mrs. 500
Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)Mr or Mrs. 500 (532 reputation)

Group: General Forum Members
Points: 532 Visits: 2862
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?
vultar
vultar
Old Hand
Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)Old Hand (306 reputation)

Group: General Forum Members
Points: 306 Visits: 1213
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
SQLSACT
SQLSACT
UDP Broadcaster
UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)UDP Broadcaster (1.5K reputation)

Group: General Forum Members
Points: 1456 Visits: 2931
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search