All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: dm-devel@redhat.com
Subject: Re: different LUN numbers under the same dm device
Date: Fri, 08 Jun 2012 08:59:11 +0200	[thread overview]
Message-ID: <4FD1A2BF.2090109@suse.de> (raw)
In-Reply-To: <F6378CE3-200B-4AF4-97BC-B3A310231420@purestorage.com>

(Third mail on this topic .. I really should've read the entire
thread before answering. But there you go.)

On 06/08/2012 01:26 AM, Brian Bunker wrote:
> The answer is yes they did have that LUN NAA value that comes from page code 0x83 in inquiry.
> Then the LUN was unmasked from that initiator. That initiator is
holding on to those device
> names in multipath. If you query them when they are in the state
that I show in the
> multipath -ll result, they will not return an NAA number at all in
page code 0x83 or
> a serial number in page code 0x80. They will instead return a PQ
of 1 meaning that the
> LUN is capable of supporting a peripheral device but is not currently.
> 
Hehe.

> I understand about LUN's needing different NAA numbers and ours do, and we also have
> different LUN serial numbers for each LUN on the target. An
initiator doesn't always
> have to access to all LUN's that it once did. It is the re-use of
dm devices that
> seems to cause this result.
> 
No, rather a problem with the SCSI stack. multipath normally relies
on udev to keep track of any device events, like LUNs coming and
going. But this only works reliably if these events are triggered
via the underlying transport, like FC RSCN et al.

'Real' scsi events which will get transmitted via Sense codes are
not evaluated further, sadly.

So short-term you are supposed to call 'rescan-scsi-bus.sh -r'
whenever you made any LUN assigment changes on the array.
Mid-term we already agreed on implementing some proper sense code
handling in the SCSI midlayer.
However, as usual in these cases, real life interfered and I've been
busy with other things.
But it's definitely on the agenda.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

  reply	other threads:[~2012-06-08  6:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-06 19:27 different LUN numbers under the same dm device Brian Bunker
2012-06-06 20:35 ` Mike Snitzer
2012-06-06 20:59   ` Brian Bunker
2012-06-07 22:39     ` Benjamin Marzinski
2012-06-07 23:26       ` Brian Bunker
2012-06-08  6:59         ` Hannes Reinecke [this message]
2012-06-08  7:52           ` Mike Christie
2012-06-08 16:35             ` Brian Bunker
2012-06-08 17:05               ` Mike Christie
2012-06-08 17:18                 ` Brian Bunker
2012-06-11  6:38                   ` Hannes Reinecke
2012-06-08  6:37     ` Hannes Reinecke
2012-06-08  6:29 ` Hannes Reinecke

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=4FD1A2BF.2090109@suse.de \
    --to=hare@suse.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.