UnRaid shuts down immediately with Belkin UPS


Recommended Posts

I'm using a Belkin UPS with apcupsd-3.14.3.  It appears UnRaid goes to shut down immediately when the ups goes to battery mode.  I'm wondering if the package is not able to read battery level or minutes remaining and thinks they are 0.  I've set Battery Level: 0 and Minutes Remaining: 0 but it still went to shut down immediately.  The Belkin UPS is fully charged and in perfect condition.  From the stats below the package appears to see the ups go from BCHARGE = 100% to 0% in 4 seconds or less.  TIMELEFT also drops to 0 immediately.  I'm guessing this is why it goes to shutdown mode.  Does anyone know if there is a way around this.  I realize this package is designed or APC UPS devices but I'm hoping we can at least bypass BCHARGE and TIMELEFT and possilby just use MAXTIME: 180 seconds. 

 

Anyone have any ideas. 

 

Thanks in advance.

 

dave

 

STATUS  : ONLINE

BCHARGE  : 100.0 Percent

TIMELEFT :  2.0 Minutes

 

 

STATUS  : SHUTTING DOWN

BCHARGE  : 000.0 Percent

TIMELEFT :  0.0 Minutes

 

 

UPS Status

(from /sbin/apcaccess status)

APC      : 001,023,0570

DATE    : Thu Jan 27 18:31:01 MST 2011

HOSTNAME : Tower2

RELEASE  : 3.14.3

VERSION  : 3.14.3 (20 January 2008) slackware

UPSNAME  : Tower2

CABLE    : USB Cable

MODEL    : Belkin UPS

UPSMODE  : Stand Alone

STARTTIME: Thu Jan 27 18:29:58 MST 2011

STATUS  : ONLINE

BCHARGE  : 100.0 Percent

TIMELEFT :  2.0 Minutes

MBATTCHG : 0 Percent

MINTIMEL : 0 Minutes

MAXTIME  : 180 Seconds

NUMXFERS : 0

TONBATT  : 0 seconds

CUMONBATT: 0 seconds

XOFFBATT : N/A

STATFLAG : 0x07000008 Status Flag

SERIALNO :           

APCMODEL : Belkin UPS

END APC  : Thu Jan 27 18:31:20 MST 2011

 

 

 

UPS Status

(from /sbin/apcaccess status)

APC      : 001,024,0616

DATE    : Thu Jan 27 18:53:10 MST 2011

HOSTNAME : Tower2

RELEASE  : 3.14.3

VERSION  : 3.14.3 (20 January 2008) slackware

UPSNAME  : Tower2

CABLE    : USB Cable

MODEL    : Belkin UPS

UPSMODE  : Stand Alone

STARTTIME: Thu Jan 27 18:29:58 MST 2011

STATUS  : SHUTTING DOWN

BCHARGE  : 000.0 Percent

TIMELEFT :  0.0 Minutes

MBATTCHG : 0 Percent

MINTIMEL : 0 Minutes

MAXTIME  : 180 Seconds

NUMXFERS : 1

XONBATT  : Thu Jan 27 18:53:07 MST 2011

TONBATT  : 4 seconds

CUMONBATT: 4 seconds

XOFFBATT : N/A

STATFLAG : 0x07040250 Status Flag

SERIALNO :           

APCMODEL : Belkin UPS

END APC  : Thu Jan 27 18:53:11 MST 2011

 

 

Link to comment

For it to work with a Belkin UPS, you need to modify some configuration items. The Belkin units do not properly report (from the viewpoint of APCUPSD) several report items, such as battery time left [TIMELEFT :  2.0 Minutes]. Here are the items I use on my server with some luck.

 

UPSTYPE usb
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 1
TIMEOUT 0
ANNOY 60
ANNOYDELAY 60
KILLDELAY 0

 

Here's my apcaccess status report

 

APC      : 001,025,0658

DATE    : 2011-01-27 22:30:02 -0500

HOSTNAME : reaver

VERSION  : 3.14.8 (16 January 2010) slackware

UPSNAME  : reaver

CABLE    : USB Cable

MODEL    : Belkin UPS

UPSMODE  : Stand Alone

STARTTIME: 2011-01-25 14:00:30 -0500

STATUS  : ONLINE

BCHARGE  : 100.0 Percent

TIMELEFT :  2.0 Minutes

MBATTCHG : 5 Percent

MINTIMEL : 1 Minutes

MAXTIME  : 0 Seconds

BATTV    : 1238.0 Volts

NUMXFERS : 1

XONBATT  : 2011-01-26 03:51:10 -0500

TONBATT  : 0 seconds

CUMONBATT: 29 seconds

XOFFBATT : 2011-01-26 03:51:39 -0500

STATFLAG : 0x07000008 Status Flag

SERIALNO :

NOMBATTV : 120.0 Volts

APCMODEL : Belkin UPS

END APC  : 2011-01-27 22:30:54 -0500

 

 

Link to comment

I just use another windows machine on the same ups (dont forget the switch too!) to execute the powerdown script on the tower as I needed both machines to powerdown cleanly.

 

Tony

 

 

I thought about that but I don't have another machine that I keep running all the time.  Good suggestion though.

Link to comment

For it to work with a Belkin UPS, you need to modify some configuration items. The Belkin units do not properly report (from the viewpoint of APCUPSD) several report items, such as battery time left [TIMELEFT :   2.0 Minutes]. Here are the items I use on my server with some luck.

 

UPSTYPE usb
ONBATTERYDELAY 6
BATTERYLEVEL 5
MINUTES 1
TIMEOUT 0
ANNOY 60
ANNOYDELAY 60
KILLDELAY 0

 

Here's my apcaccess status report

 

APC      : 001,025,0658

DATE     : 2011-01-27 22:30:02 -0500

HOSTNAME : reaver

VERSION  : 3.14.8 (16 January 2010) slackware

UPSNAME  : reaver

CABLE    : USB Cable

MODEL    : Belkin UPS

UPSMODE  : Stand Alone

STARTTIME: 2011-01-25 14:00:30 -0500

STATUS   : ONLINE

BCHARGE  : 100.0 Percent

TIMELEFT :   2.0 Minutes

MBATTCHG : 5 Percent

MINTIMEL : 1 Minutes

MAXTIME  : 0 Seconds

BATTV    : 1238.0 Volts

NUMXFERS : 1

XONBATT  : 2011-01-26 03:51:10 -0500

TONBATT  : 0 seconds

CUMONBATT: 29 seconds

XOFFBATT : 2011-01-26 03:51:39 -0500

STATFLAG : 0x07000008 Status Flag

SERIALNO :

NOMBATTV : 120.0 Volts

APCMODEL : Belkin UPS

END APC  : 2011-01-27 22:30:54 -0500

 

 

 

BRiT, Do you have a bit more information regarding where/how I might change the code you mention above.

 

Thanks BRit. 

Link to comment

Since I run on a full distro install, I edited those values in the config file located at  /etc/apcupsd/apcupsd.conf . I don't know if the APCUPSD plugin has some of those items configurable via an unMENU Settings Page before it's installed.

The values set by unMENU are substantially the same except for the MINUTES.

 

You are setting yours to "1" which is below the reported "2.0" so you do not shut down immediately.

 

If dschock sets his "Minutes" to "1" it should work much the same way.  Other than that, you are shutting down when 5% is remaining in the batteries, unMENU defaults to 10%.

 

It might all be configurable from the unMENU package manager.

 

Remember to re-install after changing values.

 

Joe L.

 

Link to comment

Yeah, that was a fun thing to troubleshoot... I could probably set it back to 10%, as I think that was the first thing I tried, but it didn't matter in the long run.

 

Joe L, you are correct. The real trick is in the MINUTES setting.

 

In my case, regardless of what power amount was left in the battery, it would only report 2 minutes remaining, even after replacing with 2 new fully charged 12Volt 9Ah batteries when the originals were 7.5Ah, or when run to half a charge or quarter of a charge. If I didn't already have these monster Belkin UPSes I'd definitely go with an APC model.

Link to comment

Since I run on a full distro install, I edited those values in the config file located at  /etc/apcupsd/apcupsd.conf . I don't know if the APCUPSD plugin has some of those items configurable via an unMENU Settings Page before it's installed.

The values set by unMENU are substantially the same except for the MINUTES.

 

You are setting yours to "1" which is below the reported "2.0" so you do not shut down immediately.

 

If dschock sets his "Minutes" to "1" it should work much the same way.  Other than that, you are shutting down when 5% is remaining in the batteries, unMENU defaults to 10%.

 

It might all be configurable from the unMENU package manager.

 

Remember to re-install after changing values.

 

Joe L.

 

 

I've tried setting both time remaining and % remaining to 0 with no luck.

 

BCHARGE  : 000.0 Percent

TIMELEFT :   0.0 Minutes

MBATTCHG : 0 Percent

MINTIMEL : 0 Minutes

MAXTIME  : 180 Seconds

 

BCHARGE and TIMELEFT both drop to 0 almost immediately after power is lost.

 

I'm thinking it may be easier to get an APC.  It's be easier to justify if I could find another use for the Belkin.  :)

Link to comment

Do you have any DVRs, switches, routers, or even a very small LCD screen that could make use of the Belkin? It's always nice to have a display connected to your server in the event of a major power outage or sweeping power waves like brown-outs so you could do more controlled shutdowns. Though with APCUPSD and the powerdown addon, you could simply hit the power button and be sure things will be taken care of.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.