HP-UX Virtual Partitions 6.0 Administrator Guide
Example 22 Create a default virtual partition
Run the vparcreate command to create a basic virtual partition with the default values of 1 CPU,
2 GB memory, and no I/O. Later, use the vparmodify command to add I/O and modify other
attributes.
# vparcreate
[Creating vPar0001.]
# vparmodify -a network:avio_lan::vswitch:sitelan -a
hba:avio_stor::npiv:/dev/fcd0
Example 23 Create the virtual partition called Oslo
Create the vPar named Oslo in the local system, specifying 1 GB of memory, 2 CPUs, and virtual
I/O resources.
vparcreate -p Oslo -a mem::1024 -a cpu::2 -a
disk:avio_stor::disk:/dev/rdisk/disk3 -a
network:avio_lan::vswitch:sitelan
Example 24 Create a virtual partition with vHBA
Create a virtual partition named vpar001 with a virtual disk backed by a whole disk, a virtual
network interface backed by virtual switch sitelan, and a virtualized HBA using NPIV port assuming
a GUID manager is available to assign World Wide Port Name and World Wide Node Name.
# vparcreate -p vpar001 -a disk:avio_stor::disk:/dev/rdisk/disk70 -a
network:avio_lan::vswitch:sitelan -a hba:avio_stor::npiv:/dev/fcd0
# vparstatus -p vpar001 -v
[Virtual Partition Details]
Number: 1
Name: daytona1
RunState: UP
State: Active
[CPU Details]
Min/Max: 1/127
System assigned [Count]: 1
[Memory Details]
Total Memory(MB): 2048
[OL* Details]
Operation : CPU change
CPU Count: 1
Status: PASS
[Authorized Administrators]
Oper Groups:
Admin Groups:
Oper Users:
Admin Users:
[Remote Console]
Remote Console Ip Address: 10.92.101.70
Remote Console Net Mask: 255.255.252.0
[IO Details]
disk:avio_stor:0,0,0:disk:/dev/rdisk/disk70
network:avio_lan:0,1,0x9605006e53ec:vswitch:sitelan:portid:9
hba:avio_stor:0,2,0x50014C200000009E,0x50014C280000002D:npiv:/dev/fcd0
In this example output, the last I/O resource is an NPIV device at hardware address bus 0 device
2. It uses World Wide Port Name (0x50014C200000009E) and World Wide Node Name
(0x50014C280000002D). The World Wide Port Name can be used by the storage administrator
to present LUNs to the virtual partition.
Creating a virtual partition 39