HP Superdome 2 Partitioning Administrator Guide (5900-2540, December 2012)

Example
To add the CPU at 1/1/0/0 (enclosure 1, blade1, socket 0, core 0) and 1/1/0/1 to
vPar0001:
vparmodify -N <nPar name> -p <vPar name> -a cpu:1/1/0/0 -a
cpu:1/1/0/1
CPU: Summary Information
Impact on vPars Commands: Specifying CPU
Table 7 (page 85) lists the CPU resource paths in the following four ways:
Table 7 CPU-core Allocation
ExampleResource PathFormsAllocating By
vparcreate -p Oslo -N Norway -a cpu:1/1/0/0enclosure#/blade#/
cpusocket#/cpucore#
cpu:cpu_pathCPU resource path
vparcreate -p Oslo -N Norway -a cpu::2All positive integerscpu::numCPU count
vparcreate -p Oslo -N Norway -a
socket:3/6/0:cpu::2
enclosure#/blade#/cpusocket#socket:socket_id:
cpu::num
socket path
vparcreate -p Oslo -N Norway -a cpu::2:8All positive integerscpu:::[min][:[max]]Defining the
minimum and
maximum CPUs
Deleting CPU-cores Summary
If the vPar is up or down, you can delete only a specific CPU by using a by-path deletion.
If the vPar is down, you can delete only by-path CPUs that were assigned by path, because
at that point, the by-count and by-socket assignments will be just counts, and not specific CPUs.
CPU Allocation
On HP Integrity Superdome 2, the parstatus command provides all the required CPU information
from the OA without installing or booting to the nPar mode.
To map the HP-UX hardware paths in the newly created vPar to the resource paths used to create
it, call ioscan using the option -m resourcepath that maps HP-UX hardware paths to resource
paths.
The first vPartition is configured with the AD221 Ethernet / Fibre channel combination card at
hardware address 48/0/0/2/0/0/2/0. Run the following command to view the configuration:
# ioscan m resourcepath | grep cpucore
1/120 0x100ff02ff000017 cpucore-1/2/0/0
1/122 0x100ff02ff000117 cpucore-1/2/0/1
1/124 0x100ff02ff000217 cpucore-1/2/0/2
1/126 0x100ff02ff000317 cpucore-1/2/0/3
1/128 0x100ff02ff010017 cpucore-1/2/1/0
1/130 0x100ff02ff010117 cpucore-1/2/1/1
1/132 0x100ff02ff010217 cpucore-1/2/1/2
1/134 0x100ff02ff010317 cpucore-1/2/1/3
Planning Your Virtual Partitions 85