pfSense English Support > General Questions

UPS PfSense Shutdown

(1/2) > >>

Peter847:
I run a small small office LAN through PfSense and am looking for advice on how I manage my UPS.

The UPS supplies PfSense and a couple of Windows machines.  Its main purpose is to ride through the relatively frequent power drop outs that last a few seconds, real outages (greater than a minute) are rare.  It does not look easy to get one UPS management suite that will gracefully shutdown all the machines so I am thinking about letting PfSense just run out of power.

PfSense runs on a passively cooled Atom system with an SSD, will I damage anything if I just let the power on the UPS run out and restart PfSense when the power returns?

Gertjan:

--- Quote from: Peter847 on January 03, 2018, 08:00:41 am ---.. will I damage anything if I just let the power on the UPS run out and restart PfSense when the power returns?

--- End quote ---
This situation will happen every time the power gets lost.
If power outages rarely last for more then a minute or so, it will not happen anymore, as your UPS will take over over this "minute or so"'.
When the UPS is connected to pfSense with an USB or serial cable, the UPS can even start a clean shut down sequence.

"If damage occurs" can't be answered. You should avoid these situations as much as possible.

mer:
You should be able to use apcupsd or NUT package on the pfSense box and have it gracefully shutdown.
If you want the single UPS to gracefully shutdown all the machines, you'll need to pick something that runs everywhere and has the ability to talk across the network. 
NUT (networkupstools.org) has this feature, I believe there is a pfSense package for it, it looks like it may run on Windows.

I'd set up pfSense to be the master of the UPS and the other machines as slaves to that.  When it's time to shutdown, master tells the slaves to shutdown then shuts itself down.

Just my opinion and you may need to play around with whatever solution (timing between slaves shutting down and the master shutting down)

Peter847:
Many thanks for the replies.  I think I need to give you a few more details.

I currently have NUT installed on my PfSense machine and can see the status of the UPS, I do not think it is compatible with apcupsd.  No doubt I can configure NUT to shutdown this machine but the UPS also powers two Windows machines and it does not look like the Windows port of NUT is actively supported.  I was considering using the UPS manufacturer's Windows software to shutdown the critical Windows machine and just let PfSense and the other Windows machine die when the power runs out.  But that looks like a bad idea?

So it looks like my only solution is to buy another APC compatible UPS?

dennypage:
I suggest scanning the NUT package info thread. It's a long thread (20 pages), but there is a lot of good information in there. The 1st reply discusses remote access.

There are several NUT client variants for Windows. You can find information here and here. I can't recommend any particular one because I haven't used Windows for a while.

If you have an APC UPS, there is a apcupsd package available for pfSense. It doesn't have an official package info thread, but you can search the package forum for "apcupsd". Make sure that posts you are looking at correspond to the current generation of the package (pfSense 2.3/2.4) rather than the prior generation (pfSense 2.2 and below). It begins around here. I don't know how/if apcupsd interacts with Windows remote access, but I'm sure that someone in the package forum could provide some information.

Navigation

[0] Message Index

[#] Next page

Go to full version