December 1, 201510 yr 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.
December 1, 201510 yr 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.
December 1, 201510 yr 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!
December 1, 201510 yr 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.
December 1, 201510 yr 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!
March 13, 20188 yr 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 ?
March 13, 20188 yr 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.
March 13, 20188 yr 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" ?
March 13, 20188 yr 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
March 13, 20188 yr Community Expert 50 minutes ago, ozzylins said: physical problem... all my network is in another room 50ft away... =( extension cord 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.
March 13, 20188 yr hahaha.. it´s not 5 ft... common be serous ! Isn't a script cheaper? LoL can it be done?
March 14, 20188 yr 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.