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

Monitor and Shell Commands
Adding and Removing CPU Resources
Chapter 5144
Example If you have two bound CPUs and want to remove the bound CPU at
hardware path 41 (and do not want to add any unbound CPUs),
delete the hardware path 41, modify
min
to one, and modify
total
number to one:
# vparmodify -p winona2 -d cpu:41 -m cpu:::1 -m cpu::1
NOTE: If you delete only
hw_path
and leave
total
as two and leave
min
as two, you will still have two bound CPUs.
NOTE When executing any operations relating to bound CPUs (adding,
modifying, or deleting), the target virtual partition must be down.
Migrating an Unbound CPU
After
min
bound CPUs are assigned to a virtual partition, (
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:
# vparcreate -p winona2 -a cpu::3 -a cpu:::2
To add an unbound CPUto an existingpartition, use the vparmodify
command to either modify the
total
number of CPUs (-m
cpu::
total
) or add to the
total
number of CPUs (-acpu::
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