Re: [Hampshire] Shutting down a server cleanly

Top Page

Reply to this message
Author: James Bensley
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Shutting down a server cleanly
On 19 April 2012 18:00, Tim Brocklehurst <timb@???> wrote:
> If you have IPMI on the server (which you will on full server-class hardware)
> then you can do remote poweroff/poweron reasonably easily (I can easily
> demonstrate this at the next meeting if there is demand.


I disagree with this idea (sorry Tim!).

It is a practical idea but using IPMI to power down a server, hard
powers it down. This is bad for the FS (at the minimum). I have tested
and verified on a lab server and eventually (25~ish shutdowns) you can
corrupt the file system (I tested on a box with XFS, so I was able to
repair it very easily and it resumed 100% functionality, but you might
not always be this lucky).

Had another crazy idea; you can set up a box to auto run a script when
a USB drive is attached, and a new file system mounted. Have a USB pen
to hand that has a file with a random name in its root like
"398hhwjhAweE". When a USB drive is mounted, the "on mount" script
will run and and check if a file called "398hhwjhAweE" is in the root,
and if so, run "shutdown -h now". The reverse of a car ignition key.

--
Please post to: Hampshire@???
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------