Installing and Managing HP-UX Virtual Partitions (A.01.01)
Monitor and Shell Commands
Adding and Removing CPU Resources
Chapter 5 111
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 partition must be down.
Migrating an Unbound CPU
After
min
bound CPUs are assigned to a 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 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