[Nut-upsuser] Shutdown order for servers

Manuel Wolfshant wolfy at nobugconsulting.ro
Thu Sep 17 19:00:24 BST 2020


On September 17, 2020 6:09:18 PM GMT+03:00, Kirill Nikonorov <knikonor at gmail.com> wrote:
>Hello to All!
>It might be not exactly NUT question but implementation.
>I have a rack with one UPS and several servers getting power from this
>device. One server is a master and other are slaves. All systems are
>running Debian 4.15.3 kernel and APC UPS. Everything works fine but
>what I
>need is to make an order for shutting down servers as they have
>different
>roles.
>Is it possible to configure SQL and VM servers to go down first, then
>mail
>server, then NAS and UPS master as the last one after all of them?
>I see that in case of power outage all servers receive signal from
>master
>simultaneously. May I change the order somehow?


Yes, you xan do that.. You will need to write a specific script on each aerver and run it via nut's client upssched directive

Wolfy
>
>Best regards,
>Kirill.




More information about the Nut-upsuser mailing list