[Nut-upsuser] Multiple UPS and shutdown sequence.

Daniel Lopes de Carvalho dlcarvalho at gmail.com
Sat Mar 16 20:32:27 UTC 2013


Great Douglas!!!

Thank you too much.

I will try it on next week.

Best regards.

Daniel

--
Daniel Lopes de Carvalho
dlcarvalho at gmail.com
19 9357-5618 (claro)
 19 8251-6023 (tim)


On Sat, Mar 16, 2013 at 3:07 AM, Douglas Parsons <doug at parsonsemail.com>wrote:

> Daniel,
>
> 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.
>
> Check out
> http://www.networkupstools.org/docs/man/upsmon.conf.html
>
> And
>
> http://www.networkupstools.org/docs/man/upsmon.html
>
> 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.
>
> Doug
> On Mar 16, 2013 12:25 AM, "Daniel Lopes de Carvalho" <dlcarvalho at gmail.com>
> wrote:
>
>> Hello,
>>
>> 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.
>>
>> Scenario:
>>
>> 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.
>>
>> Daniel
>>
>>
>> _______________________________________________
>> Nut-upsuser mailing list
>> Nut-upsuser at lists.alioth.debian.org
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130316/77c473d3/attachment.html>


More information about the Nut-upsuser mailing list