# *****************************************************************************
#  Copyright 2004-2006 Hewlett-Packard Development Company, L.P.  
# Confidential commercial computer software.  Valid license required.
# *****************************************************************************
# @(#) $Id:$

This is the Serviceguard for Integrity Virtual Machines Toolkit README file.
This file describes the content and usage of the toolkit.

Changes to the toolkit since the last toolkit (1.3) include:

1. New file names and new toolkit location: /opt/cmcluster/toolkit/hpvm
2. Removal hpvmsetsepd.sh (V1.20 workaround)
3. Removal hpvmsgping files (V1.20 workaround)
4. Removal of install_vswitchmon.sh script
5. removal of hpvmtemplate.sh replaced w/ cmmakepkg -s                           
6. removal of hpvmtemplate.config replaced w/ cmmakepkg -p
7. vswitchmon uses syslog.conf and restarts on syslog rotation
8. Added hpvmmodify commands to hpvmsg_package in support of hpvm
   multi-server environment
   
Note: Revison information moved to end of this file

##############################################################################
This document assumes the following:

1. The user has installed, configured and verified the Serviceguard
   cluster. This includes creating and applying the cluster
   configuration.

2. The user has installed the Integrity VM software, and configured,
   installed and run each of the virtual machines (guests) on each of
   the cluster members.

Warning: Do NOT run the same virtual machine on more then one cluster
member at the same time.

##############################################################################
Installing the Toolkit

The HPVM Serviceguard Toolkit is now an integral part of the HPVM
product and is installed when the HPVM product is installed.

##############################################################################
Installing the Vswitch Monitor

The HPVM Serviceguard Toolkit is now and integral part of the HPVM
product and is installed when the HPVM product is installed.

No additional action is required to enable this functionality

##############################################################################
Installing the Set sepd tunable Script

This script and it's associated functionality are no longer part of the
toolkit and are no longer required.

##############################################################################
Installing the hpvmsgping Script

This script and it's associated functionality are no longer part of the
toolkit and are no longer required.

##############################################################################

Creating a Serviceguard Virtual Machine Package Template

Note: To simplify the configuration and maintenance of the packages
      and virtual machiness the hpvmsg_package script uses the name
      of the virtual machine as the name of both the package and the
      package monitor service.

1. Using hpvmstart or hpvmsonsole start the virtual machine that you
   wish to configure as a Serviceguard package.
   
2. On this same member, run the HPVM Serviceguard Package script:
   # /opt/cmcluster/toolkit/hpvm/hpvmsg_package.sh <virtual machine name>

3. The HPVM Serviceguard Package script places pre-configured template
   files in the package directory: /etc/cmcluster/<virtual machine name>

   Review and edit as needed the files in this directory to suit your
   particular configuration.

Note: It is assumed that the cluster configuration file: 
      /etc/cmcluster/<cluster name>.config 
      Includes all of the VOLUME_GROUP entries required for all of the packages.
      Verify that all of the entries in the main package script 
      <virtual machine>.sh that start with VG[<#>]=/dev/<volume group>
      are included in the cluster configuration file.

4. If necessary, distribute the files with all changes to all members.
5. Run the following command:

   # cmapplyconf -v -C /etc/cmcluster/<cluster name>.config -P \
      /etc/cmcluster/<virtual machine name>/<virtual machine name>.config

6. Run the following command:
   # cmrunpkg -v <virtual machine name>

7. After you have verified that the virtual machine is up and running
   the package, you may wish to run the following command:

   # cmmodpkg -e <virtual machine name>

   This command allows the package to automatically fail over to any available node.

Notes:

1. Activating and importing LVM volume and VxVM disk groups when first getting packages to run:
  - To get LVM to work, enter the following commands:
    vgchange -c n /dev/<volume group>
    vgchange -a y /dev/<volume group>

  - To get VxVM disk groups to work on a different node, enter the following commands:
    vxdg import <disk group>
    vxvol -g <disk group> startall

2. For file backing stores, remember to mount the file systems.

==============================================================================

The Serviceguard for Integrity VM Toolkit contains the following files:
        
hpvmsg_package -  This script creates a set of template files which
                  can be used create a HPVM guest Serviceguard
                  package.
	          
                  This script uses the configuration information of
                  the virtual machine name which is passed as the
                  first and only argument.

                  The templates generated by these scripts will handle
                  many guest configurations, but it is only a template
                  and may not be appropriate for your particular
                  configuration needs. You are encouraged to review
                  and modify these template files as needed for your
                  particular environment.

hpvmsg_ctrl-      This is the main toolkit script called by the
                  package control script to start, stop, and monitor
                  the package. This script should not need to change
                  on a per-package basis. A copy of this script is
                  placed in the directory /etc/cmcluster/<virtual
                  machine name>/.

hpvmsg_start -    This is the package start toolkit script called by
                  the main toolkit script to start, stop, and monitor
                  the package. This script should not need to change
                  on a per-package basis. A copy of this script is
                  placed in the directory /etc/cmcluster/<virtual machine name>/.

hpvmsg_stop -     This is the package stop toolkit script called by
                  the main toolkit script to start, stop, and monitor
                  the package. This script should not need to change
                  on a per-package basis. A copy of this script is
                  placed in the directory /etc/cmcluster/<virtual
                  machine name>/.

hpvmsg_mon -      This is the package monitor toolkit script called by
                  the main toolkit script to start, stop, and monitor
                  the package. This script should not need to change
                  on a per-package basis. A copy of this script is
                  placed in the directory /etc/cmcluster/<virtual
                  machine name>/.

##############################################################################
Change in 1.3

1. Added Copyright Headers
2. Added hpvmsetsepd.sh script
3. Fix hpvmmon.sh for HPVM V2.0

Change in 1.2

1. Added "This is a template only" message to the hpvmsg_package script.
2. Provided latest version of vswitch monitor and hpvmsgping scripts.
3. Provide installers for above scripts.

Changes in 1.1

1. Changed the LVM activation mode from yes to exclusive.
2. Added subnet monitoring for all subnets used by guest.
3. Improved backup of files if the user runs hpvm_package on a guest more then once.
4. Included the initial vswitch_monitor script for review.
