How to put Windows Server into something like "Standby mode" so I can safely pull the plug off of it?

2

I have an interesting problem - we are going to test our UPS backup system by pulling the plug in our server room for a short time.

Ideally the UPS will kick in and nothing interesting will happen, but there is of course a slight chance that the UPS will malfunction and our servers will drop dead from the power loss.

My question is - how can I minimize the effects of such a scenario? The machine is a Windows Server 2008R2 with some MS SQL instances - I figured I will put the databases offline and stop the SQL service, but there is still a chance that Windows will decide to mess with system files during the test and then it won't be able to boot properly again.

How can I make sure that Windows Server boots gracefully after a power loss? Thanks for all the ideas!

Rafał Saltarski

Posted 2015-06-16T11:28:43.283

Reputation: 123

2http://superuser.com/questions/833552/manually-flushing-write-cache-on-windows Flush the disk cache, probably easier than going through and making sure all disks and raid setups are in the safest cache setting. The disk will still be marked dirty, there will just be less cleanup. You could suspend about 16 processes too, and disable ~6 devices and all the disk, but that would seem inpractical and unreal. I wouldnt really worry about it for the most part the system can hard power off and live again, it happens to people :-). – Psycogeek – 2015-06-16T12:07:54.813

I suppose it's not the end of the world, but I would like to minimize the risk of wasting my Sunday on restoring Windows Server. :-P Thanks a lot for your advice, much appreciated! – Rafał Saltarski – 2015-06-16T12:17:35.657

I am thinking have it process something like Pi or prime, or be doing a memory test (got ecc?), or doing some other non writing process on purpose, so if a tiny glitch in the system happened during the switching, the calculation for prime would be wrong, or whatever. – Psycogeek – 2015-06-16T12:43:50.367

Answers

1

How about hibernate mode? shutdown /h

BowlesCR

Posted 2015-06-16T11:28:43.283

Reputation: 2 607

That defeats the purpose of the UPS test, since - correct me if I'm wrong - the server will be in a state that does not require power? I could also just shut it down and be done with it, but the purpose of the test is to have it powered on constantly. – Rafał Saltarski – 2015-06-16T12:54:09.230

Correct, it will be off. You really can't get both here - the server is either running (and risks crashing at powerfail) or not.

If you really want to safely test that the UPS can handle load, I'd shut down the server and instead use some of those 500w painters lights or similar to provide a simulated load. – BowlesCR – 2015-06-16T12:58:07.370

I'll have a hard time getting this idea through the management... ;) But your effort is appreciated and I upvoted your answer, thanks! – Rafał Saltarski – 2015-06-16T13:02:36.223

Management hires people like you so they have someone to blame when their ideas don't work out. – Moab – 2015-06-16T13:15:37.863