UPS 'Shutdown not initiated' - status not read correctly

bluew

Cadet
Joined
May 24, 2019
Messages
2
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:
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!
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
Joined
May 25, 2019
Messages
1
I am also experiencing the same behavior.

The UPS is an "APC Smart-UPS 750" (SMT750I)
connected via USB to "ugen0.2"
driver is "APC ups 2 Smart-UPS USB USB (usbhid-ups)"
shutdown mode is "UPS goes on battery"
shutdown timer is 30 seconds

OS Version:
FreeNAS-11.2-U4.1 (Build Date: May 10, 2019 21:33)
Processor: Intel(R) Xeon(R) CPU E3-1220 v6 @ 3.00GHz (4 cores)

Console messages on disconnecting power to the UPS:

Code:
May 25 06:34:45 freenas upsmon[69197]: UPS apc-smart-ups on battery
undefined
May 25 06:35:15 freenas upssched-cmd: Shutdown not initiated as ups.status indicates apc-smart-ups is ONLINE (OL)


Then when reconnecting power to the UPS:

Code:
May 25 06:36:52 freenas upsmon[69197]: UPS apc-smart-ups on line power
undefined


...perhaps the 'undefined' output in the console indicates some variable is not being assigned correctly...
 

joebad1

Explorer
Joined
Nov 21, 2015
Messages
58
Same issue with a Cyberpower unit.
 

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
maybe a bug in 11.2-U4.1 this seems to be what everybody is running
 

bluew

Cadet
Joined
May 24, 2019
Messages
2
Thanks for the replies, guys. After some testing it seems to be a problem introduced in 11.2-U4. Earlier versions work as expected.

There is a bug filed (NAS-101873) and it looks like a fix is on the way... Great support!
 

silverback

Contributor
Joined
Jun 26, 2016
Messages
134
I found this problem today, my primary system wont shutdown on battery. Is it possible to repair this before the next available update?
*** I updated from 11.1u7 to 11.2u4 and i dont want to roll back to 11.1.
 
Last edited:

ethereal

Guru
Joined
Sep 10, 2012
Messages
762
I found this problem today, my primary system won't shutdown on battery. Is it possible to repair this before the next available update?
*** I updated from 11.1u7 to 11.2u4 and i don't want to roll back to 11.1.

see post above yours

Thanks for the replies, guys. After some testing it seems to be a problem introduced in 11.2-U4. Earlier versions work as expected.

try downgrading to an earlier version
 

silverback

Contributor
Joined
Jun 26, 2016
Messages
134
Yeah, I only have the one boot environment on 11.2. Thanks though.
 
Top