On Sun, 2004-08-22 at 20:33, Winelfred Pasamba wrote:
> what are you trying to detect?
> power failure, power resume, low battery are the most common.

All three, if possible.

> should also ask yourself what are you planning to do if power fails?
> what if it comes back again after a long time? what if it comes back
> again before a shutdown? during a shutdown?

What I'm most interested on is when the UPS switches to DC, the server
shall initiate a clean shutdown sequence. If the UPS switches back to AC
(when power resumes), the shutdown sequence is aborted. In theory, it
takes a change in voltage that can be carried by the serial cable. 

Since I'm quite a lazy admin, I'd like servers to manage themselves
during power interruptions.

> for me it's easier to set the motherboards to be always on,use a
> journaling fs, and `sync` every 5 mins or so. and just use the ups to
> get thru very short power interruptions.

Well, a journalized filesystem isn't really a solution for the
intermittent power situation that we have in this country. Sure it does
help in preventing long fsck's though, but it won't help against
potential filesystem corruption caused by power interruptions.

Doing a regular sync isn't really that productive, as it taxes too much
the system. If that were the case I would just put the filesystem
journal option to synchronous.

As for the use of UPS - it's only to get through short power
interruptions by initiating the proper shutdown sequence, and not to be
a replacement for a power generator.



-- 

Paolo Alexis Falcone
[EMAIL PROTECTED]

Attachment: signature.asc
Description: This is a digitally signed message part

--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to