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

CPU, Memory, and IO Resources (A.04.xx)
Memory: Setting Granularity Values
Chapter 6
174
# shutdown -r /* reboot the system */
vparcreate without the :y option and vparenv
The following scenario is where you would want to use vparcreate with the -g option but without the :y
specification. It also shows where you need to use vparenv to set the granularity value in the firmware. Note
that this scenario would only occur on Integrity systems.
1. You are in a vPars environment, running the default vPars database of /stand/vpdb that uses the 128
MB granularity values for ILM and CLM. Because the virtual partitions have been booted successfully,
this means that the current firmware has granularity values of 128MB.
2. You create an alternate database /stand/vpdb.alt with a granularity value of 512 MB for ILM and 256
MB for CLM.
# vparcreate -D /stand/vpdb.alt -g ILM:512 -g CLM:256 -p keira1 ...
3. This writes the granularity value to the vPars database but not to firmware, which allows you to continue
using the active vPars database /stand/vpdb with its 128 MB granularity value.
When you wish to load /stand/vpdb.alt, then you can set the granularity value in firmware using
vparenv, reboot the nPartition, and load the alternate database.
# vparenv -g ILM:512 -g CLM:256 /* to set granularity value in firmware */
MON> reboot /* reboot the nPartition */
...
HPUX> boot vpmon -D /stand/vpdb.alt /* load the alternate database */
Setting the Granularity Values on PA-RISC
There is only one command that can set the granularity values: the vparcreate command with the -g
option:
1. vparcreate -g ...
vparcreate writes the granularity values to the vPars database; the update firmware option ([:y]) is ignored
on PA-RISC.
As on Integrity, when using the vparcreate command to set the granularity value, you set the granularity
values using the initial vparcreate command (the first vparcreate command creates the vPars database).
Because you cannot modify the granularity in the vPars database after it is set, you must set it correctly in
your initial vparcreate command. Otherwise, to correct an incorrect value, you need to re-create the vPars
database.
Usage Scenario
In standalone mode, you create your first virtual partition with a 256 MB granularity value for both ILM and
CLM. The command is:
# vparcreate -g ILM:256 -g CLM:256 -p keira1 ...
This writes the granularity values to the vPars database.
Note that with the vparcreate command, when you specify the granularity value for only one type of memory
(ILM or CLM), the granularity value for the other type of memory is set using the default granularity value.
For example, if you specify only -g ILM:256, the -g CLM:128 is implied where 128 is the vPars default
granularity value.