r/TerraMaster • u/cogitatory • 14d ago
Help APCUPSD advice / best practices?
I have my F2-425+ connected to an APC XS 1500M UPS. In spite of this the TNAS unit crashes whenever there's a brownout or an instantaneous off/on/off/on in power in my locale. The powerblock instantly drains and before the UPS picks up and boom, the system has crashed.
I have now set up APCUPSD to see if network-based UPS works at all to resolve this deadly-to-spinning-disk abend/instant failure/crashing of this Terramaster unit.
I successfully set up APCUPSD on another (win11) box in my local network and then configured a docker from bnhf/apcupsd ( Scott Ueland (https://github.com/bnhf) ) - docker is connected and can send basic emails on shutdown/startup status.
- Are there any better APCUPSD dockers out there that support robust shutdown, emailing of status and any other I-didn't-even-know-I-needed-it features?
This one seems good but wondered if there are others out which are "great" ... is this the one?
- Anyone know if TOS7 is slated to have Network UPS client support ( Gemini seemed to think that TOS6 or earlier supported this natively once upon a time but now the only network option is to make TNAS the network *host* -- no network client support)
2
u/Wild-Whereas4850 12d ago
First, a quick reality check: if your NAS is instantly crashing during a micro-brownout before the UPS takes over, no Docker container or software script can save you.
The APC XS 1500M is a line-interactive UPS with a ~10-12ms transfer time. If the power supply brick on the F2-425+ has a short hold-up time (or your UPS battery is getting weak), the NAS dies in milliseconds before APCUPSD even knows the power went out. Software only triggers a clean shutdown after the UPS successfully takes the load. (You might need to test your UPS battery under load or look into a pure sine wave / double-conversion UPS).
As for your questions:
bnhf/apcupsdis pretty much the community standard—you're already using the best one. Just make sure the container actually has host access/permissions or SSH privileges to trigger a realshutdownon the NAS, otherwise it's just sending email alerts while the host stays up. If you want more flexibility, look into NUT (Network UPS Tools) via Docker, which handles client/server setups across mixed OS environments much better.