User's Manual
NOTE: HP recommends that you must not use the HP Serviceguard command, cmdeleteconf,
because you need to de-associate VM from the Serviceguard package.
Converting packages
You can convert packages created using the HP Integrity VM Serviceguard toolkit to the SG IVS
Toolkit. This depends on the criticality of the downtime for the application running on the VM guest.
• Offline package conversion: You can opt for an offline package conversion, if the application
downtime is permitted.
To convert the package offline:
1. Halt the VM guest package which stops the VM guest and the application running on it.
2. Create a new package.
For example, to create a new package in the offline mode:
1. Run the cmhaltpkg <vm_name> command.
2. Backup the package directory.
3. Optional: Run hpvmsg_package -U -P <vm_name>
4. Run the cmdeployvpkg -P <vm_name> [...] command. This command overwrites
the existing configuration file.
5. Optional: Review and edit package configuration file created.
6. Run the cmcheckconf -P <vm_name.conf> command.
7. Run the cmapplyconf -P <vm_name.conf> command.
8. Run the cmrunpkg <vm_name> command.
For more information on creating a new package, see “Creating packages” (page 10).
• Online package conversion: You can opt for an online package conversion, if the guest
application downtime is not permitted.
To convert the old package to a new package that uses SG IVS toolkit module, run the
cmdeployvpkg command with -C option.
When you run the cmdeployvpkg command, the command:
1. Executes the hpvmmigrate command internally.
2. Executes the cmdeleteconf command on this package, after the OVMM is successful.
3. Runs the cmdeployvpkg -P {vm_name} -n {source-node} -n {target-node}
command.
NOTE: A new configuration file has minimum configuration information. Therefore, HP
recommends that you run the cmdeployvpkg -P {vm_name} -n {package-nodes}
with-appropriate-options.
4. Reviews and edits the package configuration file.
NOTE: When you use the cmdeployvpkg command to convert an old package to a
new package, the old configuration file is replaced with a new configuration file. Before
the new file is created, the old configuration file is placed in the .backup directory
(inside the package directory). You must review and edit the new configuration file
appropriately.
5. Manually perform step 5–10 as explained in “Using Serviceguard commands” (page 10).
For example:
To convert old package to a new package in the online mode:
1. Run #cmdeployvpkg -C -P <vm_name> [...].
2. Review and edit the package configuration file.
Managing packages 13