Re: Online resize

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

 



On Tuesday March 11, wayne@xxxxxxxxxxxxxxxx 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@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