There are a few things you can do to speed up the process of RAID operations, SSH to your NAS as admin and enter the following commands (change md3 to your device):
# echo 100000 > /proc/sys/dev/raid/speed_limit_min
# echo 32768 > /sys/block/md3/md/stripe_cache_size
The first command increases the minimum “goal” rebuild speeds for when there’s non-rebuild activity.
The second command increases the stripe cache size which increases sync performance by allowing a larger cache to synchronise the read and write operations on the array. This is only available for RAID 5 volumes and it does decrease the amount of available system RAM but I never saw 100% utilisation on the DiskStation.
You can monitor the process with the following commands:
# cat /proc/mdstat
# cat
/sys/block/md5/md/stripe_cache_size# cat
/proc/sys/dev/raid/speed_limit_min
It also works for speeding up volume consistency checks as they both read the same config. Remember the commands above will only set those options until the NAS is rebooted.
Verifying the status of RAID arrays
We can check the status of the arrays on the system with:
or
The output of this command will look like: