NOTE: If you do not run the package associated with the SLVM before starting the package associated with the virtual machine, a message similar to the following is displayed:

#cmrunpkg slvmtest

Unable to execute command. Dependency on the following packages not met:

hpvm_vgsharedA

cmrunpkg: Unable to start some package or package instances

Using Serviceguard commands

To create a VM or vPar package:

1.Create a directory name matching the VM or vPar name in /etc/cmcluster, for example, /etc/cmcluster/<vm/vPar_name>.

2.cd /etc/cmcluster/<vm/vPar_name>.

3.Create VM or vPar package. Run the following command:

To create a VM package, run the following command: cmmakepkg –m tkit/vtn/vtn –n <vm_name> pkg.conf

<vm_name> is the name of the VM package. VM name and the package name must be the same.

To create a vPar package, run the following command:

cmmakepkg –m tkit/vtn/vpar –n <vpar_name> pkg.conf

<vpar_name>is the name of the vPar package. vPar name and the package name must be the same.

where,

cmmakepkg is the Serviceguard command to create the package.

tkit/vtn/vtn is the name of the VM module.

tkit/vtn/vpar is the name of the vPar module.

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:

Attributes

Description

package_name

The package name must be unique in the cluster. This

 

must be the name of a guest to be packaged.

package_type

Package must be a failover package.

node_name

Name of the cluster node on which the package will

 

run. To indicate all nodes in a cluster, value must be -

 

“*” or explicitly specify the primary and secondary

 

nodes, for example:

 

node_name node_1

 

node_name node_2

script_log_file

It is the package log file path where the package log is

 

stored.

TKIT_DIR

This is the directory where maintenance file must be

 

created to put the package in the maintenance mode.

 

For more information on maintaining packages, see

 

“Maintaining packages” (page 17).

Creating packages 15

Page 15
Image 15
HP Serviceguard Toolkit for Integrity Virtual Servers manual Using Serviceguard commands, Cd /etc/cmcluster/vm/vParname