HP Serviceguard Toolkit for Integrity Virtual Servers manual Using Serviceguard commands

Page 15

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

Image 15
Contents Abstract Page Contents Dependencies HP Serviceguard Toolkit for Integrity Virtual ServersOverview AdvantagesHP Integrity VM Serviceguard toolkit HP Serviceguard Toolkit for Integrity Virtual Servers VM/vPar as Serviceguard packages Supported configurationNetwork components Storage considerationsFor example, # cmdeployvpkg -m 1 -P vm1 Storage considerations # swinstall -s depot path # swlist -l product SG-IVS-Toolkit#swremove SG-IVS-Toolkit S802vswitchmgr Vparreset IvshpvmutilsVswitchmgr K004vswitchmgrUsing SG IVS toolkit PreconfigurationCreating packages Change the vgnamecmd to vgchange -a s Check the configuration of the package Hpvmvolumegroup /dev/vgsharedAUsing Serviceguard commands Cd /etc/cmcluster/vm/vParnameCmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Cmapplyconf -P pkg.conf Using SG IVS Toolkit commandsCmdeployvpkg command Servicename#cmdeployvpkg -m 1 -P vm or vpar name Managing packagesRunning packages Maintaining packagesHalting packages Deleting packagesConverting packages Run cmdeployvpkg -C -P vmname Configuring guest application monitoring service Failure of a monitored VM or vPar guest application Configuring guest application monitoring service Key generation on the VM or vPar guest HP-UX /opt/hp/cmappserverRpm -i cmappserverslesia64.rpm for Sles CmappserverAdd /opt/hp/cmappserver to the path #cmdeployvpkg -P vm1 -x merge -x appmon Cmappservertimeoutcmappserver connection timeout secondsHpux # cmdeployvpkg -P slvm1 -x merge -x appmonConfiguring guest application monitoring service Pathof fileonhost Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeoutLoglevel Hostlogfile fullAdm/vm1npivdiskmon.log Help VersionUpgrading cmappmgr/cmappserver combination Configuring guest application monitoring service For example # cmmovevpkg -v -P slvm1 -h xyzo2 Online VM guest package migrationOnline VM guest package migration Etc/cmcluster/scripts Mscripts Mastercontrolscript.sh TroubleshootingService monitor detected a failure in guest vmname Run cmdeployvpkg command with -m 0 optionCmcluster/scripts/tkit/vtn/ tkitmodule.sh Limitations How to contact HP Support and other resourcesInformation to collect before contacting HP HP authorized resellers Documentation feedbackRelated information Typographic conventions TIP Page Page DMP GlossaryIndex