Date: May 17, 2017
Yesterday afternoon, there was this mysterious power outage. And I am lucky to have only 1 single casualty. The hard disk in my Synology NAS #2 which stores all my life time digital photos. (Well, I did backup to Synology NAS #1 for safety, and I also have a Time Machine to backup my Photo library on my iMac).
You usually cannot find the root cause, as there are too many electrical appliance at home and it is really impossible to know where is the grounding leakage or faulty appliance. Especially when there are so many China-made LED lights and parts lying here and there. hahahaha
So, my new project of the day is…
- Get an smart UPS
- Connect the UPS to my Synology NAS and connect it with DATA link too.
- When there is a power outage, the UPS will supply battery power to my NAS
- At the same time, thru the data/USB port, UPS will notify my NAS that there are power outage.
- Wait for X number of minutes, the NAS will go into Safe Mode, where it unmount all the disk, and shutdown itself.
- When the power come back up again, the data port/USB port will some how magically wake up the Synology NAS, and then, start up the NAS again.
- And since I have two NAS, so, the NAS #1 must inform NAS #2 the same thing without having the data/USB port connected to the UPS (Since UPS usually have only 1 single data/USB port).
After some quick research, these are some of the UPS that is supported by Synology.
Since this is a critical project. So, without any delay, I quickly bought the UPS. It is a Smart UPS from APC CS-650.
Here are the specs. The most important feature is “Network interface port – USB/serial connectivity”. This is the data cable that has RJ45 at one end and the other end is a USB connecting port.
I bought it from Memory World @ Sim Lim Square. That is where I bought all my Synology, hard disk, ColorSpace photo disk. It cost about $219.
Not very useful info. But you know it will provide battery power to my two Synology NAS for some time so that it has enough time to power down and unmount the disk in case of power outage.
Oh Cool! I always thought UPS is black color. hahaha
Well done. It actually QC the UPS for me.
This is that magic cable. One end RJ45, and the other end USB.
Very simple. Plug the USB into Synology USB port #1. Plug the RJ45 into the Network Data port as shown on the APC CS-650 UPS.
Connect the power cable to both Synology NAS.
And by right, you should plug the third one to the Network Router which networked both the Synology UPS. And the UPS only gives you two such power cable. so, you need to buy the third one. I will get it some day later.
After hook up everything. The UPS has power, it is online, green color. The Synology are booting up.
Configuring is simple.
Go to Control Panel –> Hardware & Power –> UPS
Click “Enable UPS support
I select “5” minutes before DiskStation enters Safe Mode
Enable network UPS server.
Key in the Synology NAS that is connected to the UPS, but not the DATA USB port. So, you simply tell this Synology that there is another Synology out there. So, it is this Synology NAS #1′ job to tell the other networked Synology NAS #2 that there is power outage in case of the real outage.
So, since you have connected the Data USB cable on this Synology NAS #1, it will tell you what UPS you are using, and the status as well as the Batter charged status. Cool!
If you can see this, means, it work!
On the other Synology NAS #2, you configure the same thing. But because it has not connected to the APC UPS directly, you will need to configure a Network UPS server IP, which is the Synology NAS #1 who is connecting to the APC UPS via the data USB port.
Once you have done that, the “Device Information” is shown. That mean, your Network UPS worked.
So now, this is how it works…
- The there is a power outage.
- UPS will tell Synology NAS #1 (the one that is connected to UPS via the data USB cable) that there is a power outage.
- Synology NAS #1 in turns relay this message to Synology NAS #2. Telling him that there is a power outage.
- So, both NAS #1 and NAS #2 will now wait for 5 minutes, then, NAS #1 & NAS #2 initiate the Safe mode and unmount the disk and go to shutdown mode.
- NAS #2 inform NAS #1 it has shutdown. NAS #1 inform UPS it has shutdown.
- Both NAS #1 and NAS #2 shutdown.
- UPS then, shutdown the battery.
- When power is restored, it then, will wake both NAS #1 and NAS #2 in that order.
So, now, I have a very safe UPS protecting my Synology NAS. 🙂 My precious.
Mean while, my Synology NAS #2 is slowly rebuilding and repairing the data. 🙂