HP-UX vPars 6.0 N-Port ID Virtualization (NPIV) - A brief overview

17
With that information, the SAN Administrator should be able to modify FC switch zoning so that the unresponsive FC
targets are no longer presented to the NPIV HBA.
1. Get the port WWN of the NPIV HBAs where the probe takes too long.
# hpvmstatus -P guest1 | grep npiv
hba avio_stor 0 2 npiv /dev/fcd1-0x5001438FF62CBCD8,0x5001438FF62CBCD9
hba avio_stor 0 4 npiv /dev/fcd2-0x5001438FF62CBCE0,0x5001438FF62CBCE1
See how long it takes to probe each FC card, using ms_scan_time
# fcmsutil /dev/fcd1 | grep Hardware
Hardware Path is = 44/0/0/2/0/0/0
# fcmsutil /dev/fcd2 | grep Hardware
Hardware Path is = 44/0/0/2/0/0/1
# ioscan -P ms_scan_time -C fc -H 44/0/0/2/0/0/0
Class I H/W Path ms_scan_time
=====================================
fc 1 44/0/0/2/0/0/0 2 min 8 sec 274 ms
# ioscan -P ms_scan_time -C fc -H 44/0/0/2/0/0/1
Class I H/W Path ms_scan_time
=====================================
fc 2 44/0/0/2/0/0/1 0 min 7 sec 1 ms
In the output above, it takes 2 minutes to probe /dev/fcd1, and 7 seconds to probe /dev/fcd2. Thus, NPIV
0x5001438FF62CBCD8 is causing the problem here.
2. Determine the responsive FC targets
To determine the responsive FC targets, see the ioscan output of the physical FC card.
# fcmsutil /dev/fcd1 | grep Hardware
Hardware Path is = 44/0/0/2/0/0/0
# ioscan -kNH 44/0/0/2/0/0/0 | grep tgtpath
44/0/0/2/0/0/0.0x50001fe100271408 tgtpath target port id 0x2c0100
44/0/0/2/0/0/0.0x50001fe10027140c tgtpath target port id 0x2c0500
44/0/0/2/0/0/0.0x50001fe15000f118 tgtpath target port id 0x2c0300
44/0/0/2/0/0/0.0x50001fe15000f11c tgtpath target port id 0x2c0e00
The hex number at the end of the hardware path (0x50001fe100271408) is the WWN of the responsive
FC target.
3. Determine the unresponsive FC targets
This step may not be necessary. It should be sufficient to the zone to only present the responsive FC targets
(above).
If you wish to determine which FC targets are unresponsive, you can use ns_query_ports on the physical HBA.
This outputs all the WWNs that are visible to the FC card:
# fcmsutil /dev/fcd1 ns_query_ports
The following is the list of nport ids and their WWPNs:
1. 2c0100 0x50001fe100271408
2. 2c0206 0x5001438001454b10
3. 2c0202 0x500143800145f0dc
4. 2c0204 0x500143800145f0cc
5. 2c0207 0x500143800145f044
6. 2c0300 0x50001fe15000f118
7. 2c0500 0x50001fe10027140c
8. 2c0e00 0x50001fe15000f11c
You then have to manually take the difference between the ioscan tgtpath output, and the ns_query_ports output.
The WWNs that dont show up in the ioscan output are the unresponsiveFC targets.
4. Modify the FC switch zone settings to remove the unresponsive targets
The SAN administrator should be able to do this with the information collected above.