Slashdot Mirror


Preventing Shutdown on Active NFS Servers?

Ed Almos asks: "Like many Slashdot Readers, I run a small network at home with a server and a number of desktops. The server holds all our files as NFS shares and doubles as a desktop machine should the need arise. Problems however occur if the server is shut down whilst there are NFS shares in use, the minimum disruption is a crashed desktop and a couple of times I have had to deal with corrupted files. Does anyone know of a way to prevent shutdown of a machine if someone else has drives mounted to its NFS shares ? I have already explored use of the /etc/shutdown.allow file but all this does is determine who can kill the machine. The minimal solution would be something similar to a Microsoft Windows system, where a request to shutdown brings up a warning window that there are users connected to the system, but I am not sure how to achieve this on a Linux system. Ideally I would like to prevent shutdown of a system with active NFS shares altogether, or at least until the user has unmounted and logged off the network."

1 of 66 comments (clear)

  1. Re:WARNING: FIRE HAZARD!!!!! by yuri+benjamin · · Score: 2, Funny

    So build a closet out of fire-retardant building materials. Try your local building supplies shop. Make sure there is adequate cooling/ventilation for the sake of your server.

    Heck, you could even build some kind of coolstore. A bit OTT but doable if you have the money.

    --
    You make the mistake of thinking you can educate the fundamental stupidity out of people. You can't.