HP-UX vPars and Integrity VM V6.3 Administrator Guide

However, if any memory operation was performed on the VM guest using hpvmmodify –r
option, the total memory will be treated as base memory when the guest is transformed to a
vPar.
Base and floating memory of a partition is updated according to the following rules when
hpvmmodify r option is used to modify the total partition memory.
# hpvmmodify -P <vPar_name> -r <amount>
If the specified amount of memory is greater than the current total memory, then, floating
memory is incremented.
If the specified amount of memory is less than the current total memory, then, floating
memory is decremented first and if required based memory is also decremented.
For a live partition, if the modify operation results in the decrement of base memory,
online memory modification is not performed.
A very large increase in total memory using the hvpmmodify -r option makes floating
memory value much larger than base memory. This can sometimes result in vPar panic during
boot time. The -r option of the hpvmmodify(1M) command is deprecated for modification
of vPar memory configuration. You can use -a mem|-d mem|-m mem options of the
hpvmmodify(1M) command to modify memory of a vPar with the recommended base and
floating memory values.
NOTE: There are some scenarios where online memory migration cannot be initiated. In
such failure cases, the hpvmmodify command saves the new memory changes in the “next”
configuration file, which is applied during the next boot of the vPar. On the contrary, the
vparmodify command does not save any memory changes that cannot be dynamically
applied. This is the existing behavior of the hpvmmodify and vparmodify commands.
13.15.3 An illustration of vPar online memory migration
This section describes the usage of command through an example of a vPar memory migration.
The memory migration operation is as follows:
1. Describe the experimental setup.
2. Describe memory usage on vpar1 that has 2 GB of base memory.
3. Describe memory usage on vpar1 after online addition of 4 GB of base memory and 4 GB
of floating memory.
4. Describe memory usage on vpar1 after online deletion of 4 GB of floating memory.
At each step, appropriate commands are executed to examine the memory usage and monitor the
progress of the operation. Only the relevant output from the command is shown.
The setup used for this experiment is a system with 1 vPar, configured with 2 GB base memory.
Following is the output of the vparstatus command with the memory distribution.
# vparstatus
[Virtual Partition Resource Summary]
Virtual Partition CPU Num Num Total MB Floating MB
Num Name Min/Max CPUs IO Memory Memory
====== =========== =========== ====== ===== ========== ============
1 vpar1 1/512 1 2 2048 0
# vparstatus -p 1 -v
[Virtual Partition Details]
Number: 1
Name: vpar1
RunState: DOWN
State: Inactive
.......
[Memory Details]
13.15 Online Memory Migration for vPar 243