SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Help - Need to take all SQL DB's down for possible electrical shutdown


Help - Need to take all SQL DB's down for possible electrical shutdown

Author
Message
dax.latchford
dax.latchford
SSC-Enthusiastic
SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)

Group: General Forum Members
Points: 159 Visits: 190
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
djj
djj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2734 Visits: 3448
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.
dax.latchford
dax.latchford
SSC-Enthusiastic
SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)

Group: General Forum Members
Points: 159 Visits: 190
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
Beatrix Kiddo
Beatrix Kiddo
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2662 Visits: 4391
I stop the services through Configuration Manager before shutting down the server. Best to try for a graceful shutdown Wink.

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.
djj
djj
SSCrazy
SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)SSCrazy (2.7K reputation)

Group: General Forum Members
Points: 2734 Visits: 3448
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.
dax.latchford
dax.latchford
SSC-Enthusiastic
SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)SSC-Enthusiastic (159 reputation)

Group: General Forum Members
Points: 159 Visits: 190
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
Grant Fritchey
Grant Fritchey
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39067 Visits: 32616
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 and SQL Server Execution Plans
Product Evangelist for Red Gate Software
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