From: NeilBrown <neilb@suse.de>
To: "Kwolek, Adam" <adam.kwolek@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Williams, Dan J" <dan.j.williams@intel.com>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>,
"Neubauer, Wojciech" <Wojciech.Neubauer@intel.com>
Subject: Re: [PATCH 0/5] Make OLCE workeable
Date: Wed, 9 Mar 2011 18:56:10 +1100 [thread overview]
Message-ID: <20110309185610.789d2c99@notabene.brown> (raw)
In-Reply-To: <905EDD02F158D948B186911EB64DB3D17A8AEF75@irsmsx503.ger.corp.intel.com>
On Wed, 9 Mar 2011 07:45:07 +0000 "Kwolek, Adam" <adam.kwolek@intel.com>
wrote:
> >
> > >
> > > 2.On the begin of reshape_array() array structure is read from md (via
> > ioctrl). Md knows nothing about raid4 working level, so spares_needed is
> > wrongly computed
> > > Resolution: use info->array.raid_disks instead array.raid_disks to
> > compute spares_needed.
> >
> > md certainly should know about RAID4 working level because it is
> > assembled
> > as RAID4.... hopefully some testing will show me what you really mean.
>
>
>
> During assembly - yes, but for regular reshape start no.
> Regular reshape start:
> 1. md knows raid0
> 2. metadata reports raid4 (metadata has reshape_active == 1 already)
>
> Reshape restart
> 1. md knows raid4
> 2. metadata reports raid4
The difference was between a container reshape and a single array reshape.
>
>
> >
> > > 3.Analyse_changes() delta_parity concept doesn't match information
> > currently metadata reports. Result of this is wrongly computed
> > reshape.after.data_disks field.
> > > Resolution: do not use delta_parity, base on information from
> > metadata handle
> >
> > You cannot just remove delta_parity like that. It is needed when we
> > start
> > a growth. Maybe it is confusing when we restart a growth - I will look
> > in to in.
>
> It looks for me that when metadata handler takes responsibility for reporting
> Different raid level and increasing raid disks by 'delta parity' we should not
> Count delta parity in different place.
> If you think that analyse_change() should support both cases:
> 1. reshape handler increases raid_disks by delta parity
> 2. reshape handler doesn't increase raid_disks by delta parity
>
> I'll fix analyse_changes() for this.
>
Before you do, have a look at the changes I just pushed out.
With those, most of the tests pass - maybe all of them, I'm not sure.
Thanks,
NeilBrown
next prev parent reply other threads:[~2011-03-09 7:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-08 13:24 [PATCH 0/5] Make OLCE workeable Adam Kwolek
2011-03-08 13:24 ` [PATCH 1/5] fix: array is reassembled inactive if stopped during resync Adam Kwolek
2011-03-08 13:24 ` [PATCH 2/5] FIX: Set new raid disks when delta_disks is valid Adam Kwolek
2011-03-08 13:24 ` [PATCH 3/5] FIX: Allow for takeover Adam Kwolek
2011-03-09 7:44 ` NeilBrown
2011-03-08 13:25 ` [PATCH 4/5] FIX: Remove delta_parity concept Adam Kwolek
2011-03-08 13:25 ` [PATCH 5/5] FIX: Compute spares_needed basing on metadata info Adam Kwolek
2011-03-09 0:53 ` [PATCH 0/5] Make OLCE workeable NeilBrown
2011-03-09 7:45 ` Kwolek, Adam
2011-03-09 7:56 ` NeilBrown [this message]
2011-03-09 8:13 ` Kwolek, Adam
2011-03-09 8:35 ` Kwolek, Adam
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=20110309185610.789d2c99@notabene.brown \
--to=neilb@suse.de \
--cc=Wojciech.Neubauer@intel.com \
--cc=adam.kwolek@intel.com \
--cc=dan.j.williams@intel.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
/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).