Re: [Hampshire] Shutting down a server cleanly

2012-04-20 Thread James Bensley
Ooo, nice! Thanks Tim! I'll check that against some of the servers I use IPMI on and see if I can use the "soft" option, it would be most useful if I could :D -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.h

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Tim Brocklehurst
For info, the following is from ipmitool's man page, regarding power. using the "soft" option on my server does appear to do a clean shutdown: power Performs a chassis control command to view and change the power state. status Show current chassis power status.

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Ian G
simply change the power button function to be programmed to recieve two or more successive presses to "shutdown -r now" - i have done this on gentoo systems in similar environments. ian Chris Dennis wrote: >Hello folks > >I've got a Debian server sitting in an office near some desktop >compu

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Keith Edmunds
On Thu, 19 Apr 2012 16:06:44 +0100, cgden...@btinternet.com said: > But that leaves no easy way to turn off the (headless) server other than > holding the power button for four seconds $ ssh server sudo poweroff -- "You can have everything in life you want if you help enough other people get wh

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Bensley
On 19 April 2012 20:54, Tim Brocklehurst wrote: > Hmmm. Not what I've seen... > > IPMI provides a series of options as given by ipmitool. These are status, on, > off, cycle, reset, diag, soft. I have not played with them extensively (yet), > but (on my hardware) "on" certainly emulates pressing th

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Tim Brocklehurst
On Thursday 19 Apr 2012 18:14:32 James Bensley wrote: > On 19 April 2012 18:00, Tim Brocklehurst 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 mee

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Bensley
On 19 April 2012 18:25, James Courtier-Dutton wrote: > I have not used IPMI, only iLO(HP) and DRAC (Dell) > I wish they could come up with an industry standard name. IPMI *is* the industry standard one (well in the sense that its open and no proprietary!). I use it on Dells and SGIs. -- Please p

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Courtier-Dutton
On 19 April 2012 18:14, James Bensley wrote: > On 19 April 2012 18:00, Tim Brocklehurst 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 the

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Bensley
On 19 April 2012 18:00, Tim Brocklehurst 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

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Tim Brocklehurst
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. The other obvious question is why are the users anywhere near the server? Keep it in a s

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Gordon Scott
How about rsh/ssh or similar & shutdown. -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Gordon Scott
On Thu, 2012-04-19 at 17:03 +0100, James Courtier-Dutton wrote: > I find a big sticker right next to the power button saying "DO NOT > SWITCH OFF. Talk to XYZ first." seems to work quite well. > It improves the user interface of the power button. It does, but... Hm, in a past life we used to do

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread sjs205
Think this one is a winner... I had the pleasure of meeting James the other day and he is most definitely the server God! :) On 04/19/2012 05:31 PM, James Bensley wrote: Disconnect the real power button, and place another somewhere else, that's hidden? -- Please post to: Hampshire@mailman.lu

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Bensley
Disconnect the real power button, and place another somewhere else, that's hidden? -- Please post to: Hampshire@mailman.lug.org.uk Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire LUG URL: http://www.hantslug.org.uk --

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Chris Dennis
On 19/04/12 17:03, James Courtier-Dutton wrote: I find a big sticker right next to the power button saying "DO NOT SWITCH OFF. Talk to XYZ first." seems to work quite well. It improves the user interface of the power button. The consensus seems to be for a low-tech solution to the problem. So

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread James Courtier-Dutton
On 19 April 2012 16:06, Chris Dennis wrote: > Hello folks > > I've got a Debian server sitting in an office near some desktop computers, > so occasionally people press the power button on the server by mistake, and > it turns itself off. > > To avoid that, I've tweaked /etc/acpi/powerbtn-acpi-supp

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Simon Reap
On Thu, 2012-04-19 at 16:34 +0100, Chris Liddell wrote: > On 19/04/12 16:28, Simon Reap wrote: > > Have you tried a big stick? > > On the server or the users.? > ;-) > Definitely a LART[1] (big stick, mains wired up to the power switch - you choose...) :-) http://en.wikipedia.org/wiki/

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Chris Liddell
On 19/04/12 16:28, Simon Reap wrote: > On Thu, 2012-04-19 at 16:06 +0100, Chris Dennis wrote: >> Hello folks >> >> I've got a Debian server sitting in an office near some desktop >> computers, so occasionally people press the power button on the server >> by mistake, and it turns itself off. >> >

Re: [Hampshire] Shutting down a server cleanly

2012-04-19 Thread Simon Reap
On Thu, 2012-04-19 at 16:06 +0100, Chris Dennis wrote: > Hello folks > > I've got a Debian server sitting in an office near some desktop > computers, so occasionally people press the power button on the server > by mistake, and it turns itself off. > > [snip] > > Before I do that, does anyone

[Hampshire] Shutting down a server cleanly

2012-04-19 Thread Chris Dennis
Hello folks I've got a Debian server sitting in an office near some desktop computers, so occasionally people press the power button on the server by mistake, and it turns itself off. To avoid that, I've tweaked /etc/acpi/powerbtn-acpi-support.sh, and now it ignores the power button. But t