Configuring and Migrating Memory on vPars

4
4. Create each partition using vparcreate and assign the required amount of ILM and CLM to
the partition using the memory options of the vparcreate and vparmodify commands.
# vparcreate p <vPar> a mem::<ilm> -a cell:<num>:mem::<clm> ...
or
# vparmodify p <vPar> a mem::<ilm> -a cell:<num>:mem::<clm> ...
5. If needed, assign CLP to have CPUs and memory from the same locality using the vparcreate
and vparmodify commands.
# vparcreate p <vPar> -a cell:<num>:cpu::<clp> ...
or
# vparmodifyp <vPar> -a cell:<num>:cpu::<clp> ...
6. Reboot the system and boot the monitor using the newly created database.
In order to illustrate how the memory would be divided up as ILM and CLM, we will consider setting
up a sample vPars system with two partitions: vpar1 and vpar2. The example system contains two
cells: cell 0 and cell 1. Each cell contains 4 GB of memory. The following steps illustrate how ILM and
CLM are created in the system and distributed among vpar1 and vpar2.
First, we need to get an idea of how much memory is available on the system. Invoking the
parstatus command with parstatus p 0 –V and parstatus c 0 c 1 –V shows something
like the following for memory related output (the rest of the output is not included here):
...
Total Good Memory Size : 8.0 GB
Total Interleave Memory: 4.0 GB
...
And
...
Global Cell Number : 0
...
Requested CLM value : 2.0 GB
Allocated CLM value : 2.0 GB
...
Memory OK : 4.00 GB
...
Global Cell Number : 1
...
Requested CLM value : 2.0 GB
Allocated CLM value : 2.0 GB
...
Memory OK : 4.00 GB
The system administrator has already set up 50% of the memory from each cell to be CLM. Hence, the
system contains 2 GB of CLM from cell 0 and 2 GB of CLM from cell 1, and 2 GB of memory from
cell 0 is interleaved with 2 GB memory from cell 1 to yield 4 GB of total ILM. Now, in order to create
the two partitions with 1 GB and 2 GB of ILM respectively, we would invoke the following
vparcreate commands:
# vparcreate p vpar1 a mem::1024
1
# vparcreate p vpar2 a mem::2048
1
The examples used in this document might assign 512 MB or 1024 MB of memory while creating partitions. The actual amount of memory that
a partition requires depends on the HP-UX release that partition will contain. Hence, system administrators should refer to the HP-UX release
documentation to determine the minimum amount of memory required while creating or configuring the partitions.