04 August 2014

echo check > /sys/block/mdX/md/sync_action
echo repair > /sys/block/mdX/md/sync_action
echo idle > /sys/block/mdX/md/sync_action

raid check和sync的最大速度控制:
sysctl -w dev.raid.speed_limit_max=1000
echo value > /proc/sys/dev/raid/speed_limit_max

/etc/cron.d/raid-check控制定期check软raid的频率,/etc/sysconfig/raid-check是它对应的配置。

参考链接:

https://raid.wiki.kernel.org/index.php/RAID_Administration

http://www.thomas-krenn.com/en/wiki/Mdadm_checkarray

http://wiki.eri.ucsb.edu/sysadm/RAID

http://www.cyberciti.biz/tips/linux-raid-increase-resync-rebuild-speed.html

https://www.kernel.org/doc/Documentation/md.txt

man md