Overview: The Next Generation Mass Storage Stack (September 2009)

Table Of Contents
54
LUN path : lunpath4
Class = lunpath
Instance = 4
Hardware path = 0/2/1/0.0x500805f300083899.0x4010000000000000
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
LUN path : lunpath7
Class = lunpath
Instance = 7
Hardware path = 0/2/1/0.0x500805f300083891.0x4010000000000000
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
LUN path : lunpath28
Class = lunpath
Instance = 28
Hardware path = 0/4/1/0.0x500805f300083899.0x4010000000000000
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
LUN path : lunpath34
Class = lunpath
Instance = 34
Hardware path = 0/4/1/0.0x500805f300083891.0x4010000000000000
SCSI transport protocol = fibre_channel
State = UNOPEN
Last Open or Close state = ACTIVE
Obtaining WWID, Serial Number, and LUN id of a LUN
The WWID, serial number, and LUN id of a LUN are attributes. To display the serial number and WorldWide ID
of a LUN, use scsimgr get_attr as follows:
# scsimgr get_attr -D /dev/rdisk/disk49 -a wwid –a serial_number
SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk49
name = wwid
current = 0x600805f30008389000000000bd6700af
default =
saved =
name = serial_number
current = P56350D9IOS0KR
default =
saved =
To display the information in a format that can be parsed by a script, use the –p option as follows:
# scsimgr -p get_attr -D /dev/rdisk/disk49 -a wwid -a serial_number
0x600805f30008389000000000bd6700af:P56350D9IOS0KR
The LUN id is associated with the lunpath. To display the LUN id, use scsimgr get_attr with the lunpath
hardware path as the identifier, as follows:
# scsimgr get_attr –H 0/2/1/0.0x500805f300083899.0x4011000000000000 -a lunid