From: Benjamin Marzinski <bmarzins@redhat.com>
To: christophe.varoqui@opensvc.com,
device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH] multipath: add find_multipaths feature.
Date: Thu, 18 Nov 2010 11:21:09 -0600 [thread overview]
Message-ID: <20101118172109.GY13763@ether.msp.redhat.com> (raw)
In-Reply-To: <1289951475.3861.6.camel@zezette>
On Wed, Nov 17, 2010 at 12:51:15AM +0100, Christophe Varoqui wrote:
> On mar., 2010-11-16 at 17:25 -0600, Benjamin Marzinski wrote:
> > This adds a new default feature, find_multipaths. When this is set to yes,
> > multipath will no longer try to create multipath devices using every
> > non-blacklisted device. Instead, it will only create a device when one of
> > three conditions are met.
> >
> > 1. Three are at least two non-blacklisted paths with the same wwid
> > 2. The user manually forces the creation, by specifying a device with the
> > multipath command.
> > 3. A path has the same wwid as a multipath device that was previously crreated
> > (even if that multipath device doesn't currently exist).
>
> I'm confused. A blacklist/whitelist system may be hard to configure
> properly but the rules are simple. I fear this new rule set will
> increase confusion.
>
> Could you elaborate on what problems this new rule set is trying to
> address ?
The request was to have multipath do the right thing by default for the
common setups, without needing anyone to edit the config file by hand
(which is frequently done wrong). In this case, if you have a
multipath.conf file that just sets find_multipaths, multipath will
automatically create multipath devices for all the LUNs that have
multiple paths, and (assuming they use the right storage devices)
autoconfigure them correctly. Users only need to use the blacklist if
they have a LUN with multiple paths to it, but don't want in multipathed
for some reason.
Condition 1 takes care of the common case, where multipath notices that
two devices are just paths to the same LUN, and creates a multipath
device.
Condition 2 is mostly for testing.
Condition 3 means that after a multipath device has been created once, in
the future, it will be created right away, even if only one path is
currently active.
There's an added benefit in keeping the list of multipathed wwids. I'll
shortly be sending a patch that adds a multipath option to check if a
path belongs to a multipath device, which it does by checking this file.
This allows things like udev to find out as soon as a path appears that
it will be multipathed, which lets us avoid races where something else
opens the device before multipathd can.
-Ben
>
> Best regards,
> --
> Christophe Varoqui <christophe.varoqui@opensvc.com>
> OpenSVC
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
next prev parent reply other threads:[~2010-11-18 17:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 23:25 [PATCH] multipath: add find_multipaths feature Benjamin Marzinski
2010-11-16 23:51 ` Christophe Varoqui
2010-11-18 17:21 ` Benjamin Marzinski [this message]
2010-12-07 23:00 ` Christophe Varoqui
2011-07-15 0:53 ` Mike Snitzer
2011-07-15 7:03 ` Christophe Varoqui
2011-07-18 10:01 ` Peter Volkov
-- strict thread matches above, loose matches on Subject: below --
2011-07-25 18:57 [PATCH] " Benjamin Marzinski
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=20101118172109.GY13763@ether.msp.redhat.com \
--to=bmarzins@redhat.com \
--cc=christophe.varoqui@opensvc.com \
--cc=dm-devel@redhat.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).