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

13
Setting up a vPar to use NPIV HBAs
Configuring storage for a vPar with vHBAs
Storage can be provisioned for a vPar with a vHBA either before or after it starts up. In both cases, the vPar boots
successfully if it has a non-NPIV boot LUN configured. If it doesn’t have a boot LUN yet, then the vPar halts at EFI.
Once a virtual environment starts, the virtual port instance corresponding to the vHBA(s) assigned to it logs into the FC
fabric to which the physical HBA is connected. The port WWN assigned to the vHBA can be obtained using the
vparstatus command on the VSP. Once the port WWN has been noted, the server administrator should work with the
storage administrator to get the required storage provisioned. Present the LUNs to the port WWN corresponding to
the vHBA.
Note:
The steps for storage provisioning are exactly the same as those used for a
standalone system, except that in this case, the HBA and the WWN involved
are virtual in nature.
Figure 5: Determining an NPIV HBA’s WWN
# vparstatus -p V1 -v
[Virtual Partition Details]
Number: 3
Name: V1
RunState: UP
State: Active
[CPU Details]
Min/Max: 1/127
System assigned [Count]: 2
[Memory Details]
Total Memory(MB): 5120
[OL* Details]
Operation : None
CPU Count: 0
Status:
[IO Details]
hba:avio_stor:0,4,0x50014C2000000004,0x50014C2800000002:npiv:/dev/fcd1
hba:avio_stor:1,3,0x50014C2000000002,0x50014C2800000000:npiv:/dev/fcd0
network:avio_lan:0,1,0xF2AF8F8647BF:vswitch:vswitch1:portid:1
The vWWNs are highlighted in the output. These vWWNs can be used for LUN masking or fabric zoning.
Identifying vHBAs and LUNs in a vPar
The ioscan command, when run in a virtual environment, can be used to identify the NPIV HBA from the set of HBAs
seen in the vPar:
# ioscan -kfNd gvsd
Class I H/W Path Driver S/W State H/W Type Description
======== == ========== ======= =========== ========== ==========================
ext_bus 0 0/0/0/0 gvsd CLAIMED INTERFACE HPVM AVIO Stor Adapter
ext_bus 1 0/0/4/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter
ext_bus 4 0/1/3/0 gvsd CLAIMED INTERFACE HPVM NPIV Stor Adapter