From: NeilBrown <neilb@suse.de>
To: Adam Kwolek <adam.kwolek@intel.com>
Cc: linux-raid@vger.kernel.org, dan.j.williams@intel.com,
ed.ciechanowski@intel.com, wojciech.neubauer@intel.com
Subject: Re: [PATCH] FIX: Raid0 expansion cannot be restarted
Date: Mon, 11 Apr 2011 15:01:45 +1000 [thread overview]
Message-ID: <20110411150145.3165bce8@notabene.brown> (raw)
In-Reply-To: <20110408100545.7338.13248.stgit@gklab-128-013.igk.intel.com>
On Fri, 08 Apr 2011 12:05:45 +0200 Adam Kwolek <adam.kwolek@intel.com> wrote:
> When raid0 expansion is restarted, mdadm refuses to correctly assemble
> array because critical section cannot be restored from backup file.
> mdadm exits with information:
> mdadm: Failed to restore critical section for reshape - sorry.
>
> For raid0 new level is 0, current array level is 4.
> Function Grow_restart() doesn't allow for level change.
> It should be allowed for raid0, while raid4 is reshape mid-point only.
> 'Native' raid0 reshape is not possible, because md doesn't support it.
>
> Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
> ---
>
> Grow.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/Grow.c b/Grow.c
> index d6ecde2..21531e0 100644
> --- a/Grow.c
> +++ b/Grow.c
> @@ -3102,7 +3102,8 @@ int Grow_restart(struct supertype *st, struct mdinfo *info, int *fdlist, int cnt
> unsigned long long nstripe, ostripe;
> int ndata, odata;
>
> - if (info->new_level != info->array.level)
> + if ((info->new_level != info->array.level) &&
> + (info->new_level != 0) && (info->array.level != 4))
> return 1; /* Cannot handle level changes (they are instantaneous) */
>
> odata = info->array.raid_disks - info->delta_disks - 1;
Thank,.
I changed this to simply remove that 'if' and 'return 1'.
There really is no way we should ever see level changes at this point - if we
think we do they are pending level changes for after a reshape so we don't
want to give them any special attention.
I have applied and pushed this out.
NeilBrown
prev parent reply other threads:[~2011-04-11 5:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 10:05 [PATCH] FIX: Raid0 expansion cannot be restarted Adam Kwolek
2011-04-11 5:01 ` 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=20110411150145.3165bce8@notabene.brown \
--to=neilb@suse.de \
--cc=adam.kwolek@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=wojciech.neubauer@intel.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).