From: Dan Williams <dan.j.williams@intel.com>
To: "Hawrylewicz Czarnowski,
Przemyslaw" <przemyslaw.hawrylewicz.czarnowski@intel.com>
Cc: Neil Brown <neilb@suse.de>,
"linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>,
"Ciechanowski, Ed" <ed.ciechanowski@intel.com>
Subject: Re: [PATCH] imsm: assign UUID of spare device based on ARRAY *device* keyword in mdadm configuration file.
Date: Thu, 15 Apr 2010 09:37:26 -0700 [thread overview]
Message-ID: <i2le9c3a7c21004150937qe1d0a43buab5020282c22801e@mail.gmail.com> (raw)
In-Reply-To: <66C59AD0932712458090B447266D638CD3F05943@irsmsx504.ger.corp.intel.com>
>>On Thu, Apr 8, 2010 at 7:48 AM, Hawrylewicz Czarnowski, Przemyslaw
>><przemyslaw.hawrylewicz.czarnowski@intel.com> wrote:
>>> If config has list of devices associated with container and it comprises
>>given spare drive, UUID is set apporopriately to this container.
>>> It allows to assign spare with proper container according
>>> to content in devices parameter in configuration file.
>>>
>>
>>I guess it would be nice if a user could direct spares via the
>>configuration file, but what gets honored in the future when this
>>value conflicts with a container group id in the metadata? Especially
> You are right, but at this moment it is *always* first container. This proposal gives a way how user can point out the right one.
We are already fixing this problem in a more comprehensive way with
the spare migration and DOMAIN code. This 'devices' option will be
deprecated in short order, and its presence would just complicate the
policy decisions. For example, what takes precedence the DOMAIN
keyword, 'devices' list, or at a future date a spare pool id in the
metadata? What would you rather write a DOMAIN line to specify the
hardware port ranges or a 'devices' line to identify individual disk
devices and update the configuration file on an ongoing basis?
>>when the actual device associated with a given name /dev/sda changes
>>from one boot to the next, potentially even across controllers, or the
>>admin moves the drive and forgets to update the configuration file.
> but it will need to rewrite this part of config to respect eg. /dev/disk/by-id patterns which are constant, which is far beyond this patch.
...but now you have hard coded something that would be better to float
between containers on an automatic as needed basis. The only degree
of freedom I see missing in the current proposals is to have the
ability to disable spare migration to a given container. That may be
some nice icing to allow some containers/arrays to have higher rebuild
priority, but let's finish the cake first :-).
--
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
prev parent reply other threads:[~2010-04-15 16:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-08 14:48 [PATCH] imsm: assign UUID of spare device based on ARRAY *device* keyword in mdadm configuration file Hawrylewicz Czarnowski, Przemyslaw
2010-04-14 22:15 ` Dan Williams
2010-04-15 10:36 ` Hawrylewicz Czarnowski, Przemyslaw
2010-04-15 16:37 ` Dan Williams [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=i2le9c3a7c21004150937qe1d0a43buab5020282c22801e@mail.gmail.com \
--to=dan.j.williams@intel.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).