Jun 09, 2023
Pausing an mdadm RAID array check
When mdadm is checking your disk array, you may find performance crawls to a halt.
1 | $ mdadm --detail /dev/md2 |
To mitigate this you may want to stop the check and restart it when it is quieter.
Stopping
You can stop the check with the following:
1 | $ echo idle > /sys/devices/virtual/block/md2/md/sync_action |
You can then see that the check has stopped
1 | $ cat /proc/mdstat |
Resuming
Tou can resume it again at a later date (when the system is quieter) wth the following:
1 | $ echo check > /sys/devices/virtual/block/md2/md/sync_action |