HP Serviceguard Toolkit for Integrity Virtual Servers manual Run cmdeployvpkg -C -P vmname

Page 19

When you run the cmdeployvpkg command, it:

1.Executes the VM or vPar migration command internally.

2.Executes the cmdeleteconf command on this package, after the Online VM migration is successful.

3.Runs the cmdeployvpkg -P {vm_name} -n {source-node} -n {target-node} command.

NOTE: A new configuration file has minimum configuration information. Therefore, HP recommends that you run the cmdeployvpkg -P {vm_name} -n{package-nodes}with-appropriate-options.

4.Reviews and edits the package configuration file.

NOTE: When you use the cmdeployvpkg command to convert the package created using the HPVM toolkit to the package using the SG IVS toolkit, the old configuration file is replaced with a new configuration file. Before the new file is created, the old configuration file is placed in the .backup directory (inside the package directory). You must review and edit the new configuration file appropriately.

5.Manually perform step 5–10 as explained in “Using Serviceguard commands” (page 15). For example:

To convert the package created using the HPVM toolkit to the package using the SG IVS toolkit in the online mode:

1.Run cmdeployvpkg -C -P <vm_name> [...].

2.Review and edit the package configuration file.

3.Run cmcheckconf -P <vm_name.conf>.

4.Run cmapplyconf -P <vm_name.conf>.

5.On the node, where VM is running, run cmrunpkg <vm_name>.

To enable the package failover, run the following command: cmmodpkg -e <package_name> command

NOTE: This method uses the OVMM technique. Therefore, all the OVMM requirements must be considered.

Keep a backup of the package directory before you run the cmdeployvpkg command. After cmdeployvpkg command creates the new package configuration file, you must edit, apply, and then run the package.

For more information on creating and managing packages, see “Creating packages” (page 12) and “Managing packages” (page 17) respectively.

Managing packages 19

Image 19
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 configurationStorage considerations Network componentsFor example, # cmdeployvpkg -m 1 -P vm1 Storage considerations # swlist -l product SG-IVS-Toolkit # swinstall -s depot path#swremove SG-IVS-Toolkit S802vswitchmgr Vparreset IvshpvmutilsVswitchmgr K004vswitchmgrPreconfiguration Using SG IVS toolkitCreating packages Change the vgnamecmd to vgchange -a s Check the configuration of the package Hpvmvolumegroup /dev/vgsharedACd /etc/cmcluster/vm/vParname Using Serviceguard commandsCmmakepkg -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 packagesDeleting packages Halting 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 Support and other resources How to contact HPInformation to collect before contacting HP Documentation feedback HP authorized resellersRelated information Typographic conventions TIP Page Page DMP GlossaryIndex