RE: Linux utility to determine WWN from a LUN number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 13 Mar 2008, lemons_terry@xxxxxxx wrote:
> 
> Sorry, but doesn't scsi_id only return what it finds in SCSI VPD pages
> 80 or 83?  Not all devices provide a WWN in VPD page 83.

It's quite a bit more complicated than that.  If a WWN exists on VPD
pages 80 or 83, scsi_id will return that; otherwise it will synthesize
a serial number.

Doug Gilbert and I have exchange some correspondence on the subject of
unifying his lsscsi (and possibly sg3_utils), my scsitool and the udev
scsi_id utility.  At the moment, all of these are drawn from different
code bases.  Doug chose to design lsscsi to use only sysfs information
because he wanted it to be runnable as a non-privileged process.
That's both good and bad: sysfs is shifting sand to build a foundation
on, and so far there is no standard place in sysfs to retrieve a WWN.
Both scsi_id and sg3_utils use SG_IO to do a VPD 0x80/0x83 INQUIRY.

Chip

-- 
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426

GPG ID:  852E052F
GPG FPR: 77E5 2B51 4907 F08A 7E92  DE80 AFA9 9A8F 852E 052F

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux