mdadm replace disk

Copy the partition table to the new disk
Dump layout from sda create on sdb

# sfdisk -d /dev/sda | sfdisk /dev/sdb

Add to raid.

# mdadm --manage /dev/md0 --add /dev/sdb1

Verify
# cat /proc/mdstat

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>