Synology Parity Consistency Controle
Synology Parity Consistency Controle
Synology Parity Consistency Controle to control and check with terminal commands the process
Synology parity consistency controle terminal commands. How to see the status of the check and control it for example to let it run faster. Also to see where logging takes places.
Running this commands are at your own risk!
start ssh session with Synology NAS.
as root:
To check the status of the running parity consistency check:
cat /proc/mdstat
You can also see the speed. speed=
Showing the running speed:
cd /sys/block/md<X>/md
Where X is your volume, md0 and md1 are system partitions. So md2 would be the first volume
cat sync_speed will show the running speed
To control speed:
cd /sys/block/md<X>/md :
Where X is your volume, md0 and md1 are system partitions. So md2 would be the first volume
cat sync_speed_min
cat sync_speed_max
By changing this values you can control the speed.
echo <value> >sync_speed_max
The standard value sync_speed_max is high so there is no limit. By lowering this value you can max the speed and slow down the process.
The standard value sync_speed_min is set low By making this value higher you can try to speed up the process. Just check the current speed and try to make this setting higher and check what happens.
Start/Stop and Pause the parity check
cd /sys/block/md<X>/md :
Where X is your volume, md0 and md1 are system partitions. So md2 would be the first volume
Start:
echo check > /sys/block/mdX/md/sync_action
Pause:
There is no actual pause, since you will still fall back a little bit or resume from the beginning if you reboot the unit. But below is the closest one.
#echo idle > /sys/block/mdX/md/sync_action
Stop:
#echo frozen > /sys/block/mdX/md/sync_action
You will need to replace mdX with your volume. For example, md2, md3... ( md0, md1 are system partitions. )
Where logging takes place?
/var/log/kern.log
To change debug setting:
cd /sys/block/md<X>/md :
Where X is your volume, md0 and md1 are system partitions. So md2 would be the first volume
echo 1 > sync_debug
tail -f /var/log/kern.log will show the last messages
Messages like this to watch for:
md: data-check of RAID array md2
md: md2: data-check stop due to MD_RECOVERY_INTR set.
md: md_do_sync() got signal ... exiting
Do you want Diktio Solutions to help you. Click Here to contact Diktio Solutions.