HP-UX vPars and Integrity VM V6.3 Administrator Guide

Example 5 Create an NPIV HBA manually specifying WWNs
Add an NPIV HBA created on /dev/fcd1 using a virtual port WWN of 0x50060b00006499b9
and virtual node WWN of 0x50060b00006499ba to the vPar named vPar1. Obtain the port
and node WWNs from your storage administrator or other source.
vparmodify -P vPar1 -a hba:avio_stor:,,0x50060b00006499b9,
0x50060b00006499ba:npiv:/dev/fcd1
In the resource string, you can skip the bus and slot numbers for an NPIV HBA. VSP picks the next
available bus and slot number for the NPIV HBA. However, you cannot skip the virtual node WWN
and port WWN if the VSP is not configured to obtain WWNs from a GUID server.
NOTE: The vparmodify or hpvmmodify command cannot be used to change any attribute
of the NPIV HBA after it is created.
7.4.3.2 Viewing NPIV resources
The vparstatus or hpvmstatus command output includes the NPIV HBA in the I/O details for
vPars and VM guests that have NPIV HBAs configured.
Example 6 Sample to determine NPIV HBA details for a vPar named vPar1
vparstatus -P Vpar1 -d
[Virtual Partition Devices]
[Storage Interface Details]
disk:avio_stor:0,0,0:avio_stor:/dev/rdisk/disk31
disk:avio_stor:0,0,1:lv:/dev/vg_on_host/rlvol3
hba:avio_stor:0,4,0x50060b00006499b9,0x50060b00006499ba:npiv:/dev/fcd1
hba:avio_stor:1,3,0x50060b00006499a0,0x50060b00006499a8:npiv:/dev/fcd0
[Network Interface Details]
network:avio_lan:0,1,0xF2AF8F8647BF:vswitch:vswitch1:portid:1
network:avio_lan:0,5,0x569FC1F96205:vswitch:vswitch1:portid:3
[Misc Interface Details]
serial:com1::tty:console
In this example, the port WWNs are:
0x50060b00006499b9
0x50060b00006499a0
These WWNs must be used for LUN masking or fabric zoning.
7.4.3.3 Deleting configured NPIV HBAs
The vparmodify or hpvmmodify command is used to delete an NPIV HBA from a vPar or VM
guest. To delete an NPIV HBA, you must stop and start the vPar or VM guest.
Example 7 Deleting an NPIV resource
vparmodify -P vPar1 -d hba:avio_stor:,,0x50060b00006499b9,
0x50060b00006499ba:npiv:/dev/fcd1
For the relevant vPar or VM guest, you can use this syntax by copying it from the I/O details of
the status command output and pasting it where required.
With NPIV HBAs, new LUNs presented or unpresented to the virtual HBA are automatically detected
by the guest.
7.4 Configuring an NPIV HBA (vHBA) 105