mdadm cheatsheet

Check raid status cat /proc/mdstat or watch cat /proc/mdstat Scan configuration mdadm --detail --scan To Remove a disk from the Array, you’ll have to fail then remove the drive. mdadm --fail /dev/mdX /dev/sdX mdadm --remove /dev/mdX /dev/sdX To add a disk to the array: mdadm --add /dev/mdX /dev/sdX Turn bitmap on mdadm --grow --bitmap=internal /dev/mdX Turn off bitmap mdadm --grow --bitmap=none /dev/mdX Speed up recovery echo 50000 > /proc/sys/dev/raid/speed_limit_min Resources ...

December 16, 2012 · 1 min · Shane Greaves