Re: Adding larger disks to RAID5

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

 



On Monday May 21, cjs@xxxxxxx wrote:
> Hello,
> 
> I have 8x250gig hard drives in a RAID5 configuration.  What I'm trying
> to do is add more storage to the raid by replacing the 250's with
> larger disks one-by-one over time.  I just replaced the first disk
> with a 750, and the raid resync'd, but now I'm unable to grow it to
> the additional space.  The raid is just using the first 250 gigs and
> nothing more on the drive.   The command I issued in attempt to grow
> it was 'mdadm --grow /dev/md0 -z max', but nothing happens.  Is what
> I'm trying to do possible?  I'm running kernel 2.6.21 w/ raid5 expansion
> enabled.

No, what you are trying to do is not possible.
A raid5 uses equal amounts of space on each device.  So if the devices
are of different sizes, it will use an amount equivalent to the
smallest device from every device.

If you replace all the devices with 750G drives, then you could grow
the array (-z max) to use all the space, not before.

What you could do is partition the new drives in a 250G partition and
a 500G partition.  Add the 250 to the current array.  Create a new
raid5 with the 500G.
With only one large drive, you could make a degraded 2-device raid5
which would store 500G, but would not have any data redundancy.
When you get a second 750G, add that and you will have redundancy.
Then as you replace more drives and get more 500G partitions you can
add them to the array growing it as you go until you ultimately have 2
arrays, one with 8 250G partitions, and one with 8 500G partitions.

That seems the best fit for your needs as you describe them.

If possible, it would be best to get all the drives up front and just
have one large array.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux