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

CPU, Memory, and IO Resources
Removing a Bound CPU (vPars A.03 and earlier)
Chapter 6
189
Removing a Bound CPU
(vPars A.03 and earlier)
To remove a bound CPU from a virtual partition, use the vparmodify command to modify the total and min
parameters for the virtual partition.
Example
If the partition winona2 has two bound CPUs and you want only one bound CPU (and you do not want to
add any unbound CPUs), set the total and min numbers to one:
winona1# vparmodify -p winona2 -m cpu:::1 -m cpu::1
NOTE: If you set only the min number to one and leave the total number set at two, you will still have
two CPUs assigned to winona2. One bound CPU will be removed from the partition, but one unbound
CPU will be added to the partition in order to maintain the total of two CPUs.
NOTE: Because one of the value requirements for CPUs is min <= total and because command line
options are processed left to right, when setting both min and total to one, you need to set min to one
before setting total to one. This is accomplished by specifying the -m cpu:::min option before the -m
cpu::total option.
Removing a CPU with a Specified Hardware Path
If you had specified a hardware path for a bound CPU, you would delete the specified hw_path and modify the
min and total numbers.
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.