From: Dan Williams <dan.j.williams@intel.com>
To: "Labun, Marcin" <Marcin.Labun@intel.com>
Cc: Neil Brown <neilb@suse.de>, Doug Ledford <dledford@redhat.com>,
"Hawrylewicz Czarnowski,
Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@intel.com>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>,
"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
Bill Davidsen <davidsen@tmr.com>
Subject: Re: Auto Rebuild on hot-plug
Date: Fri, 26 Mar 2010 17:37:57 -0700 [thread overview]
Message-ID: <e9c3a7c21003261737k1e753b08xc6f8eb45d0320be9@mail.gmail.com> (raw)
In-Reply-To: <905EDD02F158D948B186911EB64DB3D11C510278@irsmsx503.ger.corp.intel.com>
On Thu, Mar 25, 2010 at 8:04 AM, Labun, Marcin <Marcin.Labun@intel.com> wrote:
> I think that metadata keyword can be used to identify scope of devices to which the DOMAIN line applies.
> For instance we could have:
> DOMAIN path=glob-pattern metadata=imsm hotplug=mode1 spare-group=name1
> DOMAIN path=glob-pattern metadata=0.90 hotplug=mode2 spare-group=name2
>
> Keywords:
> Path, metadata and spare-group shall define to which arrays the hotplug definition (or other definition of action) applies. User could define any subset of it.
> For instance to define that all imsm arrays shall use hotplug mode2 user shall define:
> DOMAIN metadata=imsm hotplug=mode2
>
> In above example user need not define spare-group in his/her configuration file for each array.
>
> I also assume that each metadata handler can additionally sets its own rules of accepting the spare in the container. Rules can be derived from platform dependencies or metadata. Notice that user can disable platform specific constrains by defining IMSM_NO_PLATFORM environment variable.
>
For the 'platform' case we could automate some decisions, but I think
I would rather extend the --detail-platform option to dump the
recommended/compatible DOMAIN entries for the platform, perhaps via
the --brief modifier. This mirrors what can be done with --examine
--brief to generate an initial configuration file that can be modified
to taste.
>>
>> hotplug modes are:
>> none - ignore any hotplugged device
>> incr - normal incremental assembly (the default). If the device has
>> metadata that matches an array, try to add it to the array
>> replace - If above fails and a device was recently removed from this
>> same path, add this device to the same array(s) that the old
>> devices
>> was part of
>> include - If the above fails and the device has not recognisable
>> metadata
>> add it to any array/container that uses devices in this domain,
>> partitioning first if necessary.
>> force - as above but ignore any pre-existing metadata
>>
>>
>> I'm not sure that all those are needed, or are the best names. Names
>> like
>> ignore, reattach, rebuild, rebuild_spare
>> have also been suggested.
>
> Please consider:
> spare_add - add any spare device that matches the metadata container/volume in case of native metadata regardless of array state, so later such a spare can be used in rebuild process.
This is the same as 'incr' above. If the device has metadata and
hotplug is enabled, auto-incorporate the device.
> Can we assume for all external metadata that spares added any container can be potentially moved between all container the same metadata?
Yes, that can be the default action, and the spare-group keyword can
be specified to override.
--
Dan
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-03-27 0:37 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-25 0:35 Auto Rebuild on hot-plug Neil Brown
2010-03-25 2:47 ` Michael Evans
2010-03-31 1:18 ` Neil Brown
2010-03-31 2:46 ` Michael Evans
2010-03-25 8:01 ` Luca Berra
2010-03-31 1:26 ` Neil Brown
2010-03-31 6:10 ` Luca Berra
2010-03-25 14:10 ` John Robinson
2010-03-31 1:30 ` Neil Brown
2010-03-25 15:04 ` Labun, Marcin
2010-03-27 0:37 ` Dan Williams [this message]
2010-03-29 18:10 ` Doug Ledford
2010-03-29 18:36 ` John Robinson
2010-03-29 18:57 ` Doug Ledford
2010-03-29 22:36 ` John Robinson
2010-03-29 22:41 ` Dan Williams
2010-03-29 22:46 ` John Robinson
2010-03-29 23:35 ` Doug Ledford
2010-03-30 12:10 ` John Robinson
2010-03-30 15:53 ` Doug Ledford
2010-04-02 11:01 ` John Robinson
2010-03-29 21:36 ` Dan Williams
2010-03-29 23:30 ` Doug Ledford
2010-03-30 0:46 ` Dan Williams
2010-03-30 15:23 ` Doug Ledford
2010-03-30 17:47 ` Labun, Marcin
2010-03-30 23:47 ` Dan Williams
2010-03-30 23:36 ` Dan Williams
2010-03-31 4:53 ` Neil Brown
2010-03-26 6:41 ` linbloke
2010-03-31 1:35 ` Neil Brown
2010-03-26 7:52 ` Majed B.
2010-03-31 1:42 ` Neil Brown
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=e9c3a7c21003261737k1e753b08xc6f8eb45d0320be9@mail.gmail.com \
--to=dan.j.williams@intel.com \
--cc=Marcin.Labun@intel.com \
--cc=davidsen@tmr.com \
--cc=dledford@redhat.com \
--cc=ed.ciechanowski@intel.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
--cc=przemyslaw.hawrylewicz.czarnowski@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).