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

CPU, Memory, and IO Resources
Memory: Setting Granularity Values (vPars A.04)
Chapter 6
170
Setting the Granularity Values on Integrity
There are two commands that can set the granularity values. Both are available at the HP-UX shell level and
use the -g option:
1. vparenv -g ...
writes the granularity values to the firmware only. Note that vparenv is applicable only on Integrity.
2. vparcreate -g ...
writes the granularity values to the vPars database and also can (using the update firmware option [:y])
write these values to firmware.
vparenv
# vparenv -g ILM|CLM:unit
writes the unit granularity value to firmware. This takes effect for the nPartition on the next nPartition boot.
For example, to set the granularity unit size in firmware for ILM to 512 MB and for CLM to 256MB:
# vparenv -g ILM:512 -g CLM:256
Note that this does not set the granularity value in the vPars database. Only vparcreate sets the granularity
value in the vPars database.
Because the granularity values in firmware must match those in a vPars database in order for the virtual
partitions of that database can boot, once the granularity values in firmware are set, the granularity values
in the vPars database that are used in the next boot of the vPars Monitor must contain the same granularity
values.
vparcreate
# vparcreate -p vpar1_name [ -g ILM:unit[:y] ] [ -g CLM:unit[:y] ]
If you specify the above command without the :y, vparcreate writes the unit granularity value to only the
vPars database; it does not write the value to firmware.
If you specify the above command with the :y, vparcreate writes the unit granularity value to both the
vPars database and to firmware.
When using this method, note that the -g option must be performed when creating the vPars database (in
other words, when performing the initial vparcreate command). If you set the value incorrectly using the
initial vparcreate command, you cannot adjust it later. You must re-create the vPars database.
Usage Scenarios
vparcreate with the :y option
The following scenario is where you would want to use vparcreate with the -g option and the :y
specification:
1. In nPars mode, you create your first virtual partition with a 256 MB granularity value for ILM. The
command is
# vparcreate -g ILM:256:y -p keira1 ...
2. This writes the ILM granularity value to both the vPars database and to firmware. Since the default CLM
granularity value is 128, this also writes the CLM granularity value of 128 to both the vPars database
and to firmware. Because the values in both the vPars database and firmware match, you can boot this
vPars database immediately after setting the nPartition for vPars mode and rebooting the nPartition.
# vparenv -m vPars /* to set the mode */