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

Restore 1.9T on SQL 2008 Expand / Collapse
Author
Message
Posted Friday, November 16, 2012 4:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 10, 2014 4:32 AM
Points: 38, Visits: 476
Hi guys,

Need urgent help..
I am restoring 1.9T from multiple backup files, the restore was doing 10% an hour until it got to 80%.
Its been on 80% for the the last 4 hours, retore I/O are movind and there is activity on the disk.
What else can I check to verify that the restore is not stuck?
Post #1385598
Posted Friday, November 16, 2012 4:14 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 8:36 AM
Points: 36,777, Visits: 31,232
Nchax Phoku (11/16/2012)
Hi guys,

Need urgent help..
I am restoring 1.9T from multiple backup files, the restore was doing 10% an hour until it got to 80%.
Its been on 80% for the the last 4 hours, retore I/O are movind and there is activity on the disk.
What else can I check to verify that the restore is not stuck?


Considering the time you asked and the time it is now, the delta time represents the correct answer... just wait. Microsoft's progress reports apparently aren't based on duration.

As a sidebar, I recommend changing the progress reporting to 1% in the future for this size database.


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1385880
Posted Saturday, November 17, 2012 10:54 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: 2 days ago @ 5:51 AM
Points: 64, Visits: 1,226
This query will tell you how long the restore will take in seconds:

SELECT Percent_Complete, Estimated_Completion_Time / 1000 as [CompletionTimeSeconds]
FROM sys.dm_exec_requests
WHERE Command LIKE '%RESTORE%'
Post #1385957
Posted Saturday, November 17, 2012 11:57 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 9:05 AM
Points: 42,469, Visits: 35,540
_Beetlejuice (11/17/2012)
This query will tell you how long the restore will take in seconds:

SELECT Percent_Complete, Estimated_Completion_Time / 1000 as [CompletionTimeSeconds]
FROM sys.dm_exec_requests
WHERE Command LIKE '%RESTORE%'


It'll tell you how long the restore is estimated to take, which may be very different from the time it actually does take.

One reason I can think of, the last portion of a restore is to run crash recovery on the newly restored database, if the log is badly fragmented or there were lots of open transactions at the time of the backup, that recovery process may take a long time. From what I can tell, the progress (STATS = 10) is the percentage of the data copied (which can be easily calculated), not the percentage of time (which is incredibly difficult to estimate correctly)



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1385972
Posted Monday, November 19, 2012 2:30 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 10, 2014 4:32 AM
Points: 38, Visits: 476
Thanks everyone for responding.
@Jeff, I think I should do that next time
@_Beetlejuice, i got hold of the script but it gave me different estimated_completion_time
each time I ran it.
@GilaMonster, the log file was only 30G - not sure about the open transactions though.

By the way, the Restore took 8 hours from 80% to 100%.

Kind Regards
Post #1386243
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse