From: Hannes Reinecke <hare@suse.de>
To: Martin Wilck <martin.wilck@suse.com>,
"erwin@erwinvanlonden.net" <erwin@erwinvanlonden.net>,
"Ulrich.Windl@rz.uni-regensburg.de"
<Ulrich.Windl@rz.uni-regensburg.de>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>
Cc: "jejb@linux.vnet.ibm.com" <jejb@linux.vnet.ibm.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"dgilbert@interlog.com" <dgilbert@interlog.com>,
"dm-devel@redhat.com" <dm-devel@redhat.com>,
"systemd-devel@lists.freedesktop.org"
<systemd-devel@lists.freedesktop.org>,
Hannes Reinecke <hare@suse.com>, "hch@lst.de" <hch@lst.de>
Subject: Re: [dm-devel] RFC: one more time: SCSI device identification
Date: Tue, 27 Apr 2021 10:21:03 +0200 [thread overview]
Message-ID: <2a6903e4-ff2b-67d5-e772-6971db8448fb@suse.de> (raw)
In-Reply-To: <15e1a6a493f55051eab844bab2a107f783dc27ee.camel@suse.com>
On 4/27/21 10:10 AM, Martin Wilck wrote:
> On Tue, 2021-04-27 at 13:48 +1000, Erwin van Londen wrote:
>>>
>>> Wrt 1), we can only hope that it's the case. But 2) and 3) need work,
>>> afaics.
>>>
>> In my view the WWID should never change.
>
> In an ideal world, perhaps not. But in the dm-multipath realm, we know
> that WWID changes can happen with certain storage arrays. See
> https://listman.redhat.com/archives/dm-devel/2021-February/msg00116.html
> and follow-ups, for example.
>
And it's actually something which might happen quite easily.
The storage array can unmap a LUN, delete it, create a new one, and map
that one into the same LUN number than the old one.
If we didn't do I/O during that interval upon the next I/O we will be
getting the dreaded 'Power-On/Reset' sense code.
_And nothing else_, due to the arcane rules for sense code generation in
SAM.
But we end up with a completely different device.
The only way out of it is to do a rescan for every POR sense code, and
disable the device eg via DID_NO_CONNECT whenever we find that the
identification has changed. We already have a copy of the original VPD
page 0x83 at hand, so that should be reasonably easy.
I had a rather lengthy discussion with Fred Knight @ NetApp about
Power-On/Reset handling, what with him complaining that we don't handle
is correctly. So this really is something we should be looking into,
even independently of multipathing.
But actually I like the idea from Martin Petersen to expose the parsed
VPD identifiers to sysfs; that would allow us to drop sg_inq completely
from the udev rules.
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions Germany GmbH, 90409 Nürnberg
GF: F. Imendörffer, HRB 36809 (AG Nürnberg)
next prev parent reply other threads:[~2021-04-27 8:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 9:58 RFC: one more time: SCSI device identification Martin Wilck
2021-04-06 4:47 ` Martin K. Petersen
2021-04-16 23:28 ` Martin Wilck
2021-04-22 2:46 ` Martin K. Petersen
2021-04-22 9:07 ` Martin Wilck
2021-04-22 16:14 ` Benjamin Marzinski
2021-04-23 1:40 ` Martin K. Petersen
2021-04-23 10:28 ` Martin Wilck
2021-04-26 11:14 ` Antw: [EXT] Re: [systemd-devel] " Ulrich Windl
2021-04-26 13:16 ` Martin Wilck
[not found] ` <b5f288fb43bc79e0206794a901aef5b1761813de.camel@erwinvanlonden.net>
2021-04-27 7:02 ` Antw: [EXT] Re: [dm-devel] " Ulrich Windl
2021-04-27 8:10 ` Martin Wilck
2021-04-27 8:21 ` Hannes Reinecke [this message]
2021-04-27 10:52 ` Antw: [EXT] " Ulrich Windl
2021-04-27 20:04 ` Ewan D. Milne
2021-05-04 7:32 ` Hannes Reinecke
[not found] ` <ff5b30ca02ecfad00097ad5f8b84d053514fb61c.camel@erwinvanlonden.net>
2021-04-28 6:34 ` Martin Wilck
2021-04-29 14:47 ` Erwin van Londen
2021-04-27 20:14 ` Ewan D. Milne
2021-04-27 20:33 ` Martin Wilck
2021-04-27 20:41 ` Ewan D. Milne
2021-04-28 6:30 ` [systemd-devel] " Martin Wilck
[not found] ` <455a6e5086831323af86a150d21d5a0a7c2299eb.camel@erwinvanlonden.net>
[not found] ` <ba1ed6166b285d4ccb90f5f17b971983092d382e.camel@redhat.com>
2021-05-03 2:34 ` [dm-devel] " Erwin van Londen
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=2a6903e4-ff2b-67d5-e772-6971db8448fb@suse.de \
--to=hare@suse.de \
--cc=Ulrich.Windl@rz.uni-regensburg.de \
--cc=dgilbert@interlog.com \
--cc=dm-devel@redhat.com \
--cc=erwin@erwinvanlonden.net \
--cc=hare@suse.com \
--cc=hch@lst.de \
--cc=jejb@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=martin.wilck@suse.com \
--cc=systemd-devel@lists.freedesktop.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