linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris Webb <chris@arachsys.com>
To: NeilBrown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Assume-clean for md grow
Date: Thu, 26 Feb 2009 16:03:01 +0000	[thread overview]
Message-ID: <20090226160301.GN17577@arachsys.com> (raw)
In-Reply-To: <20090226155743.GM17577@arachsys.com>

Chris Webb <chris@arachsys.com> writes:

> I just tried growing the slots up from 1G to 3G, then
> 
>   echo $((2097136 + 2*1024*1024*2)) >/sys/block/md127/md/resync_start
>   mdadm --grow 3145720
> 
> but this gives me
> 
>   md127 : active raid1 dm-3[1] dm-2[0]
>         3145720 blocks super 1.1 [2/2] [UU]
>           resync=PENDING
> 
> in /proc/mdstat, which is presumably not right?

Rewriting the original value of 18446744073709551615 back to
/sys/block/md127/md/resync_start removes this, although it looks like any
value lower than this gives a PENDING state. Presumably this means that:-

  echo 18446744073709551614 >/sys/block/md127/md/resync_start
  mdadm --grow --size=... /dev/md127
  echo 18446744073709551615 >/sys/block/md127/md/resync_start

is a generic recipe for growing an array 'assume-clean' without needing to know
anything more about the eventual size of the array other than the parameter
passed to --size= (max or component size).

      reply	other threads:[~2009-02-26 16:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 14:22 Assume-clean for md grow Chris Webb
2009-02-25 19:34 ` NeilBrown
2009-02-26 14:54   ` Chris Webb
2009-02-26 15:57     ` Chris Webb
2009-02-26 16:03       ` Chris Webb [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=20090226160301.GN17577@arachsys.com \
    --to=chris@arachsys.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /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).