Today I had the problem that my QNAP NAS get stucked. The shares worked fine but SSH and HTTP didn’t work. I had to power down the NAS via power button after that the NAS starts normal and wants the default check disk.
The file system is not clean. It is suggested that you run "check disk"
I started the check disk via webinterface but i got the following error after some minutes.
[Mirror Disk Volume: Drive 1 2 3 4] Examination failed (Cannot unmount disk by updatedb).
After waiting a while I connected via SSH and checked which files are open.
[~] # lsof /share/MD0_DATA/
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
updatedb 18219 admin cwd DIR 9,0 4096 204750861 /share/MD0_DATA/....
I saw that the updatedb get stucked, I checked it twice, everytime the same files are open. So I decide to umount it manualy.
updatedb Update (create first time used) a database of all files under the root directory /
e2fsck -f force check
-v verbose mode
-C file descriptor for progressbar, 0 print a completion bar
[~] # e2fsck -f -v -C 0 /dev/md0
e2fsck 1.42.6 (21-Sep-2012)
Pass 1: Checking inodes, blocks, and sizes
/dev/md0: |============== - 25.5% %