HP Serviceguard Toolkit for Integrity Virtual Servers manual Halting packages, Deleting packages

Page 18

Halting packages

To halt the package, run the following command:

# cmhaltpkg <package_name>

This command invokes the hpvmstop or vparreset -dcommand on the specific VM or vPar, respectively to stop the package.

Deleting packages

To delete a package from the cluster, run the cmdeployvpkg command with -Uoption.

For example: #cmdeployvpkg -P vm1 -U

NOTE: HP recommends that you do not use cmdeleteconf -pto delete VM or vPar package from HP Serviceguard cluster.

Converting packages

You can convert both, legacy and modular 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 or vPar guest.

NOTE:

Conversion of packages is applicable only for VM packages.

The package conversion only deletes the existing package configuration and creates a new file, without restoring the user modifications made to the original package configuration file.

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.Run hpvmsg_package -U -P <vm_name>

4.Run the cmdeployvpkg -P <vm_name> [...] command. This command overwrites the existing configuration file.

5.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.On the node, where VM is running, run the cmrunpkg <vm_name> command. To enable the package failover, run the following command:

cmmodpkg -e <package_name> command

NOTE: —Coption fails when you convert a package offline.

For more information on creating a new package, see “Creating packages” (page 12).

Online package conversion: You can opt for an online package conversion, if the guest application downtime is not permitted.

To perform an online conversion of the package that was created using the HP Integrity VM toolkit to a package using the SG IVS toolkit module, run the cmdeployvpkg command with -Coption.

18 Using SG IVS toolkit

Image 18
Contents Abstract Page Contents Advantages HP Serviceguard Toolkit for Integrity Virtual ServersOverview DependenciesHP Integrity VM Serviceguard toolkit HP Serviceguard Toolkit for Integrity Virtual Servers Supported configuration VM/vPar as Serviceguard packagesNetwork 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 K004vswitchmgr Vparreset IvshpvmutilsVswitchmgr S802vswitchmgrUsing SG IVS toolkit PreconfigurationCreating packages Change the vgnamecmd to vgchange -a s Hpvmvolumegroup /dev/vgsharedA Check the configuration of the packageUsing Serviceguard commands Cd /etc/cmcluster/vm/vParnameCmmakepkg -m tkit/vtn/vpar -n vparname pkg.conf Servicename Using SG IVS Toolkit commandsCmdeployvpkg command Cmapplyconf -P pkg.confMaintaining packages Managing packagesRunning packages #cmdeployvpkg -m 1 -P vm or vpar nameHalting 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 HP-UX /opt/hp/cmappserver Key generation on the VM or vPar guestCmappserver Rpm -i cmappserverslesia64.rpm for SlesAdd /opt/hp/cmappserver to the path Cmappservertimeoutcmappserver connection timeout seconds #cmdeployvpkg -P vm1 -x merge -x appmon# cmdeployvpkg -P slvm1 -x merge -x appmon HpuxConfiguring guest application monitoring service Hostlogfile full Lanmon Usr/sbin/cmappmgr -node remo1 -cmappservertimeoutLoglevel Pathof fileonhostHelp Version Adm/vm1npivdiskmon.logUpgrading cmappmgr/cmappserver combination Configuring guest application monitoring service Online VM guest package migration For example # cmmovevpkg -v -P slvm1 -h xyzo2Online VM guest package migration Run cmdeployvpkg command with -m 0 option TroubleshootingService monitor detected a failure in guest vmname Etc/cmcluster/scripts Mscripts Mastercontrolscript.shCmcluster/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 Glossary DMPIndex