|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 7:37 AM
Points: 417,
Visits: 830
|
|
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...
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 3:00 PM
Points: 939,
Visits: 1,713
|
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 7:37 AM
Points: 417,
Visits: 830
|
|
| 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...
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:18 PM
Points: 38,062,
Visits: 30,359
|
|
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
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 7:37 AM
Points: 417,
Visits: 830
|
|
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?
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:18 PM
Points: 38,062,
Visits: 30,359
|
|
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
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Today @ 7:37 AM
Points: 417,
Visits: 830
|
|
| 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.
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 4:18 PM
Points: 38,062,
Visits: 30,359
|
|
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
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Tuesday, June 11, 2013 7:09 AM
Points: 222,
Visits: 715
|
|
you can use CHECKPOINT command
|
|
|
|