From: Hannes Reinecke <hare@suse.de>
To: Benjamin Marzinski <bmarzins@redhat.com>
Cc: dm-devel@redhat.com, Xose Vazquez Perez <xose.vazquez@gmail.com>,
Martin Wilck <mwilck@suse.com>
Subject: Re: [PATCH 1/2] libmultipath: hwhandler auto-detection for ALUA
Date: Wed, 4 Apr 2018 08:38:35 +0200 [thread overview]
Message-ID: <20180404083835.213875f1@pentland.suse.de> (raw)
In-Reply-To: <20180403203132.GF3103@octiron.msp.redhat.com>
On Tue, 3 Apr 2018 15:31:32 -0500
"Benjamin Marzinski" <bmarzins@redhat.com> wrote:
> On Tue, Mar 27, 2018 at 11:50:52PM +0200, Martin Wilck wrote:
> > If the hardware handler isn't explicitly set, infer ALUA support
> > from the pp->tpgs attribute. Likewise, if ALUA is selected, but
> > not supported by the hardware, fall back to no hardware handler.
>
> Weren't you worried before about temporary ALUA failures? If you had a
> temporary failure while configuring a device that you explicitly set
> to be ALUA, then this would cause the device to be misconfigured? If
> the hardware handler isn't set, inferring ALUA is fine. But what is
> the case where we want to say that a device that is explicitly set to
> ALUA shouldn't actually be ALUA? It seem like if there is some
> uncertaintly, we should just not set the hardware handler, and allow
> multipath to infer it via the pp->tpgs value.
>
> I'm not strongly against this patch. I just don't see the value in
> overriding an explicit configuration, if we believe that temporary
> failures are possible.
>
We _do_ have an definitive guide, namely the TGPS bit.
If that isn't set it's pretty much pointless to try alua, regardless
what the configuration says.
If it's set but ALUA configuration fails we do have an error.
If it's not set and ALUA configuration fails then it's 'just' a
misconfiguration.
Which is precisely what bit us with the IPR controller; all devices
appear as 'IPR', but only for some configuration the TPGS bit is
set.
And as the hardware handler was set to 'ALUA' the hardware handler
always tried to attach, but failed for those devices which did not
support ALUA.
_And_ as we don't have a distinction between 'configuration error' and
'hardware failure' these devices failed to setup, and booting would
stop.
So this patch is just how to handle devices which are configured to use
the ALUA hardware handler, but which do not have the TPGS bit set.
For these devices attaching ALUA _will_ fail, but that's _actually_
expected, as the devices never claimed to support alua.
Hence I'm perfectly fine with this patch.
Cheers,
Hannes
next prev parent reply other threads:[~2018-04-04 6:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-27 21:50 [PATCH 0/2] multipath-tools: hwhandler autodetection Martin Wilck
2018-03-27 21:50 ` [PATCH 1/2] libmultipath: hwhandler auto-detection for ALUA Martin Wilck
2018-04-03 20:31 ` Benjamin Marzinski
2018-04-03 20:53 ` Martin Wilck
2018-04-03 21:29 ` Benjamin Marzinski
2018-04-04 8:04 ` Martin Wilck
2018-04-12 15:43 ` Martin Wilck
2018-04-12 19:49 ` Benjamin Marzinski
2018-04-04 6:38 ` Hannes Reinecke [this message]
2018-03-27 21:50 ` [PATCH 2/2] libmultipath/propsel: (re)use static const vars for origin Martin Wilck
2018-03-28 19:11 ` 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=20180404083835.213875f1@pentland.suse.de \
--to=hare@suse.de \
--cc=bmarzins@redhat.com \
--cc=dm-devel@redhat.com \
--cc=mwilck@suse.com \
--cc=xose.vazquez@gmail.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