Reading the World Wide Name (WWN) / World Wide Identifier (WWID) of a controller or a LUN is not always easy unter HP-UX – depending on the release. Especially under the older releases 11.11 and 11.23 additional tools are required to get the requested information – this is much easier under 11.31.
Controller information
Using ioscan a overview about mounted Fibre-channel cards:# ioscan -fnkCfc Class I H/W Path Driver S/W State H/W Type Description ======================================================================== fc 0 0/3/0/0/0/0 fcd CLAIMED INTERFACE HP AD300A 4Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1) /dev/fcd0 fc 1 0/3/0/0/0/1 fcd CLAIMED INTERFACE HP AD300A 4Gb Dual Port PCIe Fibre Channel Adapter (FC Port 2) /dev/fcd1Depending on the controller type (td/fcd driver) one of the following tools are executed and combined with grep to get the Port WWN/WWID:
# fcmsutil /dev/fcd0|grep "N_Port Port World Wide Name" N_Port Port World Wide Name = 0x500... # tdutil /dev/td0|grep "N_Port Port World Wide Name" N_Port Port World Wide Name = 0x500...Alternatively you can use the fcmsutil utility – this tool automatically chooses the required “sub tool“:
# fcmsutil /dev/fcd0|grep "N_Port Port World Wide Name" N_Port Port World Wide Name = 0x500
LUN information
Under HP-UX 11.31 ioscan has been updated and so it’s able to get the WWID of a LUN – e.g. for hard drives:# ioscan -kCdisk -P wwid Class I H/W Path wwid =============================== disk 2 64000/0xfa00/0x1 0x500... disk 3 64000/0xfa00/0x3 0x500... ...This feature doesn’t exist under HP-UX 11.11 and 11.23 – using this releases you’ll have to use the above-mentioned tool:
# fcmsutil /dev/fcd0 get remote all Target N_Port_id is = 0x0b1b00 Target state = DSM_UNOPENED Symbolic Name = Port Type = UNKNOWN FCP-2 Support = NO Target Port World Wide Name = 0x500... Target Node World Wide Name = 0x500...Unfortunately, the assigment between hard drive and WWID isn’t clearly obvious. Using lssf you can determine the associated controller and list all connected devices using fcmsutil. If the list of connected devices isn’t too long, you can find the correct device with some luck:
# lssf /dev/dsk/c57t0d3 sdisk card instance 57 SCSI target 0 SCSI LUN 3 section 0 at address 0/7/0/0/0/0.50.12.0.1.0.3 /dev/dsk/c57t0d3 # ioscan -H 0/7/0/0/0/0 -fnC fc Class I H/W Path Driver S/W State H/W Type Description ======================================================================== fc 2 0/7/0/0/0/0 fcd CLAIMED INTERFACE HP AD300A 4Gb Dual Port PCIe Fibre Channel Adapter (FC Port 1) /dev/fcd2 # fcmsutil /dev/fcd2 get remote all ... Target N_Port_id is = 0x996900 Target state = DSM_READY Symbolic Name = IBM 2145 0000 Port Type = N_PORT FCP-2 Support = NO Target Port World Wide Name = 0x500... Target Node World Wide Name = 0x500...
0 comments:
Post a Comment