HP Serviceguard Toolkit for Integrity Virtual Servers User Guide

4 Using SG IVS toolkit
Creating packages
You must perform the preconfiguration steps, and then configure the VM guest into an HP
Serviceguard package by using either of the following ways:
Using Serviceguard Commands
Using Easy Deployment
For information on the preconfiguration steps, see www.hp.com/go/virtualization-manuals HP
Integrity Virtual Machines and Online VM Migration > HP Integrity Virtual Machines 4.3: Installation,
Configuration, and Administration > Creating the Package Configuration.
Using Serviceguard commands
To create a VM package:
1. Create a directory name matching the VM name in /etc/cmcluster,
for example, /etc/cmcluster/<vm_name>.
2. cd /etc/cmcluster/<vm_name>.
3. Create VM package. Run the following command:
cmmakepkg m tkit/vtn/vtn n <vm_name> pkg.conf
In this command:
cmmakepkg is the HP Serviceguard command to create the package.
tkit/vtn/vtn is the name of the SG IVS toolkit module.
<vm_name> is the name of package. VM name and the package name must be the
same.
pkg.conf is the name of the package configuration file.
4. Edit the following attributes manually in the package configuration file (pkg.conf) before
applying the package:
DescriptionAttributes
The package name must be unique in the cluster. This
must be the name of a guest to be packaged.
package_name
Package must be a failover package.package_type
Name of the cluster node on which the package will
run. To indicate all nodes in a cluster, value must be -
node_name
“*” or explicitly specify the primary and secondary
nodes, for example:
node_name node_1
node_name node_2
It is the package log file path where the package log is
stored.
script_log_file
This is the directory where maintenance file must be
created to put the package in the maintenance mode.
TKIT_DIR
For more information on maintaining packages, see
“Maintaining packages” (page 12).
This attribute is used to indicate if the VM guest package
can run in maintenance mode. The default value is [yes].
MAINTENANCE_FLAG
10 Using SG IVS toolkit