On Tue, Apr 1, 2014 at 4:58 AM, JC Putter jcputter@gmail.com wrote:
Hi,
I had to do this a while ago, basically you have to mark the disk as failed (if not already) and than remove it from the array
mark as failed > mdadm --fail /dev/md0 /dev/sdaX
remove from array > madmad --remove /dev/md0 /dev/sdaX
Partition your new disk to your needs and then add it to the array
You can "clone" the partition layout from an existing healthy disk and write it to the new disk with sfdisk. *As always, be very careful* what disk you're dumping the partition layout from and which one is the target destination.
sfdisk -d /dev/sdX | sfdisk /dev/sdY