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.

Shutdown two unraid servers in the event of lost power (and shut down VM too)

Featured Replies

Sorry if this has been asked before (I did not find this question asked, but i may have missed it).

 

I have two unRAID servers currently.  One is my primary, the other is a test box.  Eventually i will have two unRAID servers up and running.  Also eventually, I will probably have another smart UPS, but for now i only have one.

 

I can obviously get one server to shut down in the event of power loss (i have this working now) but wondering if there is a way to shut another unRAID server down in the even of a power loss on the same UPS?

 

Sort of related question, is there a way to shut down a VM running under unRAID in the event of a power loss on the unRAID server?  Any info is appreciated.

  • Community Expert

Sorry if this has been asked before (I did not find this question asked, but i may have missed it).

 

I have two unRAID servers currently.  One is my primary, the other is a test box.  Eventually i will have two unRAID servers up and running.  Also eventually, I will probably have another smart UPS, but for now i only have one.

 

I can obviously get one server to shut down in the event of power loss (i have this working now) but wondering if there is a way to shut another unRAID server down in the even of a power loss on the same UPS?

 

Sort of related question, is there a way to shut down a VM running under unRAID in the event of a power loss on the unRAID server?  Any info is appreciated.

APCUPSd, the software unRAID uses for UPS, is available for other systems as well. One of its great features is the ability to communicate over the network to other instances of APCUPSd. Many of us use this feature to control shutdown of multiple systems from one UPS.

 

For example, I have my PC and my unRAID running on the same UPS. unRAID is connected by USB to the UPS and uses the builtin APCUPSd to shutdown, and my PC has APCUPSd running but instead of connecting to the UPS by USB, it connects over the network to the APCUPSd running on unRAID.

 

I've not done it with 2 unRAID systems, but the principles are the same. Go to UPS Settings and turn on Help and see what it says about the UPS cable setting.

  • Author

Thanks for the reply.  I should have thought that as far as the VM is concerned i should be able to run the app there, but wasn't sure on another unRAID.

 

I will keep poking around.  Appreciate it!

  • Community Expert

Somewhat obviously, if you want APCUPSd to work over the network, you must make sure the network is up during a power failure also.

  • Author

Yes, good point.  And I am a complete idiot....  I had started poking around the UPS settings but didn't even think to turn on help.  It is up and slaved to the other unRAID already.  Thanks for pointing me in the right direction!

  • 2 years later...

Hi... regarding the "make sure the network is up" part...

 

I was thinking.... if there were a script that pings the router and, if ping response is not valid, shutdown the server.

 

Sounds pretty easy script, but I don't have a clue on how to write it and test it... can someone give me a had ? 

  • Community Expert
22 minutes ago, ozzylins said:

Hi... regarding the "make sure the network is up" part...

 

I was thinking.... if there were a script that pings the router and, if ping response is not valid, shutdown the server.

 

Sounds pretty easy script, but I don't have a clue on how to write it and test it... can someone give me a had ? 

The way you make sure the network is up is to put the router on the UPS with the server or on its own UPS.

yea I know... but for me this means buy another UPS...  =( 

 

did you understand the ping script idea? if network is down, the unraid shutsdown....  

 

is it "doable" ?

yea I know... but for me this means buy another UPS...  =( 

 

did you understand the ping script idea? if network is down, the unraid shutsdown....  

 

is it "doable" ?

Surely you can attach the router to the UPS ... or is its physical location the problem?

 

Sent from my LG-D855 using Tapatalk

 

 

 

physical problem... all my network is in another room 50ft away... =( 

 

  • Community Expert
50 minutes ago, ozzylins said:

physical problem... all my network is in another room 50ft away... =( 

 

extension cord:D

 

I have a low capacity UPS with only my network on it. Not very expensive, and it also serves as a power strip to other devices on my network nearby.

 

 

hahaha.. it´s not 5 ft... common be serous ! :D

 

Isn't a script cheaper? LoL  can it be done?

 

 

  • Community Expert

You might try a local switch plugged into that UPS and use IP addresses for all of the computers that you want to shutdown.  That way you have the portion of the network will be up until after you start the shutdown sequence.  (You don't need a router and modem for your LAN when you use IP addresses. Current costs of a 5 port switch are very modest.) 

Archived

This topic is now archived and is closed to further replies.

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.