Installing and Managing HP-UX Virtual Partitions (includes A.04.01)

CPU, Memory, and IO Resources
Adding, Removing, and Migrating Unbound CPUs (vPars A.03 and earlier)
Chapter 6
190
Adding, Removing, and Migrating Unbound CPUs
(
vPars A.03 and earlier)
For vPars A.03.xx and earlier, after min bound CPUs are assigned to a virtual partition, the quantity (total -
min) CPUs are assigned to the partition as unbound CPUs. Therefore, to migrate unbound CPUs, specify
total such that (total-min) is the number of unbound CPUs assigned to the target partition.
Examples
To create the partition winona2 with two bound CPUs and one unbound CPU, set total to three and min
to two (vPars A.03.xx and earlier):
# vparcreate -p winona2 -a cpu::3 -a cpu:::2
To add an unbound CPU to an existing partition, use the vparmodify command to either modify the
total number of CPUs (-m cpu::total) or add to the total number of CPUs (-a cpu::total).
For example, to add one unbound CPU to the partition winona2, which already has three CPUs, two of
which are bound, you can either modify total to four:
winona1# vparmodify -p winona2 -m cpu::4
or add one to total:
winona1# vparmodify -p winona2 -a cpu::1
To delete one unbound CPU from the partition winona2, which already has four CPUs:
winona1# vparmodify -p winona2 -m cpu::3
or
winona1# vparmodify -p winona2 -d cpu::1
Because you can dynamically migrate unbound CPUs, you can migrate an unbound CPU from one
partition to another while both partitions are running. For example, if the partition winona1 has two
bound CPUs and the partition winona2 has two bound and two unbound CPUs, you can migrate an
unbound CPU from winona2 to winona1 using the following:
winona1# vparmodify -p winona2 -d cpu::1
winona1# vparmodify -p winona1 -a cpu::1
NOTE Migrating unbound CPUs may not fully complete immediately after executing the vparmodify
commands.. For CPUs that are pending (in other words, still in the process of migrating), the
vparstatus summary output will show the letter p next to the number of unbound CPUs and
the vparstatus detailed output will show the words (migration pending) next to the unbound
CPU. For an example, see .“Commands: Displaying Monitor and Resource Information
(vparstatus)” on page 111.
For more information on CPUs, see the following:
For information on bound and unbound CPUs, see “CPU: Bound and Unbound (vPars A.03
and earlier)” on page 186.