NOTE:
•This script does not include information about attached I/O devices, such as tape, DVD, burner, and changer devices into the package configuration file.
•Run the cmdeployvpkg command on the node where VM is running.
Managing packages
Running packages
To start the VM/vPar guest package use the following command:
# cmrunpkg <package_name>
NOTE: After you run the package, to enable the package failover on the configured nodes, run the following command:
$ cmmodpkg
If a package is not running, the cmmodpkg
Maintaining packages
When you set a package to the maintenance mode, the toolkit stops monitoring the status of the VM or vPar. It enables you to perform the maintenance work on a VM or vPar guest without bringing down the package.
Maintenance mode is enabled only on the local node. Each time the maintenance mode is enabled or disabled for the VM or vPar guest package, the event is logged in the package log file. If the Serviceguard node on which the VM or vPar guest is running, fails when the maintenance mode is enabled, the VM or vPar guest package fails over to a secondary node. Whether the changes made to the VM, vPar guest, or package configuration are distributed to the secondary node or not before the failover, depends on the stage of the process where the failure occurred. After recovery, ensure that the VM or vPar guest package is not in maintenance mode and the configuration is consistent for all nodes.
Perform the following steps to work with the package maintenance mode:
1.To enable the maintenance mode feature in the package configuration file, set the MAINTENANCE_FLAG attribute to yes, and then apply the cmapplyconf command.
2.To start the maintenance mode for the package, run the command:
#cmdeployvpkg -m 1 -P <vm or vpar name>
3.To stop the maintenance mode and bring back the package in the running state, run the command:
#cmdeployvpkg -m 0 -P <vm or vpar name>
NOTE:
•If the changes are made either to VM or vPar guest configuration environment or the Serviceguard environment, HP recommends that you remove the VM or vPar on alternate nodes and use the cmdeployvpkg command to package it again, and then use the cmapplyconf command to reapply it.
•If the maintenance mode is not disabled, the VM or vPar guest package does not failover to the other host when VM or vPar fails. HP recommends that you disable the maintenance mode each time after the maintenance of the VM or vPar guest is complete.
Managing packages 17