RE: Growing RAID5 on CentOS 4.6

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



Stephen Harris wrote:
> On Fri, Aug 22, 2008 at 08:41:25PM +0300, Jussi Hirvi wrote:
> > How about simply
> >     % mdadm --grow /dev/md3
> 
> % mdadm --grow  /dev/md3
> mdadm: no changes to --grow
> 
> > What do you get with
> >     % mdadm --detail /dev/md3
> 
> /dev/md3:
<snip>
>     Number   Major   Minor   RaidDevice State
>        0       8        1        0      active sync   /dev/sda1
>        1       8       18        1      active sync   /dev/sdb2
>        2       8       35        2      active sync   /dev/sdc3
>        3       8       52        3      active sync   /dev/sdd4
> 
>        4       8       65        -      spare   /dev/sde1

Stephen,

I don't think you can grow it without backing it up, destroying
it, rebuilding it with 5 devices, then restoring.

>From the man page:

       Grow   Grow  (or shrink) an array, or otherwise reshape it in some way.
              Currently supported growth options including changing the active
              size of component devices in RAID level 1/4/5/6 and changing the
              number of active devices in RAID1.

I take it to mean you can grow the segment size on all devices in the
array, say you swapped out 160GB drives with 320GB drives one by one
and now you want your array to fill up the remaining 160GB, then you
can grow it, but you can only add devices to a RAID1...

What do you think this is ZFS?

Sheesh!

-Ross

______________________________________________________________________
This e-mail, and any attachments thereto, is intended only for use by
the addressee(s) named herein and may contain legally privileged
and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination,
distribution or copying of this e-mail, and any attachments thereto,
is strictly prohibited. If you have received this e-mail in error,
please immediately notify the sender and permanently delete the
original and any copy or printout thereof.

_______________________________________________
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