Phillip Susi | 21 Jun 2012 17:19
Favicon

resizing array devices not working?

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

NeilBrown | 26 Jun 2012 03:31
Picon
Gravatar

Re: resizing array devices not working?

On Thu, 21 Jun 2012 11:19:37 -0400 Phillip Susi <psusi <at> ubuntu.com> 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

Gmane