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

Help - Need to take all SQL DB's down for possible electrical shutdown Expand / Collapse
Author
Message
Posted Wednesday, June 25, 2014 10:00 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, November 6, 2014 1:13 AM
Points: 42, Visits: 115
Hi - We have been advised that some electrical work is possibly being carried out tomorrow morning at 7am, which could result in the building we work in losing power. As a result I'm concerned about the affect this could have on the DB's. Is it best to close down all Servers with SQL DB's or take down the sql server service & agent.

Some advice asap would be very much appreciated.

Many thanks

Dax
Post #1585986
Posted Wednesday, June 25, 2014 10:08 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 11:28 AM
Points: 319, Visits: 1,001
First backup everything.

I assume the outage is scheduled for longer than the UPS rating is the reason to shut down.

Find out if any SQL Server Agent Jobs will be affected by the outage.

You may need to run them manually after restart.

Personally I shut down the services then the server but this may not be the best way.
Post #1585990
Posted Wednesday, June 25, 2014 10:19 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, November 6, 2014 1:13 AM
Points: 42, Visits: 115
Hi - Thanks for that, yes you're correct the UPS will last up to around 2hours. We thought the best approach would be to take SQL down cleanly, only if the UPS kicks in as we're unable to get a definitive answer that the work will definitely have an impact.

I will of course check the backups prior to doing anything. I believe when we've had a power down before we've checked any sql jobs and have then taken the Server down and powered up when safe to do so.

Does this sound like a plan?

Cheers

Dax
Post #1585994
Posted Wednesday, June 25, 2014 10:19 AM This worked for the OP Answer marked as solution
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: 2 days ago @ 8:09 AM
Points: 507, Visits: 1,867
I stop the services through Configuration Manager before shutting down the server. Best to try for a graceful shutdown ;).

One thing to be aware of (but which probably isn't strictly in your remit) is that if your SQL servers come up again before your domain controller they might have trouble authenticating for a while.
Post #1585996
Posted Wednesday, June 25, 2014 10:29 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 11:28 AM
Points: 319, Visits: 1,001
dax.latchford (6/25/2014)
Hi - Thanks for that, yes you're correct the UPS will last up to around 2hours. We thought the best approach would be to take SQL down cleanly, only if the UPS kicks in as we're unable to get a definitive answer that the work will definitely have an impact.

I will of course check the backups prior to doing anything. I believe when we've had a power down before we've checked any sql jobs and have then taken the Server down and powered up when safe to do so.

Does this sound like a plan?

Cheers

Dax

Sounds good to me.
Post #1586002
Posted Wednesday, June 25, 2014 10:31 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, November 6, 2014 1:13 AM
Points: 42, Visits: 115
Hi - That's great, many thanks for the advice. I tend to stop everything through Config Manager as I know stopping and starting through Win Services can cause issues.

Many thanks

Dax
Post #1586003
Posted Wednesday, June 25, 2014 3:57 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:26 AM
Points: 14,000, Visits: 28,380
I agree with everyone else, make sure the backups are in place. I'd probably shut down & startup using PowerShell just because I could do all the servers at once.

----------------------------------------------------
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood..." Theodore Roosevelt
The Scary DBA
Author of: SQL Server Query Performance Tuning
SQL Server 2012 Query Performance Tuning
SQL Server 2008 Query Performance Tuning Distilled
and
SQL Server Execution Plans

Product Evangelist for Red Gate Software
Post #1586175
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse