HP Integrity VM 4.3 N-Port ID Virtualization - A brief overview
10
Configuring an NPIV HBA with HP Integrity VM commands
hpvmcreate / hpvmmodify—to add an NPIV resource
An NPIV HBA resource can be specified using hpvmcreate when the VM is being created or using hpvmmodify after
VM 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 guest, “Guest1”, 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:
hpvmcreate –P Guest1 –c 4 -a hba:avio_stor::npiv:/dev/fcd0
Example: To add a vHBA on /dev/fcd1 to bus 1, address 5 on the guest “Guest1” using a virtual PWWN of
0x50060b00006499a8 and a virtual NWWN of 0x50060b00006499a9:
hpvmmodify –P Guest1 \
-a hba:avio_stor:1,5,0x50060b00006499a8,0x50060b00006499a9:npiv:/dev/fcd1
NOTE:
For this operation to take effect, the VM has to be restarted. Also, the
hpvmmodify command cannot be used to change any attribute of the NPIV HBA
once it is created. The vHBA must be deleted and then recreated with the new
attributes.
hpvmstatus
The hpvmstatus output now includes the NPIV HBA for guests that have it configured. All other hpvmstatus output
remains unchanged.
For example, the following status output will be shown when the command hpvmstatus –P guest1 –d is run:
# hpvmstatus -P guest1 -d
[Virtual Machine 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,0x50014C20000000B4,0x50014C2800000043:npiv:/dev/fcd1
hba:avio_stor:1,3,0x50014C20000000BA,0x50014C2800000049: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