Videos
Hi,
I’m trying to setup my new 920+ and don’t want to plug it in the wall due to poor power in my house. So I just got my Eaton 5SC 500 and was wondering what is the correct way to plug my NAS into the ups.
I plugged the usb cable provided with the UPS into the ups then the NAS.
Now do I plug the NAS power supply directly into one of the the battery/surge protected outlets on the UPS(which I think is the correct way), into the wall, or don’t plug it into anything and just have the usb connection?
I also watched a video of a person using an IEC adapter.
Beginner with all this and want to make sure I’m doing ensuring correctly to avoid costly mistakes down the road.
Thank you for any help.
I'm a noob looking for advice for my DS1019+ and CyberPower CP1500PFCLCD.
There is a way to allow the NAS to communicate with the UPS so it can safely shut down before the battery is dead, right? Do I just connect them with USB? Any other setup required?
Any other important useful setup I should look into?
I recently read some posts here and was convinced to get a UPS for my NAS. I got a 1000kVA EATON 5S. In considering the battery size, I also considered other devices I have (UDM Pro, USW and some backup hdds).
I plugged everything in, disconnected the power for 2 minutes, and the UPS went from 100% to about 80%. I pulled up the power switch and consider the test positive. I should be protected :)
During the test the NAS showed a notification like "battery can last for 7minutes".
As you can see from the screenshot, I generically set "until low battery" but I would not want it to be too short.
Can you suggest a best practice for me to figure out how to get the time right to allow the NAS to shut down safely but not overdo it. Fortunately, I live in an area where there are no power outages, and there are rarely any problems. Usually if there are outages these are very short, say 1 min at most.
There happened to be a power outage last year that lasted about 20 minutes but it is very rare.
Here: I would like to make sure that if the power goes out for 1-2 minutes the NAS stays on, but beyond a certain threshold that it has time to safely shut down.
Thank you for your suggestions and for those who do not have a UPS: don't procrastinate!
Hi everyone,
I know there's information on using our Synology NAS' as UPS servers to power down other Synology devices, but it took me some time to piece together how to use Synology to safely power down my Mac Mini server in the event of a power outage so I figured I'd put it into a writeup here to maybe help some others.
WHY: Most UPS' only have one USB port to control a single device in the event power outage and the battery running low. If you're like me, I have my Synology NAS and other devices (i.e. Mac server) that I want all powered down safely.
My setup: These steps are not specific to my hardware/OS/UPS, but figured I'd provide for context.
-
APC 600VA UPS
-
Synology DS918+
-
Mac mini (running Ubuntu server 20.04, not Mac OS X) - this is not specific to Linux, it will work for Mac, Windows servers/computers
-
Your router needs to be also attached to the UPS otherwise your NAS and computers/servers won't be able to communicate.
Synology Setup
-
Connect NAS to UPS via USB cable.
-
Open up DSM and go to Control Panel > Hardware & Power > UPS (tab)
-
Enable UPS Support and check "Enable network UPS server"
4. Click "Permitted DiskStation Devices" and input the IP addresses of your servers/computers you would like to power down. In my case, I input the IP of my Mac Mini.
5. Apply settings. If you click, "Device Information" you should see your UPS info. (May require a restart of the NAS, I can't remember)
Server/Computer Setup
Linux
Synology is running a NUT Server (http://networkupstools.org) and in this part we have to install the Nut-client to monitor the NAS. I am walking through setup of the Nut-client on Linux, but the same basic steps apply for Mac/Windows. The NUT website has download/install instructions specific to Windows/Mac.
1.Install NUT
sudo apt-get install nut
2.Modify /etc/nut/nut.conf file to specify your computer/server as a client instead of server. Edit this specific line:
MODE=netclient
3.Add Synology address and credentials to /etc/nut/upsmon.conf
MONITOR ups@192.168.0.102 1 monuser secret slave
*Note: these credentials can be changed or you can add a user by SSHing into the NAS and modifying /usr/syno/etc/ups/upsd.users.
4. Lastly, start the nut-client service.
service nut-client restart
Now if I unplug my UPS (to simulate power outage), my Mac will update with the status of the UPS and also will safely shutdown when Synology triggers. I left my Synology settings to trigger shutdown when the UPS battery runs low, but you can check "Time before DiskStation enters Safe Mode" in step 3 above and put a specific time to shutdown.
Windows (Thanks to u/xnaas for providing Windows instructions)
-
Download and install the latest binary https://github.com/networkupstools/nut-package-archive/tree/master/windows
During install, uncheck the box for Install libUSB driver
2. Go to the etc folder of your NUT installation folder
Default: C:\Program Files (x86)\NUT\etc
3. Rename or copy nut.conf.sample to nut.conf
4. Rename or copy upsmon.conf.sample to upsmon.conf
5. Edit MODE inside nut.conf
MODE=netclient
6. Edit upsmon.conf
Find the SHUTDOWNCMD section
Default: SHUTDOWNCMD "/sbin/shutdown -h +0"
Change the default to something like SHUTDOWNCMD
SHUTDOWNCMD "C:\\WINDOWS\\system32\\shutdown.exe -s -t 0"
Customize the time (-t 0) to your liking. Optionally add -f to force the shutdown. If you want to hibernate, replace -s with -h.
Find the MONITOR section and add the following
MONITOR ups@192.168.1.150 1 monuser secret slave
Make sure to update the IP to your Synology IP
7. Copy libgcc_s_dw2-1.dll from the bin subfolder to the sbin subfolder
8. Download OpenSSL library https://indy.fulgan.com/SSL/
9. Copy libeay32.dll and ssleay32.dll to the sbin subfolder
10. Launch services.msc from Run (WIN+R)
11. Find the service called Network UPS Tools and Start it
Mac
To be added later. In the meantime, this wiki should be a good guide: https://github.com/networkupstools/nut/wiki/NUT-on-Mac-OS-X
Hope this helps someone!
I'm currently running a DS923+ NAS, with a router PC and several network equipments.
And, I recently purchased a UPS from APC for extra safety, and connected to the NAS. (I checked the energy consumption and confirmed that the UPS can sustain all connected electronics)
However, I was wondering if there's a way to also inform my router PC for safe shutdown, since I also have some Proxmox containers running on it.
So, what I want is:
-
The UPS must be connected to the Synology NAS via USB, for extra safety
-
If the NAS shutdowns, the Proxmox server should also shutdown. Maximum time delay is 5 min. (If the NAS shutdowns after 5 mins of power outage, the Proxmox should shutdown within 10 mins (5+5) from the initial power outage)
-
When the power is restored, the NAS automatically turns on. If so, the Proxmox server should also start within 5 mins
Can anyone suggest a way to make this working?
What I'm currently thinking of is using a cron job for step 2, and the NAS sending WOL packets when the NAS starts, making the Proxmox server to start with it.
Thanks in advance!