Pausing a Linux MD RAID Resync or Check

Simply run this command, substituting ${array} with the name of your array (for example md0).

echo idle >> /sys/block/${array}/md/sync_action

If you want to resume it, run this command:

echo check >> /sys/block/${array}/md/sync_action