[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-raid
Subject:    Re: Online resize
From:       Neil Brown <neilb () suse ! de>
Date:       2008-04-29 1:00:13
Message-ID: 18454.29469.343413.701176 () notabene ! brown
[Download RAW message or body]

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
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic