linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Phillip Susi <psusi@ubuntu.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: resizing array devices not working?
Date: Tue, 26 Jun 2012 11:31:29 +1000	[thread overview]
Message-ID: <20120626113129.09275333@notabene.brown> (raw)
In-Reply-To: <4FE33B89.40007@ubuntu.com>

[-- 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 --]

      reply	other threads:[~2012-06-26  1:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 15:19 resizing array devices not working? Phillip Susi
2012-06-26  1:31 ` NeilBrown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120626113129.09275333@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=psusi@ubuntu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).