[Nut-upsuser] Shutdown the servers first, keep the network running
Kelly Byrd
kbyrd at memcpy.com
Sat Nov 23 03:12:58 GMT 2024
I do something sort of similar. But I decided on 5 min of mains AC being
the limit. History from the last several years tells me that in my area, if
the mains aren't back on in 5min, it's going to be a while.
For stupid reasons, my NUT "source of truth" is a Raspberry Pi. I'll move
it to be my router when it gets a new enough version of NUT, Then the NAS
and other non-essential things monitor that and shut down 5min after an
outage starts.
On Fri, Nov 22, 2024 at 6:50 PM 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/20241122/8a156a5a/attachment.htm>
More information about the Nut-upsuser
mailing list