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

11
Configuring an NPIV HBA with vPar commands
There are no changes to the options available with the vPar commands in order to support NPIV. All that is required
is the use of the new NPIV I/O syntax with the a option.
The following sections describe how an NPIV resource is specified and the existing vPar commands that can be used
for configuring/managing them.
vparcreate/vparmodify—to add an NPIV resource
An NPIV HBA resource can be specified using vparcreate when the vPar is being created or using vparmodify after
vPar creation. The resource string format presented in the Specifying an NPIV resource section (above) should be
used to specify the vHBA.
Example: To create a vPar, “vPar1”, with four virtual CPUs and a vHBA on /dev/fcd0 using the default bus and
device values, and allowing GUIDMgr to select the virtual WWNs:
vparcreate -p vPar1 –a cpu::4 -a hba:avio_stor::npiv:/dev/fcd0
Example: To add a vHBA on /dev/fcd1 to bus 1, address five on the vPar “vPar1” using a virtual PWWN of
0x50060b00006499a8 and a virtual NWWN of 0x50060b00006499a9:
vparmodify –p vPar1 \
-a hba:avio_stor:1,5,0x50060b00006499a8,0x50060b00006499a9:npiv:/dev/fcd1
NOTE:
The vPar must be in the DOWN state to add an NPIV HBA. The vparmodify
command cannot be used to change any attribute of the NPIV HBA once it is
created.
vparstatus
The vparstatus output now includes the NPIV HBAs. All other vparstatus output is the same as for AVIO devices.
For example:
# vparstatus -vp vPar1
[Virtual Partition Details]
Number: 2
Name: vPar1
RunState: UP
State: Active
[CPU Details]
Min/Max: 1/127
System assigned [Count]: 1
[Memory Details]
Total Memory(MB): 3000
[OL* Details]
Operation : None
CPU Count: 0
Status:
[IO Details]
disk:avio_stor:0,0,0:disk:/dev/rdisk/disk24
network:avio_lan:0,1,0xb28c71e0a57b:vswitch:sitelan:portid:2
hba:avio_stor:1,5,0x50060b00006499a8,0x50060b00006499a9:npiv:/dev/fcd1