Configuring and Migrating Memory on vPars

7
the other hand, changing the amount of memory that is base and floating does not require a system
or monitor reboot. Any available memory in the vPars monitor can be used as base or floating while
assigning it to a partition. When the partition boots or when the memory is added online, the kernel
gets the specified amount as base or floating. Once the memory is removed from the partition and
becomes available, it can be used either as base or floating while assigning to other partitions.
The following lists some of the base/floating memory rules:
1. When no attribute is specified the memory defaults to base. This provides backward
compatibility for earlier vPars releases where all memory was treated as base by the kernel and
the kernel did not allow removal of memory when live. Hence, base memory can be added or
deleted without specifying any attribute or by explicitly including the ‘:b[ase]’ attribute. The
following lists syntaxes to add base ILM and CLM.
# vparcreatep <vPar> a mem::<ilm>:[b[ase]] ...
# vparcreate p <vPar> -a cell:<num>:mem::<clm>:[b[ase]] ...
# vparmodifyp <vPar> a mem::<ilm>:[b[ase]] ...
# vparmodify p <vPar> -a cell:<num>:mem::<clm>:[b[ase]] ...
2. Floating memory requires explicit specification of the attribute ‘:f[loat]’ during add/delete.
The following lists syntaxes to add floating ILM and CLM.
# vparcreatep <vPar> a mem::<ilm>:f[loat] ...
# vparcreate p <vPar> -a cell:<num>:mem::<clm>:f[loat] ...
# vparmodifyp <vPar> a mem::<ilm>:f[loat] ...
# vparmodify p <vPar> -a cell:<num>:mem::<clm>:f[loat] ...
3. Base memory can be added when the partition is live or when it is down. To delete base
memory, the partition must be down.
4. Floating memory can be added or deleted when the partition is live or down.
5. Base and floating memory can be added or deleted in one command line.
# vparmodify p <vPar> a mem::<ilm> a cell:<num>:mem::<clm>:f ...
6. The HP-UX kernel accepts either an add or a delete operation but does not accept both
simultaneously. Hence, add and delete cannot be performed in the same command when the
partition is live. For example, if the partition is live, the add and delete operations must be
separated into two commands as given below.
# vparmodify p <vPar> a mem::<ilm>
# vparmodify p <vPar> –d cell:<num>:mem::<clm>:f
Combining the above operations into one single command as given below fails.
# vparmodify p <vPar> a mem::<ilm> –d cell:<num>:mem::<clm>:f
In order to illustrate base and floating memory, let us revisit the configuration discussed in the
previous section and set up a sample vPars system with base and floating memory. To reiterate the
setup, the system contains 2 GB of CLM from cell 0, 2 GB of CLM from cell 1, and 4 GB of total ILM.
Now, in order to create the two partitions (vpar1 with 512 MB of base and 1 GB of floating ILM and
vpar2 with 1 GB of base and 512 MB of floating ILM) we would invoke the following vparcreate
commands:
# vparcreate p vpar1 a mem::512 a mem::1024:f
# vparcreate p vpar2 a mem::1024 a mem::512:f