I have been using a Synology DS412+ (with DSM 5.2) for almost 1 years now and I am happy with it.
The other day, I forgot to switch on my Prolink IPS1000 UPS and electricity went out. Electricity on, I switched on my UPS and my DS came up okay, I can browse the files and DS was checking parity integrity. Electricity went out again and I afraid checking would take long and UPS couldn’t hold enough, so I shut down.
When electricity was on again and my DS was up, I found out the following problem.
- Disk management showed error “Connection failed. Please check your network settings.”
- Disk management was not showing anything but blank area.
- Info Center showed incorrect capacity and usage was over 100%.
- I can browse but DS warned me of not enough storage on widget.
- CPU usage was 99% on widget.
After googling I narrowed it down to file system problem and the following posts to my rescue.
- Synology Nas: Run Fsck To Check and Repair a Linux File System (2012) – this post is complicated by installing third party package
- How to give your disks and files a health check and repair basic faults (2013) – this post instruction on stopping services do not work for 5.2
- Filesystem check with DSM5 (2015) – has a lot of helpful commands especially from this post and this reply
However, they are for DSM 4/5 and I couldn’t found 5.2 specific instruction. However the following step by step worked for my case.
- enable SSH through GUI
- configure DSM not to beep on volume degrade or crash though GUI
- connect to DS using root account
- dismount volume
- activate volume
- check file system
- repair file system
It took about 30 minutes to check in read-only mode and another 30-minutes to repair file system of (4.9 TB storage space, 78% usage)
Enable SSH through GUI
- Go to Control Panel > Terminal & SNMP
- Check Enable SSH Service checkbox
- Click Apply button
Configure DSM not to beep on volume degrade or crash through GUI
- Go to Control Panel > Hardware & Power
- Under General tab, Beep Control section uncheck Volume degrades or crashes
without this your DS will beep when you dismount volume
Connect to DS using root account
- open your terminal of choice and run the following (replace my_ds_ip with your DS IP address)
- you would be prompted to trust the IP (answer yes)
- then you would be prompted to enter password (enter your DS admin password) and you should see a prompt
using ssh session run the following command
make sure you use
-d debug option so that you can use ssh. Wait some time to get back to prompt
- using ssh session run the following command
and you should see
1 logical volume(s) in volume group "vg1000" now active
Check file system
- check file system
e2fsck -nvf -C 0 /dev/vg1000/lv
ntells not to make changes
vtells file system check to be verbose
fforces file system check
I found more than 10 errors in 5 passes.
Repair file system
- run the following command to repair
e2fsck -y /dev/vg1000/lv
-yoption answer every question with
- don’t try
-poption as it will ask for you to run
e2fsckMANUALLY (which is the above command)
- After successfully running you will see summary of the result
rebootin ssh session to restart