linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Neil Brown <neilb@suse.de>
To: wayne@flashmedia.co.za
Cc: linux-raid@vger.kernel.org
Subject: Re: Online resize
Date: Tue, 29 Apr 2008 11:00:13 +1000	[thread overview]
Message-ID: <18454.29469.343413.701176@notabene.brown> (raw)
In-Reply-To: message from Wayne Gemmell on Tuesday March 11

On Tuesday March 11, wayne@flashmedia.co.za wrote:
> Hi all
> 
> I'd like to do an online resize for my RAID5 drives now that I've upgraded 
> them to 500GB drives. Now I'm a bit stuck. I assume the steps would be the 
> following.

What exactly do you mean by "now that I've upgraded them to 500GB
drives".
Don't tell my you got new 500GB drives, created little partitions on
them to match the old drives, and added those to the array.  That is
the wrong way around.

md is quite happy having using some partitions much larger than
others.
So if you have an array with (say) 4 200GB drives and want to replace
them all with 500GB drives, you should make 500GB partitions on those
drives (assuming that you really want to use partitions) and then
one at a time, fail a working drive and add a new drive, and wait for
recovery to complete.

Once that is done you still have a working array of the same size as
before but all the devices (and all the partitions) are larger.
Then just
  mdadm --grow /dev/mdX --size=max

and the array will resync the new space and be larger for you.  Then
you can resize the filesystem.

NeilBrown

  parent reply	other threads:[~2008-04-29  1:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-11  9:19 Online resize Wayne Gemmell
2008-03-11 11:12 ` Robin Hill
2008-03-11 12:44   ` Wayne Gemmell
2008-03-11 14:58     ` Robin Hill
2008-03-12  7:27       ` Wayne Gemmell
2008-03-12  7:46         ` Wayne Gemmell
2008-03-12  8:04       ` Michael Tokarev
2008-03-12  9:14         ` Wayne Gemmell
2008-03-12  9:38           ` Michael Tokarev
2008-03-12 11:17             ` Wayne Gemmell
2008-03-12  9:31         ` Robin Hill
2008-04-29  1:00 ` Neil Brown [this message]
2008-04-29  7:30   ` Wayne Gemmell

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=18454.29469.343413.701176@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=wayne@flashmedia.co.za \
    /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;
as well as URLs for NNTP newsgroup(s).