Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: "Paul Lung (paul.lung@loglogic.com)" <Paul.Lung@loglogic.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: Re: How To Get WWN and Device Mapping
Date: Fri, 19 Jun 2009 19:21:24 -0500	[thread overview]
Message-ID: <1245457284.12515.13.camel@mulgrave.site> (raw)
In-Reply-To: <D9D8963FC28A1C49BBF5EE152BE9763601278B8276@CBA0EXBE01.CBA0.centerbeam.com>

On Fri, 2009-06-19 at 16:54 -0700, Paul Lung (paul.lung@loglogic.com)
wrote:
> Hi,
> 
> I'm using 2.6.25.14 kernel with the qla2xxx driver turned on for a
> SAN, and I tried to use SCLI from QLogic to get the linux device->wwn
> mapping. However, SCLI does not seem to be able to detect any LUNs
> with the driver in 2.6.25 kernel.

You'll need to ask qlogic about their tools.

>  I then found that doing a scsi_id on a device(say, ./block/sde)  will
> give me the wwn, with an extra number in the front.

man scsi_id will tell you what this is and why it's there.

>  However, further research seems to indicate that scsi_id does not
> always give back the wwn. It's is totally dependent on the physical
> device being queried. 

For WWN this is true ... the device must export it properly via the
correct VPD inquiry for it to be displayed ... although most fibre
devices do nowadays.

> So, is there any way to reliably get the WWN of a linux device? The
> qla2xxx driver must have gotten the wwn of all the drives on the SAN.
> Is this information "published" anywhere?

I think you're confusing WWN and WWPN ... it's the latter the fibre has
to know. If it's the WWPN you're after, it's the fc_transport port_name
attribute (either of the rport or the target).

James


> 
> Thank you very much for your time.
> 
> Paul Lung--
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2009-06-20  0:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 23:54 How To Get WWN and Device Mapping Paul Lung (paul.lung@loglogic.com)
2009-06-20  0:21 ` James Bottomley [this message]
2009-06-23 17:36   ` Paul Lung (paul.lung@loglogic.com)
2009-06-23 18:42     ` Douglas Gilbert
2009-06-23 18:51       ` Giridhar Malavali

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=1245457284.12515.13.camel@mulgrave.site \
    --to=james.bottomley@hansenpartnership.com \
    --cc=Paul.Lung@loglogic.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