* resizing array devices not working?
@ 2012-06-21 15:19 Phillip Susi
2012-06-26 1:31 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Phillip Susi @ 2012-06-21 15:19 UTC (permalink / raw)
To: linux-raid
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: resizing array devices not working?
2012-06-21 15:19 resizing array devices not working? Phillip Susi
@ 2012-06-26 1:31 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2012-06-26 1:31 UTC (permalink / raw)
To: Phillip Susi; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 877 bytes --]
On Thu, 21 Jun 2012 11:19:37 -0400 Phillip Susi <psusi@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-26 1:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-21 15:19 resizing array devices not working? Phillip Susi
2012-06-26 1:31 ` NeilBrown
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).