mdadm --add /dev/md0 /dev/sdd1

Category: Administration

mdadm --add /dev/md0 /dev/sdd1

Add a spare disk to a RAID array

Adds /dev/sdd1 to array md0 as a spare or, if the array is degraded, immediately starts rebuilding data onto it. This is how you replace a failed disk: fail the bad one, remove it, then add the new one. Watch the rebuild progress in /proc/mdstat.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.