Linux RAID subsystem development
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: Christian <cjs@dhp.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Adding larger disks to RAID5
Date: Tue, 22 May 2007 09:34:06 +1000	[thread overview]
Message-ID: <18002.11374.159035.143026@notabene.brown> (raw)
In-Reply-To: message from Christian on Monday May 21

On Monday May 21, cjs@dhp.com 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

  reply	other threads:[~2007-05-21 23:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-21 20:44 Adding larger disks to RAID5 Christian
2007-05-21 23:34 ` Neil Brown [this message]
2007-05-21 23:57   ` Bill Rugolsky Jr.
2007-05-22  0:40     ` Neil Brown
2007-05-22 12:15       ` Bill Rugolsky Jr.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18002.11374.159035.143026@notabene.brown \
    --to=neilb@suse.de \
    --cc=cjs@dhp.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox