[Nut-upsuser] Multiple UPS and shutdown sequence.
doug at parsonsemail.com
Sat Mar 16 06:07:45 UTC 2013
Yes this can be done with some manipulation of the minsupplies setting and
the monitor settings.
The LDAP servers would monitor themselves as normal and shut down as normal.
The NFS server would get a weird config. It would monitor its own UPS as
well as the UPS on each LDAP server.
Set the monitor command for the NFS to have 3 supplies. (Yeah you are lying
to the system).
Set the monitor statement on the NFS server for the LDAP servers to have 2
supplies each. Then set your minsupplies to 5.
In effect you have told the NFS server it has seven power supplies and it
needs 5 to run. If the NFS UPS goes down the number drops to 4 (less than
5) so the system starts to shutdown. If only one of either of the LDAP
servers goes down you are still at 5 so NFS stays up. If both go down you
are at 3 so less than 5 then shutdown.
The NFS can look at the UPS monitored on itself as well as look at the UPS
on other boxes at the same time those boxes are monitoring themselves.
For command details.
There are also some timer settings that should allow you to shut down the
NFS server before the LDAP servers go down.
On Mar 16, 2013 12:25 AM, "Daniel Lopes de Carvalho" <dlcarvalho at gmail.com>
> I would like to know if it is possible to use NUT to monitor more than one
> UPS and shutdown the computer only when the battery of the last alive UPS
> gets low?
> I have a file server that relies on two other LDAP servers (each with its
> UPS) and I would like to shutdown the file server when its UPS battery gets
> low or when the battery of the other two UPS (LDAP servers) gets low too.
> 1 - If UPS01 battery low, shutdown LDAP1 and keep LDAP2 and NFS alive.
> 2 - If UPS02 battery low, shutdown LDAP2 and keep LDAP1 and NFS alive.
> 3 - If UPS03 battery low, shutdown NFS.
> 4 - If UPS01 (and LDAP1) down and UPS02 battery low, shutdown NFS and
> LDAP2 (in this sequence).
> 5 - If UPS02 (and LDAP2) down and UPS01 battery low, shutdown NFS and
> LDAP1 (in this sequence).
> Thanks and best regards.
> Nut-upsuser mailing list
> Nut-upsuser at lists.alioth.debian.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Nut-upsuser