June 19, 20251 yr Yesterday, we had a power outage around midnight, and my server was onI have a UPS to power my modem, router and switch as well as the serverBut the server drained it quite fast, and I realized I didn't have internet anymore because of thatHow do I configure the server (plugin?) to automatically shut down when it's powered by the UPS (CyberPower 1350VA from Costco)Thanks
June 19, 20251 yr Community Expert These are my settings:The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it. Edited June 19, 20251 yr by Frank1940
June 19, 20251 yr Author 3 minutes ago, Frank1940 said:These are my settings:The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it.On 3/17/2025 at 3:50 AM, JorgeB said:Enable the mover logging, run the mover and post new diags and the name of the share(s) you expected moved. Also, make sure you confirm the download in Chrome so that you post the actual diags zip.But how does the server know it's running on battery?8 minutes ago, Frank1940 said:These are my settings:The circled one is the one that actually does the shutdown. (I have determined that if a power outage last thirty seconds, it will be hours before power is restored.) I have nothing else connected to my server UPS so this provides battery reserves if after power restoration, there is a second outage, there will be enough battery to make a second clean shutdown!One more setting. Determine the time required to stop the array and set this variable to make sure that the array is stopped before a force shutdown is force by this timer. Sometimes, a Docker container will refuse to release a file lock and the array can not be stopped. If you find one of these you will have to figure out a way to deal with it.But how does the server know it's running on battery?
June 20, 20251 yr Community Expert 2 hours ago, French-Guy said:But how does the server know it's running on battery?Because the UPS communicates with the Unraid UPS software! That is how it 'knows' how much battery remains as well as the nominal power being used by the load connected to the UPS. So the mains power is interrupted, it sends notification to the UPS software that the shutdown timer can start. If the timer elapses without a signal from the UPS that the power is restored, the shutdown sequence will begin!If your UPS will not communicate properly with the default UPS software in Unraid, you can install the NUT plugin which has support for more UPS's.You connect your UPS with a USB cable to your server. Then go to the UPS setting and turn on 'Help' by clicking on this icon on the Toolbar of the GUI. Edited June 20, 20251 yr by Frank1940
June 20, 20251 yr Author 11 hours ago, Frank1940 said:Because the UPS communicates with the Unraid UPS software! That is how it 'knows' how much battery remains as well as the nominal power being used by the load connected to the UPS. So the mains power is interrupted, it sends notification to the UPS software that the shutdown timer can start. If the timer elapses without a signal from the UPS that the power is restored, the shutdown sequence will begin!If your UPS will not communicate properly with the default UPS software in Unraid, you can install the NUT plugin which has support for more UPS's.You connect your UPS with a USB cable to your server. Then go to the UPS setting and turn on 'Help' by clicking on this icon on the Toolbar of the GUI.I did a quick test, and it seems to work perfectly without having to install any pluginsThank you for your help Edited June 20, 20251 yr by French-Guy
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.