[CentOS] Adding a new disk to an existing raid 10
SilverTip257
silvertip257 at gmail.com
Wed Apr 2 00:03:55 UTC 2014
On Tue, Apr 1, 2014 at 4:58 AM, JC Putter <jcputter at 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
--
---~~.~~---
Mike
// SilverTip257 //
More information about the CentOS
mailing list