Ubuntu – Using a APC Smart-UPS to shutdown a Ubuntu Server Cluster

linuxshutdownUbuntu

I'm currently in the process of designing a solution to shutdown a two Ubuntu Server cluster that uses heartbeat and DRBD to replicate storage and offer a NFS share to some IP cameras.

We want to integrate a UPS into the system so the servers will shutdown gracefully. I'm currently looking into the APC Smart-UPS C 1000VA 2U LCD 120V UPS and using Apcupsd to shutdown the servers in the event of a power outage.

Is this idea possible? I'm reading through the documentation right now. If you guys have any better ideas I'm open for suggestions.

Best Answer

You could use Network UPS Tools aka NUT instead of apcupsd to gracefully shut down a cluster of machines. One machine would be the 'master' connected to the UPS serial/USB/SNMP/whatever port, the rest 'slaves' connected to the master. If power fails, the master tells the slaves to shut down.

Related Question