Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

UPS Settings help (APC Daemon)

Featured Replies

So I think I am having an issue where by if my power goes out and my UPS settings activates a shut down at 75% battery, once the server comes back online it will always say that an unclean shut down has occurred. It will then obv try to run a parity check. 

I'm curious if this is standard or do I have an issue. I cant find the answer when googling. There is no issue with the UPS in that the server will fully power down while other electronics connected are still running so I know its not the UPS running out of battery before the server powers down. 

It wouldnt surprise me if this was standard operation but I just wanted to check. 

 

UPS - Cyberpower PR2200ERT2U

Edited by tazire
add spec

Solved by itimpi

  • Solution

That implies that the server is NOT shutting down cleanly when you lose power.     Can you normally shutdown tidily (and how long does it take?   In fact it might be worth just seeing how long it takes to stop the array from the Main tab.  
 

Have you checked out the online documentation here on handling unclean shutdowns?

  • Author

It can take about 2 to 3 minutes and it does shut down cleanly when I initiate it. Its a very large setup as can be seen in my sig. I have it set to shut down on 75% battery remaining just to ensure there is plenty of time. 

 

I know its not a battery issue or a time to shut down issue. I can unplug the UPS and I can see it gives an estimated time remaining of 45mins at ~90% load. Thats with a load of roughly 400W. My server maxes out at about 550W when all drives spin up. 

 

I wouldnt have even known about this only we had a bad storm here 2 weeks ago and have had a few power cuts since while they are fixing power lines. I've included my settings on the off chance something there is stopping the command being sent correctly. 

msedge_3UIcaKyqjE.png

Check your logs for Unraid shutdown timeout exceeded or whatever phrase UR uses to make sure it's actually not timing out. Also, you should set it to initiate a shutdown when switched to UPS power as quickly as possible instead of by percentage of battery remaining, 30 to 60 seconds max

  • Author

Yea I get you. I'll set it to 100% so it should shut down immediately upon loss of power. But the reason I don't think that is the issue is because the other UPS powered devices stay on. The 2 attached JBODs will be powered on when the server is power down after a power outage. 

 

I never kept logs as the server has been rock solid for years. It's only by chance I found this issue. 

 

 

1 hour ago, tazire said:

I wouldnt have even known about this only we had a bad storm here 2 weeks ago and have had a few power cuts since while they are fixing power lines.

When you run (say) 20 minutes on battery, after the power comes back on, it can take ten to fifteen hours to completely recharge the battery.  Plus, that estimated 'time on battery' is a SWAG (Stupid Wild A$$ Guess).  I know that in my part of the world if the power is out for 30 seconds, it will be out longer than any home UPS can cover.  So I start the start down then. 

The purpose of UPS isn't to allow you to run on battery. It is to allow you to get through very brief power issues and to cleanly shutdown if the power issues are more than brief.

4 hours ago, tazire said:

The 2 attached JBODs will be powered on when the server is power down after a power outage. 

If you found other UPS powered device haven't power interruption, then it almost prove problem not on UPS.

 

6 hours ago, tazire said:

45mins at ~90% load. Thats with a load of roughly 400W

With compare the runtime chart, it indicate the battery in excellent condition, no degrade.

 

IMG_20250214_030818.thumb.jpg.a4e87fe3ba1a4480dd5eca5078dbf35c.jpg

 

4 hours ago, tazire said:

I never kept logs

Then you can't found out why trouble happen.

Edited by Vr2Io

5 minutes ago, Vr2Io said:

it indicate the battery in excellent condition, no degrade.

 

And every time you run the UPS on the battery, it degrades the bejeezus out of them - so you want to use them as little as possible.

  • Author

Its a relatively new UPS less than a year old. Its maybe had 3 or 4 extended power off cycles. 2 of those were prolonged both times the server reported an unclean shut down. I don't really want to go chasing the issue if its going to degrade the batteries. I'll just have to sort out a notification on power outage and then I can VPN in and shut it down myself. Not ideal but seems like it might be my only reliable option. 

 

I have turned on the logging server and I will monitor that if it happens again. Thanks for all the responses. 

Edited by tazire

10 hours ago, tazire said:

It can take about 2 to 3 minutes and it does shut down cleanly when I initiate it. Its a very large setup as can be seen in my sig. I have it set to shut down on 75% battery remaining just to ensure there is plenty of time. 

Under SETTINGS  >>>  Disk Settings is this setting:

image.png.2ac456d948701dbdcd968f5c547f4df5.png 

 

(This is not the default time.  I have set so that this server can stop the array in less time then this setting.)    When the setting times-out, A forced shutdown will start automatically and the forced shutdown will always result in an unclean shutdown!  (Time the array 'stopping' time and add about 25% to that number for the setting.)

 

 

Edited by Frank1940

  • Author
4 minutes ago, Frank1940 said:

Under SETTING  >>>  Disk Settings is this setting:

image.png.2ac456d948701dbdcd968f5c547f4df5.png 

 

(This is not the default time.  I have set so that this server can stop the array in less time then this setting.)    When the setting times-out, A forced shutdown will start automatically and the forced shutdown will always result in an unclean shutdown!  (Time the array 'stopping' time and add about 25% to that number for the setting.)

 

 

Weird.... shouldn't this be applied to all shut down requests? Mine is set to 90 seconds. but when a manual shut down is requested it never results in an unclean shut down. It only occurs when a UPS shutdown is requested. 

 

I will try to extend it and see what happens. It shouldn't make any difference to my day to day use anyway. Thanks for the suggestion. It does make a lot of sense other than that I never get an unclean shut down when I manually do it. 

On 2/12/2025 at 5:13 PM, itimpi said:

Have you checked out the online documentation here on handling unclean shutdowns?

 

  • Author
6 minutes ago, trurl said:

 

Thanks dude I did see that. But as I have said a manual shut down never results in an unclean shut down and I assumed these settings apply then too. So I never even considered that my settings were an issue. I have re adjusted the disk timeout to be 180. But again there is no way to properly test this without pulling the power on the UPS. Which I'd rather avoid given that others have said it can cause degradation of the batteries. 

 

Also the fact that other devices are still running post shut down of the server would indicate that there is sufficient time on the batteries to allow for the shut down. Which is why I was confused about my issue specifically. 

  • 2 weeks later...
  • Author

Ok so between the disk shutdown timeout and immediate shut down request upon power loss this has solved my problem. 

I'm going to assume the more likely culprit was the shutdown timeout given the other factors I explained earlier.

Thanks everyone for the responses.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.