HP vPars and Integrity Virtual Machines V6.1 Administrator Guide

Example 3 Finding out if WWNs are supported
# ioscan -kfNC fc
Class I H/W Path Driver S/W State H/W Type Description
===================================================================
fc 0 0/2/0/0/0/0 fcd CLAIMED INTERFACE HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC
Port 1)
fc 1 0/2/0/0/0/1 fcd CLAIMED INTERFACE HP AH401A 8Gb Dual Port PCIe Fibre Channel Adapter (FC
Port 2)
# fcmsutil /dev/fcd0
Vendor ID is = 0x1077
Device ID is = 0x2532
PCI Sub-system Vendor ID is = 0x103C
PCI Sub-system ID is = 0x3263
PCI Mode = PCI Express x8
ISP Code version = 5.4.0
ISP Chip version = 2
Topology = PTTOPT_FABRIC
Link Speed = 4Gb
Local N_Port_id is = 0x010800
Previous N_Port_id is = None
N_Port Node World Wide Name = 0x5001438002344785
N_Port Port World Wide Name = 0x5001438002344784
Switch Port World Wide Name = 0x200800051e0351f4
Switch Node World Wide Name = 0x100000051e0351f4
N_Port Symbolic Port Name = pinki3_fcd0
N_Port Symbolic Node Name = pinki3_HP-UX_B.11.31
Driver state = ONLINE
Hardware Path is = 0/2/0/0/0/0
Maximum Frame Size = 2048
Driver-Firmware Dump Available = NO
Driver-Firmware Dump Timestamp = N/A
TYPE = PFC
NPIV Supported = YES
Driver Version = @(#) fcd B.11.31.1103 Aug 2 2010
Create a vPar named vPar1 with 4 virtual CPUs and an NPIV HBA created on /dev/fcd0 using
the GUID server to assign port and node WWNs. You can also use the vparstatus -a command
to display NPIV capable fiber channel devices.
vparcreate -P vPar1 -c 4 -a hba:avio_stor::npiv:/dev/fcd0
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
NOTE: The vparmodify command cannot be used to change any attribute of the NPIV HBA
after it is created.
To view – vparstatus
The vparstatus command output includes the NPIV HBA in the I/O details for vPars that have
the NPIV HBA configured. All other vparstatus output remains unchanged.
To delete a NPIV resource – vparmodify
The vparmodify command is used to delete an NPIV HBA from a vPar. For the deletion to take
effect, you must stop and start the vPar.
5.3 NPIV – supported limits 57