I may be wrong so pls correct me if so ...

UPS boxes provide a way to connect using USB or serial ports. There are two
types of UPS's ... smart and dumb ... smart UPS boxes provide a lot of
information about voltage and battery life ... you will need to know the
protocol that it uses to be able to hook into when it turns off/on. Dumb UPS
boxes have a published protocol and there are linux daemons that can be used
without any change to run these boxes. An example of one such daemon is
powstatd ...

inittab has entries in it that will allow you to take actions when a power
outage occurs and you move to battery back up ... please note that this will
be called only when the UPS daemon is running ... it also provides ways to
come back alive if power is restored during shutdown of your server. You
could do something creative like tell the UPS to shutdown and come back on
after 1 hour to see if power has been restored. Otherwise you can shut down
cleanly again, though I am not sure if you can do this with a dumb UPS ...
Hope this helps ...

regards
Saravanan



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Reuben D. Budiardja
Sent: Wednesday, October 22, 2003 8:09 AM
To: [EMAIL PROTECTED]
Subject: Dealing with Power Outage: How to Shutdown cleanly


Hello,
We just had another 4 hours power outage here on campus last night. Some of
our servers and linux clusters were on UPS, but of course they failed after
a
while and uncleanly/crash shutdown. No one was here when this happens, since
we're don't have big IT support for the department, and pretty much I'm the
only guy who does the admins for the servers and cluster. I didn't even
realize we got a power outage until I came in late last night to pick up
something, and had to reboot and manually run fsck for some of the
workstation. What a pain..

This got me to thinking. Is there any way that a better UPS can help this
situation. I see that some UPS has an RS232 interface or USB, and some
software that can shutdown the machine on sustained power outage. I am
wondering if this can be done also with Redhat linux 7.x, and 9. What I want
is just somehow the UPS to signal the computer that it's on battery and
either the a script or UPS itself shut the machine down whenever it is on
Battery. I'm really ignorant on this case here, so any help is greatly
appreciated. Also, if there're recommendation for those UPS that works well
with linux.

Thanks.
RDB
--
Reuben D. Budiardja
Department of Physics and Astronomy
The University of Tennessee, Knoxville, TN
---------------------------------------------------------
"To be a nemesis, you have to actively try to destroy
something, don't you? Really, I'm not out to destroy
Microsoft. That will just be a completely unintentional
side effect."
                 - Linus Torvalds -


--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to