Tag Archives: ds1010

Fixing file system corruption on Synology NAS

I recently recycled my hard-drives on my Synology DS1010+ as one of the drives started to fail. Migration of the drives was easy, but I did notice that I had file-system corruption when looking at dmesg:

htree_dirblock_to_tree: bad entry in directory
Multiply-claimed block(s) in in ode

The Synology does not have a facility to check the file-system during boot up, and the following instructions will allow you to run a file-system repair:

  1. Disable optware: If you have Optware installed, comment out the lines in /etc/rc.local and reboot your NAS. Otherwise just kill all Optware processes.
  2. You need to stop almost all Synology services:
  3. ./S20pgsql.sh stop
    ./S21mysql.sh stop
    ./S04crond.sh stop
    ./S55cupsd.sh stop
    ./S81atalk.sh stop
    ./S23ntpdate.sh stop
    ./S97apache-webdav.sh stop
    ./S97apache-user.sh stop
    ./S97apache-sys.sh stop
    ./S66fileindexd.sh stop
    ./S80samba.sh stop
    ./S77synomkthumbd.sh stop
    ./S66synoindexd.sh stop
    ./S99avahi.sh stop
    ./S12upsmon.sh stop
    ./S83nfsd.sh stop
  4. Try to “umount /volume1″ – if you can’t then there are probably other Synology services running which you need to stop. Only proceed to the next step if you can unmount /volume1.
  5. Depending on your file-system (in my case it is EXT4), you run fsck.ext4 /dev/vg1/lv
  6. The “fsck” command will warn you if the file-system is still mounted, and you should not continue unless you managed to unmount it (you also have backups yes?)
  7. In my case (6TB of storage), the fsck took about 1 hour to run and I had quite a few errors. In all my cases, blocks where assigned to the same file or directories and I just chose to delete those files as part of the file-system check.
  8. Once fsck has completed, issue a “reboot now” on the command line and the Synology will reboot. Once the NAS has booted up, you can re-enable Optware.
An easier approach might also be:
syno_poweroff_task
umount /volume1
fsck.ext4 -pvf /dev/vg1/lv
reboot the system after the scan is completed


VN:F [1.9.17_1161]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

The baby has arrived

It does not pay to be impatient. The longest 5 days in a while – fresh off the factory and just arrived from Taiwan:

This is probably the first DS1010+ in the country. Noise-levels are acceptable and unlike other people complained are not as loud as I thought it would be. In fact the noise is comparable with the DS107+ I am running (slightly louder due to the number of hard-drives I would say).

Setup was painless, the unit weighs in (empty) at about 5kg and has a footprint of an A4-piece of paper. Two gigabit ports, 4xUSB, 1xeSata and 5 drive bays. The drive brackets can be used to mount 2.5″ and 3.5″ SATA drives. I populated 4 x 1.5TB Seagate SATA drives and will build a Raid-5 array (gives about 4.2 TB of storage).

I installed the latest beta (DSM 2.3-1118) and the unit is lightning fast – kudos to the 1.6Ghz processor and 1GB onboard RAM (expandable to 3GB). Cant wait to see the read/write performance on the unit, which is about 120MB/sec.

Also a big thanks to Dennis @ Synology for organising the shipping for me. Importing it was a breeze (paid R 900,00 import duties). I still feel that the local distributors (you know who you are) are ripping of customers – I was quoted almost R 16,000.00 for the predecessor of the DS1010, which goes overseas for about USD 1,000.00.

VN:F [1.9.17_1161]
Rating: 7.0/10 (1 vote cast)
VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)