Re: resizing array devices not working?

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

 



On Thu, 21 Jun 2012 11:19:37 -0400 Phillip Susi <psusi@xxxxxxxxxx> wrote:

> I was trying to do a little experiment with resizing devices.  I created 
> two 1g logical volumes and built a raid1 array out of them, then 
> lvresized the volumes to 2g, then ran:
> 
> mdadm -G -z max /dev/md1
> 
> That SHOULD expand the array to use the extra space right?  It keeps 
> telling me that it set the size to just 1g.

Maybe you need a newer mdadm - 3.2.2 or newer might be required.  but you
didn't say which version you were using, or which kernel.

Or maybe you have 0.90 metadata and a kernel earlier than 3.1 that imposed
some limits, but I think that allows up-to 2GB, not upto 1, so that can't be
the problem.

Maybe you can just
 for i in /sys/block/md1/md/dev-*
 do echo 0 > $i/size
 done

and try again. '0' means 'max' in this context.

NeilBrown

Attachment: signature.asc
Description: PGP signature


[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