Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got a server and several client computers onsite. The client computers PXEBoot and get their / via NFS from the server. The server and clients are on limited battery backup, but the power goes out with some frequency due to factors beyond my control at this time. My problem is that when the power goes out, the server shuts down politely but the client machines do not.

I'm wondering, is there an existing elegant solution to getting the clients to shutdown before, or even just at the same time as the server? The clients only take seconds to shutdown, they can easily complete shutdown before the server does.

PS. Downtime isn't as big of a concern as a clean shutdown for these computers.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

Assuming it's an APC UPS, there's support in APCUPSD for a client to query a server about its UPS status.

If not, then you could have the clients poll a server folder every X seconds, and if a particular file showed up in the folder, to start a clean shutdown. Have the server's normal shutdown procedures create that file, then sleep for 2X seconds. Make sure the server's normal startup procedures remove that file.

share|improve this answer
    
Excellent idea, top marks for creativity :) –  Jeff Welling Aug 1 '11 at 10:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.