[Nut-upsuser] Shutdown the servers first, keep the network running

Jim Klimov jimklimov+nut at gmail.com
Sat Nov 23 23:13:37 GMT 2024


To me, the trick would be not about shutdown, but how to start those
servers (which would fully power-off to save battery time for network gear)
if wall power comes back early.

If automation for that is needed (e.g. you don't want to depend on manual
labor to power back the main servers), that would need scripting
(upssched?) to either reboot the remaining NUT server and the UPS if power
comes back and main servers are off, or to make use of wake-on-LAN/IPMI/...
if available. Or use ePDUs to power the servers and recycle each relevant
socket when suitable.

Jim

On Sat, Nov 23, 2024, 03:50 Dan Langille via Nut-upsuser <
nut-upsuser at alioth-lists.debian.net> wrote:

> I have an idea for my shutdown process at home. My goal: maximize the
> network run-time. At present, the UPS has a run-time of about 57 minutes.
>
> This is my idea:
>
> * shutdown the servers after 15 minutes of downtime (for me, that's when
> battery.runtime hits 40)
> * leave the network gear (switches, firewall, wifi) running so I can
> continue with Internet access
>
> Optionally:
> * when we get down to 10 minutes, let everything else shutdown
>
> The goal: I can keep working from my home office - there's a separate UPS
> up there.
>
> Thinking about the plan:
>
> * the firewall runs nut and monitors the UP
> * the servers can take action and shut themselves off - they run run nut
> * the firewall will be the only nut instance still running after the
> services go down
>
>
> The Eaton 5PX UPS has some configurable items in it. I may be able to use
> them as well. Looking at my notes[1] from way-back-when, I was unable to
> get FINALDELAY to be observer (why, is not clear).
>
> I'd be happy to hear suggestion and idea based on your experience please.
>
> I'm running FreeBSD 14.1 and nut 2.8.2
>
> 1 - https://dan.langille.org/2020/09/13/nut-testing-shutdown-and-startup/
> - I need to redo that timing - none of these servers are still here, and
> the new ones are not catered for. I hope to be replacing the batteries soon
> - plenty of opportunity to do that work then.
>
> --
>   Dan Langille
>   dan at langille.org
>
> _______________________________________________
> Nut-upsuser mailing list
> Nut-upsuser at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20241124/947849b2/attachment.htm>


More information about the Nut-upsuser mailing list