helgew
Cadet
- Joined
- Sep 10, 2017
- Messages
- 5
I have FreeNAS (11.0-STABLE) running as a VM on an ESXi 6.5 host. When changing the assigned USB controller for the VM from 2.0 to 3.0,
Here are the nut configuration files:
It does look like the OS detects the UPS just fine. The logs and
Any pointers or advice would be greatly appreciated!
upsmon
is no longer able to connect to the attached UPS (APC Back-UPS XS 1500G):Code:
Nov 27 20:50:43 freenas ugen0.4: <American Power Conversion Back-UPS XS 1500G FW866.L8 .D USB FWL8> at usbus0 Nov 27 20:50:51 freenas upsmon[2279]: UPS [ups]: connect failed: Connection failure: Connection refused Nov 27 20:50:51 freenas upsmon[2279]: Communications with UPS ups lost Nov 27 20:50:55 freenas upsmon[2279]: UPS [ups]: connect failed: Connection failure: Connection refused Nov 27 20:50:55 freenas upsmon[2279]: UPS ups is unavailable
Here are the nut configuration files:
Code:
root@freenas:/etc/local/nut # more ups.conf [ups] driver = usbhid-ups port = /dev/ugen0.4 desc = "" root@freenas:/etc/local/nut # more upsd.conf LISTEN 0.0.0.0 root@freenas:/etc/local/nut # more upsmon.conf FINALDELAY 60 MONITOR ups 1 upsmon upsupordown master NOTIFYCMD "/usr/local/sbin/upssched" NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+EXEC NOTIFYFLAG FSD SYSLOG+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+EXEC SHUTDOWNCMD "/sbin/shutdown -p now" POWERDOWNFLAG /etc/nokillpower root@freenas:/etc/local/nut # more upssched.conf CMDSCRIPT /usr/local/bin/custom-upssched-cmd PIPEFN /var/db/nut/upssched.pipe LOCKFN /var/db/nut/upssched.lock AT NOCOMM * EXECUTE EMAIL AT COMMBAD * START-TIMER COMMBAD 10 AT COMMOK * CANCEL-TIMER COMMBAD COMMOK AT FSD * EXECUTE EMAIL AT LOWBATT * EXECUTE EMAIL AT ONBATT * START-TIMER ONBATT 60 AT ONBATT * EXECUTE EMAIL AT ONLINE * CANCEL-TIMER ONBATT ONLINE AT ONLINE * EXECUTE EMAIL AT REPLBATT * EXECUTE EMAIL AT SHUTDOWN * EXECUTE EMAIL
It does look like the OS detects the UPS just fine. The logs and
usbconfig
also report the appropriate speed for another connected USB 3.0 device (backup drive) when configured for the USB 3.0 controller. However, the usbhid-ups
driver does not seem to like that one. I tried using some of the other drivers given in the interface without any luck.Any pointers or advice would be greatly appreciated!