You might not switch off your DiskStation very often, but there are occasions that you need to. But did you know that there are six different ways via either software or hardware to achieve this?
How To Switch Off A Synology NAS
A Synology DiskStation is, like any NAS or Network-attached storage device, built to be powered on 24/7. That said, there may be reasons to switch off your device. But because you do this so infrequently, you may not know how graceful to shut it down.
A DiskStation needs a graceful shutdown to remain operative the next time you switch it on like any computer. So the question, however, is: how do you switch it off?
This post is not about the question of why you should switch off your DiskStation, but I can easily come up with several reasons.
During a recent power failure, my UPS took care of my DiskStation, but I finally had to switch it off before the DiskStation drained the battery.
When I am not at home for a period of time, I might switch off some devices in my house, including the DiskStation, assuming I do not access it remotely while traveling.
I have a DiskStation for backup, and it powers up a few times a week only for the backup task. And finally, during transport or for maintenance, you need to switch it off. I did that when I upgraded the RAM in one of my DiskStations.
There are many ways to switch off or restart a DiskStation, and they all do the same.
- manually via software
- from DSM
- from DS finder app
- via SSH
- manually via hardware (not for virtual DSM)
- long press power button (3 seconds until beep)
- by UPS
- scheduled via software
- a scheduled task for power off
Manually Via Software
There are three ways to shut down and power off your DiskStation via software: via DSM, the DS finder app, and SSH.
Login to the DiskStation Manager or DSM with an account that is a member of the Administrators group.
In the top-right corner, click on the icon of the person. Here you find options to Restart and Shutdown (DSM6 and DSM7). After a confirmation dialog, the DiskStation either restarts or shuts down.
From DS finder
With the DS finder app on your mobile device, you can connect to your DiskStation and perform basic tasks. Connect to your DiskStation from the Device List.
From the General tab, tick the power switch symbol at the top right corner. Choose Restart or Shutdown. After a confirmation dialog, the DiskStation either restarts or shuts down.
If you are familiar with SSH, you can restart or shut down your DiskStation from the command prompt. You must enable access via SSH before you can use it.
Login via SSH to your DiskStation. Use the following commands to either restart or shut down your DiskStation immediately.
restart: sudo shutdown -r now shutdown: sudo shutdown -h -P now
Note that instead of now, you can schedule a shutdown ahead of time
Manually Via Hardware
You can use the power switch to power off your DiskStation. And if you have a UPS or uninterruptible power supply, your DiskStation will shut down after a power failure.
The power-on switch is actually power-off as well. Hold and press for three seconds until you hear a beep and release the button.
This action starts the shutdown procedure of the DiskStation.
A UPS or uninterruptible power supply is highly recommended for your DiskStation. It connects between your AC outlet and DiskStation. A USB cable between the UPS and your DiskStation is used for sending commands to the DiskStation, informing it about its status.
In case of a power failure, the UPS controls the DiskStation via the USB cable and can initiate a shutdown. Depending on the relevant settings of the Control Panel of your DiskStation, the shutdown will immediately start after a power failure or after some time or percentage of battery power.
Scheduled Via Software
From Control Panel in DSM, you can start and shut down your DiskStation at predefined moments in time. This is very useful when your DiskStation is only necessary during specific hours, like your work schedule, or at day time, or for scheduled backups.
In Control Panel, go to Hardware & Power, and select the Power Schedule tab. Here you create your power schedules.
Note that you create all other scheduled tasks from the Task Scheduler in Control Panel. You find the power schedule there too, but they are made and maintained from the Hardware & Power pages.
Note on power schedule and backup
I have a setup with two DiskStations, where one DiskStation (original NAS) makes a scheduled Hyper Backup backup to the other (backup NAS). The backup NAS makes a scheduled power-on and power-off for this task.
On the occasion that the backup takes more time than anticipated, it overruns the power-off schedule of the backup NAS, leaving the backup NAS powered on. As a result, the backup tasks finish as intended.
But now, the backup NAS does not power off after the backup task finishes. A solution is to define a second power off schedule, for example, an hour later, to power down the backup NAS. Even multiple power-off schedules are an option.
Paul Steunebrink / Storage Alchemist