NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Dewdman42
Jun 08, 2020Virtuoso
Shutdown two readynas from one UPS
I have two readynas, running OS6, they are plugged into the same UPS. There is only one USB output port on the UPS. Any suggestions for how to have both readynas setup to automatically shutdown whe...
- Jun 08, 2020
Dewdman42 wrote:
They are connected to the same switch, its not a netgear switch and doesn't ahve any kind of USB port for monitoring the UPS.
Doesn't matter. What matters is that the switch is getting its power from the UPS, so it stays powered up after the power fails.
Dewdman42 wrote:How do I setup one readynas to follow the other readynas over the network in shutting down?
Go to the power page on the web ui, and expand the UPS section.
- Select "remote UPS" as the type
- Enter the IP address of the other NAS as the address.
- Set the user to monuser
- Set the password to pass
Also reserve the IP address of the other NAS in your router.
https://kb.netgear.com/23121/How-do-I-add-a-UPS-to-my-ReadyNAS-OS-6-storage-system
Dewdman42
Jun 15, 2020Virtuoso
My ultra 2 plus comes back on, my 524x does not. If NUT shuts it down before battery is drained then I guess it thinks it does not want to be auto rebooted, which is not sensical. Sorry I disagree with you.
- power goes out
- readynas runs on battery
- NUT shuts down readynas while on battery power from UPS
- last known state of readynas = off
- battery drains
- power comes back
- last known state of readynas = off, so it doesn't powerup.
The only time it would ever make sense to have the readynas power up automatically to the last known state would if the power cut out completely before it could do a clean shutdown, so that its last known state is ON. But that is a situation we are specifically trying to avoid!
The good news is that somehow my switch or something is able to make it wake on lan.
StephenB
Jun 15, 2020Guru - Experienced User
Dewdman42 wrote:
My ultra 2 plus comes back on, my 524x does not. If NUT shuts it down before battery is drained then I guess it thinks it does not want to be auto rebooted, which is not sensical. Sorry I disagree with you.
- power goes out
- readynas runs on battery
- NUT shuts down readynas while on battery power from UPS
- last known state of readynas = off
- battery drains
- power comes back
- last known state of readynas = off, so it doesn't powerup.
If the sequence you list above is for the RN524, then it is acting as I described. As far as the NAS is concerned, the power failure happened at step 5.
StephenB wrote:
- If the system was powered off at the time of the power failure, the system remains off when the power is restored.
I thought the Ultra/Pro worked that way also, but I was working from memory (and as I tried to explain, it isn't something I run into very often). It sounds like I remembered it incorrectly.
Whether this is sensible behavior or not is another question. Personally I'd prefer to always power up the NAS myself whether the shutdown was clean or not.
- Dewdman42Jun 15, 2020Virtuoso
I agree. My windows server is also configured to always power back on no matter what. It makes no sense to me at all for a server of any kind to not behave that way....and in particular when as UPS is involved, even more so.
It might make sense for desktop computers, which are turned on and off frequently, to follow the last known state to power back up. Also, Desktop computers running Windows and OSX are generally much more resiliant to not being screwed up by a power outage. Even lots of apps are automatically saving things under the covers now so that in many cases you won't even lose what you were working on....not always, but sometimes. So having your desktop on a UPS is less of a priority...and certainly if my desktop was off before a power outage, I don't want it back on again.
But for servers...if I want a server Off then probably it will be completely unplugged on a shelf somewhere. If its plugged in, then it wants to be on always as long as there is power. That should be the behavior of the 524X IMHO.Do you have any clue as to why the wake on lan might be working, not withstanding the fact that I don't have any other wake on lan client anywhere specifically targeting it?
- StephenBJun 15, 2020Guru - Experienced User
Dewdman42 wrote:
Do you have any clue as to why the wake on lan might be working, not withstanding the fact that I don't have any other wake on lan client anywhere specifically targeting it?
That is curious. Are you certain it is WoL that is turning it on? Have you tried disabling WoL in the NAS and see if the behavior changes?
- Dewdman42Jun 15, 2020Virtuoso
I'm not "certain" of anything, but it was OFF always before and the 524x woul not restart when the power came back. when I checked the WoL box, now it does. I can't find anything in my router docs that it is sending the WoL message either. No idea.
- Dewdman42Jun 15, 2020Virtuoso
TP-Link C3150
- SandsharkJun 16, 2020Sensei
OK, I see where you are coming from. If the NAS does not know why it was shuit down, then it doesn't know to come back on if it was due to a NUT shut-down. But I don't remember that being the way things worked on my native OS6 machines when I was using the built-in NUT. I'm using Eaton IPP now, so things are very different for me.
I do recall seeing some interplay between having WoL enabled and power on after UPS shut-down on the legacy rack mount systems, and that could be the key here, but I don't remember the details. If WoL is enabled, the NAS is not really totally off. It''s alive enough to listen for WoL That alone may be how WoL is interracting with your NAS. It's not getting a WoL magic packet, just the fact that it's enabled changes how things work.
As to why you would want a server/NAS to remain off it it was off, you would if it's a backup device on a power schedule. Simply put, one size does not fit all, but Netgear only gives us one option (which differs depending on current and legacy machines).
- StephenBJun 16, 2020Guru - Experienced User
Sandshark wrote:
As to why you would want a server/NAS to remain off it it was off, you would if it's a backup device on a power schedule.
Yes, and some of my NAS are used that way.
BTW, my comment on my preference was poorly worded - I'd prefer my own NAS to remain off no matter what the power state was. The rationale is that I usually want to delay powering my NAS up until I know that the power is stable.
Power failures are rare for me, and almost never last long enough for the NAS to actually power down. If the relatively few cases when I've experienced an extended power loss, the power has often been unstable in the beginning (coming on for a few seconds, then turning off again). Though I haven't had to deal with intentional brownouts, that is another scenario where I'd want to keep the NAS off.
But I do understand why some would want them turned on no matter what (and also why many would be fine with the current policy). It depends on what they are used for, and the environment they are used in.
Sandshark wrote:
Simply put, one size does not fit all, but Netgear only gives us one option (which differs depending on current and legacy machines).
Agreed, and this has been requested many times for many years.
FWIW, if you have a terminal connected to the NAS (via the serial port on the Ultra, or the microusb port on the RN52x), it might be possible to access the bios during startup and change the power settings. Not something I've tried though.
- StephenBJun 16, 2020Guru - Experienced User
Dewdman42 wrote:
TP-Link C3150
Unfortunately TP-Link doesn't seem to have a manual for it on their website (only FAQs and some videos).
FWIW, I have RN102 that I don't actually use (other than occasional testing). It's on my home network, and is normally powered down. It has WoL enabled, and it does come on spontaneously sometimes - every month or two. I've never figured out the cause. I've seen some other posts here reporting similar behavior. It is possible that the NAS sometimes falsely thinks it is seeing a WoL magic packet.
- Dewdman42Jun 16, 2020Virtuoso
Well the other thing that is making me wonder is that if I have all my machines shut down cleanly before the power in the battery is drained, then the minute they are shutdowh, they should detect some power and try to start up again. Right?
Seems to me that the only truly proper way to handle this is that the UPS itself should be controlling when to shutdown and when to start up, and therefore it should use WoL to start them up.
But i digress. I'm happy enough they are going to shut down cleanly...
- StephenBJun 17, 2020Guru - Experienced User
Dewdman42 wrote:
Seems to me that the only truly proper way to handle this is that the UPS itself should be controlling when to shutdown and when to start up, and therefore it should use WoL to start them up.
Your UPS isn't connected to the ethernet, so it can't do that.
Dewdman42 wrote:
Well the other thing that is making me wonder is that if I have all my machines shut down cleanly before the power in the battery is drained, then the minute they are shutdowh, they should detect some power and try to start up again. Right?
No, because the NAS hasn't seen a loss of power at that point. The Ultra would try to restart
- if the battery completely drains
- and power is then restored.
But if the battery doesn't completely drain, then the Ultra won't try to start up on it's own. That's because the bios won't see a loss of power.
If it worked as you are imagining, then it would be impossible to power down the Ultra unless you pulled the plug.
I believe your conceptual problem here is that you are thinking that the shutdown initiated by the UPS is somehow different from other shutdowns done via the power switch, admin web ui, or power schedule. As far as the NAS BIOS is concerned, it's not any different.
- SandsharkJun 17, 2020Sensei
Dewdman42 wrote:Well the other thing that is making me wonder is that if I have all my machines shut down cleanly before the power in the battery is drained, then the minute they are shutdowh, they should detect some power and try to start up again. Right?
No. The NAS will not return to the start-up portion of the BIOS until power is interrupted and re-applied. Think of the actual power removal "arming" the process.
Seems to me that the only truly proper way to handle this is that the UPS itself should be controlling when to shutdown and when to start up, and therefore it should use WoL to start them up.
Actually, mostt high-end UPS do have the capability to send a shut-down command (that NUT can monitor) based on user configuration. But many only provide you the ability to set those parameters through their propritary software rather than a control panel. Since most basic home UPS units don''t support this, Netgear has not given that level of insite into NUT via the GUI. And any changes you make via SSH could be overwritten at any point (especially an OS update).
An UPS with an Ethernet connection could send a WoL. I suppose one with USB could emulate a keyboard and use that if "power on from keyboard" is enabled, but I doubt a ReadyNAS has that option, since it won't normally have a keyboard.
I did install an Ethernet card in my Eaton UPS, but it does not have WoL (or any other "run script on power-on") capability. Eaton relies on you using an (expensive) application designed for enterprise use to monitor multiple UPS and devices on them. It can send a WoL when power is returned to a device.
I suppose one could develop a set of power-down and power-up scripts for a "master" device that sets a flag when power-down is due to the UPS and will power on other devices when the flag is set when that unit powers on (and for some devices, wake from Hibernate). Then, you'd only have to have one device auto power-on and the remainder could be powered up sequentially, reducing the power-up surge on the UPS. I'm not enough of an expert on NUT to know how to modify it's power-down script.
A simplification of that would be for one unit to always send a WoL on power-up, since sending a WoL to a unit that's already on won't hurt.
- Dewdman42Jun 17, 2020VirtuosoI was speaking hypothetically. I already well understand that the ups doesn’t have networking. I’m just saying, the ups is the only device in this scenario that knows when the power goes out while the computers are still running. And when it comes back. Furthermore once the computers are shutdown the ups is still providing power to the computer until the battery runs out so, so only the ups knows when the power has actually come back for real and the only way it can communicate that fact to the computer that is now off would be through WoL.
existing protocols are insufficient to properly handle state so that a running system will come back after it has been shut down and also provide a way for Stephen’s backup system to stay off when power comes back.
Nevermind my comments if it’s going to cause a debate then I’m out
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!