Search Our Database

How to add a missing partition back to an existing software RAID array in Linux

Last updated on |
by

If you have two partitions in RAID 1 mode, and the raid array is named /dev/md0

/dev/sda1
/dev/sdb1

Assumed /dev/sdb was unplugged from the machine. Then it is re-attached back to the machine. However, the system shows that the /dev/sdb1 is still missing from /dev/md0 RAID array.

To synch up, you can use this command to add /dev/sdb1 back to /dev/md0

mdadm --add /dev/sdb1 /dev/md0