Latest News:
*New 11.2 series Release:
2019-06-20: XigmaNAS 11.2.0.4.6766 - released!

*New 12.0 series Release:
2019-06-20: XigmaNAS 12.0.0.4.6766 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Wish to control when NAS4Free shuts down

Uninterruptable Power Supply service using NUT.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
m_seitz
Starter
Starter
Posts: 17
Joined: 01 Mar 2015 15:36
Status: Offline

Wish to control when NAS4Free shuts down

#1

Post by m_seitz » 27 Mar 2015 19:05

My CyberPower CP1300EPFCLCD (connected with USB) is working well with NAS4Free, but I would like to have some control over when the NAS will shut down.
I have set it to shut down when the UPS reaches "low battery". According to the UPS information page from the NAS4Free web-interface, "low battery" is defined as 10% battery remaining. This is way too little since I have not only my NAS but also a PC with a big screen connected to the UPS. In the worst of cases, this combination could reduce those 10% to a few seconds of battery time, which might be less than NAS4Free takes to shut down properly.

On the other hand, my NAS behaved differently in real life! I just pulled the plug and started a timer. The NAS shut down after 4 minutes (3:50 to be precise), when the battery level was at 60%.

This is actually exactly what I want, enough time to "survive" short blackouts but too little time to run out of power before the shut down has completed.
Now I am asking myself why things went the way they did and whether I can trust the current settings.


Edit: Just took a look at the e-mail warnings I got during this first test. I received several messages telling me that the NAS lost communication with the UPS. Roughly 30 seconds later I received a message about a line power failure. And 3 seconds later the NAS reported "low battery power" and initiated a shut down.
This is kind of scary and I don't know what to do with this information. Looks like I will have to test this further.
My Nas
MB: Asus M5A78L-M/USB3 RAM: 24GB unbuffered ECC (3x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 4TB HGST H3IK40003272SE (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: NAS4Free 10.2.0.2 - Prester x64-embedded
viewtopic.php?f=63&t=8482

m_seitz
Starter
Starter
Posts: 17
Joined: 01 Mar 2015 15:36
Status: Offline

Re: Wish to control when NAS4Free shuts down

#2

Post by m_seitz » 28 Mar 2015 15:24

Found out that one can configure the UPS with auxiliary parameters:
override.battery.charge.low = 35
override.battery.charge.warning = 45

I will test if these settings do what they are supposed to do ... sometime soon :-)
My Nas
MB: Asus M5A78L-M/USB3 RAM: 24GB unbuffered ECC (3x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 4TB HGST H3IK40003272SE (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: NAS4Free 10.2.0.2 - Prester x64-embedded
viewtopic.php?f=63&t=8482

GDixon
Starter
Starter
Posts: 27
Joined: 03 Dec 2015 06:00
Status: Offline

Re: Wish to control when NAS4Free shuts down

#3

Post by GDixon » 05 Dec 2015 17:18

Hi,
Have you ever got the chance to make the changes and do some testing?

I have mine (NAS4Free) set up as a master and the desktop and htpc as clients. I have a APC smart ups 1500 and do like you, tv, htpc, desktop and NAS4Free on it and when the power goes out I have the desktop and htpc shutdown after 4 mins of no A/C power and the Nas4Free box shuts down at 5 mins of no A/C power. I didn't use the option of battery percentage because we get a lot of power outages here in Fl and it is too hard on the batteries.

I also wrote simple one line scripts for wol for when the nas box is off. They are on both the desktop and htpc and send a wol when they are booted or brought out of sleep. Now I don't have to have the NAS on 24/7.

m_seitz
Starter
Starter
Posts: 17
Joined: 01 Mar 2015 15:36
Status: Offline

Re: Wish to control when NAS4Free shuts down

#4

Post by m_seitz » 13 Jun 2016 23:05

Hei GDixon, sorry for the late reply.

I am using the following auxiliary parameters:

Code: Select all

override.battery.charge.low = 35
override.battery.charge.warning = 45
override.battery.runtime.low = 180
pollinterval = 10
When I pulled the power plug, I received an e-mail notification immediately. NAS4Free shut down when my UPS showed 3 minutes of battery power remaining. I received an e-mail about the shut-down-event too. But I did not get a notification/e-mail at 45 % battery power.
Nevertheless, I am happy that my NAS is sticking to the 3 minutes limit now :-)
My Nas
MB: Asus M5A78L-M/USB3 RAM: 24GB unbuffered ECC (3x Kingston KVR16E11/8)
CPU: AMD Phenom II X2 550 Storage: 6x 4TB HGST H3IK40003272SE (raidZ2, one single pool)
PSU: Cooler Master V450S (450W) UPS: CyberPower CP1300EPFCLCD (USB via usbhid-ups)
OS: NAS4Free 10.2.0.2 - Prester x64-embedded
viewtopic.php?f=63&t=8482

Post Reply

Return to “UPS”