From: Brian King <brking@linux.vnet.ibm.com>
To: linux-scsi <linux-scsi@vger.kernel.org>
Subject: SCSI scanning behavior
Date: Thu, 20 Aug 2015 17:11:14 -0500 [thread overview]
Message-ID: <55D65082.6020504@linux.vnet.ibm.com> (raw)
In one of our SAN test labs where there is some storage controller error injection going on,
I'm seeing some interesting behavior. We are getting into a scenario, when the target is coming
back where we are going through SCSI scan for it and the Report LUNs we are issuing to it times
out, so we fall back to a sequential LUN scan. When performing the sequential LUN scan, we
end up adding a bunch of LUNs than we didn't previously see, 512 in fact. The target is reporting
PQ=1, PDT=0 for every LUN that doesn't exist. When Report LUNs *does work*, it doesn't report
these LUNs.
In net, we end up with a different result if we do a sequential LUN scan compared to a report LUNs
scan.
Now, one could argue this is a defect in the SCSI target, since SPC says:
The REPORT LUNS parameter data should be returned even though the device server is not ready for other
commands. The report of the logical unit inventory should be available without incurring any media access
delays. If the device server is not ready with the logical unit inventory or if the inventory list is null for the
requesting I_T nexus and the SELECT REPORT field set to 02h, then the device server shall provide a default
logical unit inventory that contains at least LUN 0 or the REPORT LUNS well known logical unit (see 8.2). A
non-empty peripheral device logical unit inventory that does not contain either LUN 0 or the REPORT LUNS
well known logical unit is valid.
However, I'm still left wondering why we are adding PQ=1, PDT=0 devices in the sequential LUN scan at all.
Are there media changer devices out there that we've seen respond like this? Even so, does it make sense
to add PQ=1, PDT=0 LUNs for LUN > 0?
Thanks,
Brian
--
Brian King
Power Linux I/O
IBM Linux Technology Center
next reply other threads:[~2015-08-20 22:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-20 22:11 Brian King [this message]
2015-08-26 13:02 ` SCSI scanning behavior Hannes Reinecke
2015-08-26 13:52 ` Bart Van Assche
2015-09-02 14:31 ` [PATCH] SCSI: Scale up REPORT_LUNS timeout on failure Brian King
2015-09-04 15:00 ` Bart Van Assche
2015-09-04 15:28 ` Brian King
2015-09-04 15:36 ` James Bottomley
2015-09-04 15:47 ` Brian King
2015-09-04 16:15 ` James Bottomley
2015-09-04 19:47 ` [PATCH] SCSI: Increase REPORT_LUNS timeout Brian King
2015-09-13 8:43 ` Hannes Reinecke
2015-11-03 4:03 ` Martin K. Petersen
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=55D65082.6020504@linux.vnet.ibm.com \
--to=brking@linux.vnet.ibm.com \
--cc=linux-scsi@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).