Both good answers. Depends on what you want to do. In all honestly I've never worried about using UPS on battery as an indicator to shut down systems. Too many false positives which require tweaking. I've had SAN's which are highly sensitive to power outages. I have alot of batteries tho, and I've only ever once had an outage that lasted longer than the 10-15 minutes my batteries lasted in my home lab.
In my sysadmin life, I had 40 sites which nearly all had a TrueNAS system presenting an ISCSI LUN to another server for video survaillance. Those closets were hot, dusty and we had power outages that would frequently enough kill the batteries. I never had data corruption as a result of power loss.
ZFS seems to handle it much better than most. It automagically will roll back a few TXGs if things got screwed up in flight just prior to the power outages. If you are using sync writes you are even more safe and that likely won't even be necessary.
This video always makes me laugh
Amazon Affiliate Store➡️ https://www.amazon.com/shop/lawrencesystemspcpickupGear we used on Kit (affiliate Links)➡️ https://kit.co/lawrencesystemsTry ITProTV...
www.youtube.com