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

Table Of Contents
59
To convert a lunpath hardware path to a legacy hardware path, use the scsimgr get_info command on the
target hardware path to display the port_id, which contains the domain, area, and port values. Extract the
controller, target, and lun values from the LUN id.
The following example uses lunpath hardware path 0/2/1/0.0x500805f300083899.0x4011000000000000.
# scsimgr get_info -H 0/2/1/0.0x500805f300083899
STATUS INFORMATION FOR TARGET PATH : 0/2/1/0.0x500805f300083899
Generic Status Information
SCSI services internal state = IDLE
Port id = 0x10700
Protocol = fibre_channel
Protocol revision = 4.3
Port name = 0x500805f300083899
Node name = 0x500805f300083890
LUN paths registered (active/inactive) = 12
A port_id of 0x10700 yields a domain value of 1, an area value of 7, and a port value of 0.
The LUN address of 0x4011000000000000, which represents LUN id 0x11, yields a controller value of 0, a
target value of 2 and a lun value of 1.
The resultant legacy hardware path is 0/2/1/0.1.7.0.0.2.1.
To confirm this mapping, use the ioscan –m hwpath command as follows:
# ioscan -m hwpath -H 0/2/1/0.0x500805f300083899.0x4011000000000000
Lun H/W Path Lunpath H/W Path Legacy H/W Path
=============================================================================
64000/0xfa00/0x4
0/2/1/0.0x500805f300083899.0x4011000000000000 0/2/1/0.1.7.0.0.2.1
Serial Attached SCSI
Serial attached SCSI (SAS) uses an addressing model similar to Fibre Channel.
The target address is the SAS Address, which is printed by sasmgr with the get_info command. You can
display all the target addresses on a specified HBA by using the –N option and the lun qualifier. For example:
# sasmgr get_info -N -D /dev/sasd0 -q lun=all
LUN dsf Hardware Path SAS Address
------------------------------------------------------------------
/dev/rdisk/disk14 0/2/1/0.0x500000e010f12f42.0x0 0x500000e010f12f42
/dev/rdisk/disk15 0/2/1/0.0x5000c5000032b739.0x0 0x5000c5000032b739
/dev/rdisk/disk16 0/2/1/0.0x5000c5000032f04d.0x0 0x5000c5000032f04d
/dev/rdisk/disk17 0/2/1/0.0x5000c5000032fe89.0x0 0x5000c5000032fe89
The LUN address for an SAS device, as with Fibre Channel, is a 64-bit LUNid composed of two bits
representing the addressing method, fourteen bits representing the LUN number of the device, and 48 reserved
bits. The decoding is available by using the scsimgr command to display the LUN lunid attribute. For example,
using the first address above:
# scsimgr get_attr -H 0/2/1/0.0x500000e010f12f42.0x0 -a lunid
SCSI ATTRIBUTES FOR LUN PATH : 0/2/1/0.0x500000e010f12f42.0x0