Hi,
I've been running FreeNAS 9.3 for a few years with no problems, but recently replaced several drives in the pool and took the opportunity for a clean rebuild with FreeNAS 11.2-U4.1. I have configured the UPS service but cannot get it to shutdown automatically using the setting "UPS goes on battery".
These are the console messages when I cut power to the UPS, wait for the shutdown timer, and then (because the shutdown hasn't been initiated) restore power to the UPS:
Before restoring power to the UPS, querying it from FreeNAS confirms that it's on battery power:
So, upsc and upsmon can see that the UPS is on battery, but for some reason FreeNAS thinks that it's online and won't trigger the shutdown.
The UPS is an APC Back-UPS ES 700, configured in FreeNAS with the driver
Other hardware: X10SL7-F-O, Xeon E3-1230v3, 32GB ECC RAM, RAIDZ3 pool (7x 4TB).
(As a workaround, I've configured shutdown on "UPS reaches low battery" - which works as expected - but would prefer the less risky approach of shutting down as early as possible, without needing the UPS to drain down.)
Thanks in advance for any suggestions!
I've been running FreeNAS 9.3 for a few years with no problems, but recently replaced several drives in the pool and took the opportunity for a clean rebuild with FreeNAS 11.2-U4.1. I have configured the UPS service but cannot get it to shutdown automatically using the setting "UPS goes on battery".
These are the console messages when I cut power to the UPS, wait for the shutdown timer, and then (because the shutdown hasn't been initiated) restore power to the UPS:
Code:
May 24 13:06:24 freenas upsmon[4610]: UPS ups on battery May 24 13:06:45 freenas upssched-cmd: Shutdown not initiated as ups.status indicates ups is ONLINE (OL) May 24 13:06:55 freenas upsmon[4610]: UPS ups on line power
Before restoring power to the UPS, querying it from FreeNAS confirms that it's on battery power:
Code:
# upsc ups@localhost | grep ups.status ups.status: OB DISCHRG
So, upsc and upsmon can see that the UPS is on battery, but for some reason FreeNAS thinks that it's online and won't trigger the shutdown.
The UPS is an APC Back-UPS ES 700, configured in FreeNAS with the driver
APC ups 2 Back-UPS ES/CyberFort 350 USB (usbhid-ups)
on /dev/ugen1.3
- and the same configuration was working fine under FreeNAS 9.3.Other hardware: X10SL7-F-O, Xeon E3-1230v3, 32GB ECC RAM, RAIDZ3 pool (7x 4TB).
(As a workaround, I've configured shutdown on "UPS reaches low battery" - which works as expected - but would prefer the less risky approach of shutting down as early as possible, without needing the UPS to drain down.)
Thanks in advance for any suggestions!