Is there any plans to propagate the UPS status from the I5 systems J14 UPS interface down to Linux? Currently what happens is that when there is a UPS state change the Linux guest, SUSE 10 gets SIGPW and
begins an immediate sutdown. If the LOP tools were to propigate the state to the /var/run/powerstatus file then upon receipt of the SIGPW Linux would be able to detect that state of the UPS. This would allow for powerfail and then powerrestore to the be correctly handled by LINUX without further modifications.
This topic has been locked.
1 reply Latest Post - 2009-01-12T22:58:26Z by strosake
Pinned topic I5 systems and support of the th14 UPS interface
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2009-01-12T22:58:26Z at 2009-01-12T22:58:26Z by strosake
strosake 0600025MBX15 PostsACCEPTED ANSWER
Re: I5 systems and support of the th14 UPS interface2009-01-12T22:58:26Z in response to SystemAdminThe /etc/rc.powerfail file should be invoked in response to a UPS state change (assuming that you have either the diagela or ppc64-diag package installed). rc.powerfail also handles fan failures, thermal/voltage conditions, etc. That file is a fairly basic shell script; it doesn't currently interact with /var/run/powerstatus, but it is easy to modify the actions that are taken in response to power/environmental conditions. I'm not sure offhand how other applications interact with /var/run/powerstatus, so I don't know the best way to update that file correctly.
FYI, ppc64-diag was recently open sourced (http://linux-diag.sourceforge.net/ppc64-diag/); if you are so inclined, you can feel free to review the source and suggest changes.