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

Monitor and Shell Commands
Adding and Removing CPU Resources
Chapter 5 143
winona1# vparcreate -p winona2 -a cpu::2 -a cpu:::2 -a
cpu:41
If you want to specify multiple processors, use the -acpu:
hw_path
option for each hardware path. For example, if you want to specify
the CPU at hardware path 41 and the CPU at hardware path 45, the
command is:
winona1# vparcreate -p winona2 -a cpu::2 -a cpu:::2 -a
cpu:41 -a cpu:45
Note that because there are two paths specified,
min
must be greater
than or equal to two. Further, because there are at least two bound
CPUs,
total
must be at least two.
Removing a Bound CPU
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.