Re: Adding a new disk to an existing raid 10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Apr 1, 2014 at 4:58 AM, JC Putter <jcputter@xxxxxxxxx> 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  //
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux