Re: [Apcupsd-users] status not reset on return from hibernate
Brought to you by:
adk0212
|
From: Ian S. W. <ian...@us...> - 2013-12-01 15:46:17
|
Thanks Ted, I'll keep an eye on it. Actually it /is/ a server. But we have a lot of stuff loaded in ram which we can't easily shut down without manual intervention so hibernation seems the best way to go. Moving from a Windows 2003 server which hibernated fine with a usb-connected ups so it seemed a sensible choice at the time. i ------ Original Message ------ Received: 02:10 AM COT, 12/01/2013 From: Ted Mittelstaedt <te...@mi...> To: "Ian S. Worthington" <ian...@us...>Cc: apc...@li... Subject: Re: [Apcupsd-users] status not reset on return from hibernate > > If you do restart the daemon and for whatever reason it stays > at SHUTTING DOWN then it will likely loop. > > If it was a server I would say, get a UPS with a network card > and use a websnmp network card in the UPS. USB does not meet the > reliability test. > > But no server ever goes into hibernation so this is obviously a > workstation, and what you setup is perfectly OK for a workstation. > > Ted > > On 11/30/2013 4:51 AM, Ian S. Worthington wrote: > > Thanks Ted. > > > > It is connected via USB, yes. And now you mention it, there's a mysterious > > message on the console during hibernation: > > > > usbhid suspend error -5 > > > > Sounds like this may have something to do with it? > > > > This is on a Haswell mobo which may (or may not) have the broken C1 stepping > > PCH affecting USB enumeration on return from S3. Hibernate is S0 though, > > isn't it? Any chance this could still be related? > > > > Is a loop likely? If I /don't/ restart the daemon it does stay at SHUTTING > > DOWN which doesn't loop, but does cause it to ignore future triggers. > > > > i > > > > ------ Original Message ------ > > Received: 12:53 AM COT, 11/30/2013 > > From: Ted Mittelstaedt<te...@mi...> > > To: apc...@li... > > Subject: Re: [Apcupsd-users] status not reset on return from hibernate > > > >> > >> UPS connected via USB, right? Many USB hardware drivers out there have > >> brokenness when coming back off hibernation. There are no deleterious > >> effects to restarting apcupsd, other than if the USB port doesn't reset > >> and the status stays at SHUTTING DOWN then you might end up creating a > >> loop. > >> > >> Ted > >> > >> On 11/29/2013 8:46 AM, Ian S. Worthington wrote: > >>> Hi. > >>> > >>> I've configured my doshutdown script to hibernate my system using > > pm-hibernate > >>> (script below). This seems to work fine except that after returning from > >>> hibernation the UPS STATUS remains as SHUTTING DOWN (iirc?), which seems > > to > >>> prevent subsequent triggers from being actioned. > >>> > >>> In order to reset it I've added a "apcupsd restart" to the script, which > > seems > >>> to work, but I'm not sure if it has any deleterious effects. Is there a > >>> better way? > >>> > >>> i > >>> > >>> > >>> cat /etc/apcupsd/doshutdown > >>> #!/bin/bash > >>> > >>> echo "" | mailx -s "$HOSTNAME hibernating" root > >>> /usr/sbin/pm-hibernate > >>> > >>> # At this point system should be hibernated - when it comes back, we > > resume > >>> this script here > >>> > >>> echo "" | mailx -s "$HOSTNAME back from hibernation" root > >>> > >>> service apcupsd restart > >>> > >>> # On resume, tell controlling script (/etc/apcupsd/apccontrol) NOT to > > continue > >>> with default action (i.e. shutdown). > >>> > >>> exit 99 > >>> > >>> > >>> > >>> > >>> > > ------------------------------------------------------------------------------ > >>> Rapidly troubleshoot problems before they affect your business. Most IT > >>> organizations don't have a clear picture of how application performance > >>> affects their revenue. With AppDynamics, you get 100% visibility into > > your > >>> Java,.NET,& PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > >>> > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > >>> _______________________________________________ > >>> Apcupsd-users mailing list > >>> Apc...@li... > >>> https://lists.sourceforge.net/lists/listinfo/apcupsd-users > >> > >> > >> > > ------------------------------------------------------------------------------ > >> Rapidly troubleshoot problems before they affect your business. Most IT > >> organizations don't have a clear picture of how application performance > >> affects their revenue. With AppDynamics, you get 100% visibility into your > >> Java,.NET,& PHP application. Start your 15-day FREE TRIAL of AppDynamics > > Pro! > >> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > >> _______________________________________________ > >> Apcupsd-users mailing list > >> Apc...@li... > >> https://lists.sourceforge.net/lists/listinfo/apcupsd-users > > > > > |