In order to avoid performance issues for other operations (e.g. upgrades or backups) slow down raid 1 synch by lowering its max speed to zero. This might especially be useful after a fresh install when the system performs slow for a few hours, but still some final work needs to be done (e.g. create user accounts and software installation/configuration).
First check the current value of /proc/sys/dev/raid/speed_limit_max:
# cat /proc/sys/dev/raid/speed_limit_max
200000
Next, set /proc/sys/dev/raid/speed_limit_max to 0:
echo 0 > /proc/sys/dev/raid/speed_limit_max
Finally, reset the speed to its previous value to get back full speed synchronization.
echo 200000 > /proc/sys/dev/raid/speed_limit_max
Note: sudo-ers need to do something like this:
sudo bash -c 'echo 200000 > /proc/sys/dev/raid/speed_limit_max'