Richard Freeman via plug on 28 Mar 2025 09:28:38 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Going nuts with NUT


On 3/28/2025 12:20 PM, Gregory Deal via plug wrote:

I'm trying to have a UPS shutdown multiple computers (2 Macs and a NAS). Initially I thought "how do you connect a single UPS to multiple machines?". Some initial searching suggests using NUT (Network UPS Tools) to have the computer attached to the UPS direct the remaining ones to also shutdown.
You are indeed on the right track.  It has been a while since I've touched it so I'll let somebody else comment on your exact config.  Some of the confusion comes from the fact that it has a couple of tiers.  It was basically engineered so that you can have any number of UPS units, and any number of devices using them, and rules to define when to shut down each individual device based on the status of various combination of UPS units.  (Ie consider you have 10 racks with 30 servers and two UPS units on each rack each feeding 1 of two independent PSUs on each server.  So that is 20 UPS units and 300 servers.)

Of course, most of the time we have 1 UPS and often just 1 computer, or maybe a little more.

The main consideration I've seen is that you need to make sure the server that is doing all the message-passing (which need not be attached to a UPS) doesn't shut down until all the other computers have already started shutting down.  You also need to make sure that the UPS doesn't power off until all computers are down.

For a single UPS config you typically put the UPS and the server on the same node, which has a longer shutdown delay than the other nodes.

Also, it is beneficial to shed less essential loads sooner to extend UPS life for more essential loads.

--

Rich

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug