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

Multiple Server Reboot with SQL Server 2008 R2 on it Expand / Collapse
Author
Message
Posted Monday, November 12, 2012 11:52 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 2:40 AM
Points: 417, Visits: 866
Hi Experts,

Our network team needs to upgrade firmware and other things on the server which has SQL Server 2008 on it. For this upgrade they will need to reboot machine at least 3-4 times in about 30 mins window. This server has about 20 databases on it and most of them are over 100 GB with the biggest one being 600 GB. Once the machine is rebooted, of course SQL Databases take some time to recover.

If we restart machine 3-4 times in this small time window, Can there be any problem with the databases? What happens if they are not recovered during the first reboot and we reboot it again? Any suggestions will help. Thanks in advance...
Post #1383805
Posted Monday, November 12, 2012 12:45 PM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, August 12, 2014 12:40 PM
Points: 945, Visits: 1,771
what i might do is manually shut down the service then disable the SQL Server service while they do their multiple reboots then once they are done restart and re-enable the service. Since im not sure as to whether the multiple restarts would do any harm but i know not starting SQL Server durring the reboots will prevent any issues that may be possible i would probably go that route.


For faster help in answering any problems Please read How to post data/code on a forum to get the best help - Jeff Moden for the best way to ask your question.

For performance Issues see how we like them posted here: How to Post Performance Problems - Gail Shaw

Need to Split some strings? Jeff Moden's DelimitedSplit8K
Jeff Moden's Cross tab and Pivots Part 1
Jeff Moden's Cross tab and Pivots Part 2

Jeremy Oursler
Post #1383826
Posted Monday, November 12, 2012 12:49 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 2:40 AM
Points: 417, Visits: 866
Thanks capnhector. That is what I am planning to do, but was just curious to know if not then this can real cause any corruption etc...
Post #1383827
Posted Monday, November 12, 2012 12:50 PM


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:44 AM
Points: 42,822, Visits: 35,953
apat (11/12/2012)
That is what I am planning to do, but was just curious to know if not then this can real cause any corruption etc...


Not unless the reboots or updates mess up the IO subsystem, and if they do it won't make much difference if SQL is running or not.



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 #1383829
Posted Monday, November 12, 2012 12:57 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 2:40 AM
Points: 417, Visits: 866
Thanks for the reply GilaMonster.

Question, so what happens if a 600 GB database is halfway recovering and the machine is rebooted? How does SQL Server treat that database? Does the recovery just get aborted and start again after server is up?
Post #1383836
Posted Monday, November 12, 2012 1:09 PM


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:44 AM
Points: 42,822, Visits: 35,953
apat (11/12/2012)
Does the recovery just get aborted and start again after server is up?


Yup.

The last thing done in a recovery is a checkpoint. If the checkpoint does not complete (for whatever reason), recovery just starts over from the beginning after SQL restarts.



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 #1383843
Posted Monday, November 12, 2012 1:20 PM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 2:40 AM
Points: 417, Visits: 866
Ok got it. I was just worried for database corruption. Then I may not stop SQL Service; I think there is no harm in rebooting machine 3-4 times in 30-40 mins time frame.
Post #1383847
Posted Monday, November 12, 2012 1:21 PM


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:44 AM
Points: 42,822, Visits: 35,953
Database corruption is notn something that SQL can or will do itself. It's something that's caused by misbehaving components, usually in the IO subsystem.


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 #1383848
Posted Monday, November 12, 2012 11:49 PM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Wednesday, August 20, 2014 4:34 AM
Points: 231, Visits: 740
you can use
CHECKPOINT command
Post #1383951
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse