HP Serviceguard Enterprise Cluster Master Toolkit User Guide, December 2012 (5900-2145)
ecmt/sybase/sybase/TIME_OUT 30
ecmt/sybase/sybase/RECOVERY_TIMEOUT 30
ecmt/sybase/sybase/MONITOR_PROCESSES dataserver
ecmt/sybase/sybase/MAINTENANCE_FLAG yes
Define the volume groups that are used by the Sybase ASE instance. File systems associated with
these volume groups are defined as follows:
vg /dev/vg00_SYBASE0
vg /dev/vg01_SYBASE0
Define the file systems which are used by the Sybase ASE instance. Note that one of these file
systems must be the shared file system/logical volume containing the Sybase ASE home configuration
information ($SYBASE_HOME). The name of the instance is used to name the volume groups,
logical volumes, and file systems.
fs_name /dev/vg00_SYBASE0/lvol1
fs_directory /SYBASE0
fs_type "ext3"
fs_mount_opt "-o rw"
Define the service related parameters. The service name must include the Sybase ASE instance
name (that is ${ASE_SERVER}). In the following example, there is only one service for this package,
therefore, the ${ASE_SERVER} (that is SYBASE0) is assigned to the 'service_name' parameter.
service_name SYBASE_${ASE_SERVER}
service_cmd
"/opt/cmcluster/conf/scripts/ecmt/sybase/tkit_module.sh
sybase_monitor"
service_restart "-r 3"
Use the Serviceguard command, cmmodpkg, to reset the service restart couter to zero for this
parameter. The service restart counter is incremented each time the service fails. It is used to
determine when a package has exceeded its restart limit as defined by the "service_restart"
parameter in the package control script.
To reset the restart counter run the command cmmodpkg [-v] [-n node_name] -R -s
service_name package_name
After the Serviceguard environment is set up, each clustered Sybase ASE Instance must have the
following files in the toolkit specific directories:
/etc/cmcluster/scripts/ecmt/sybase/tkit_module.sh
/etc/cmcluster/modules/ecmt/sybase/sybase (this is a
symbolic link)
/etc/cmcluster/modules/ecmt/sybase/sybase.1
/opt/cmcluster/toolkit/sybase/README
/opt/cmcluster/toolkit/sybase/SGAlert.sh
Creating the Serviceguard package using Modular method
To create Serviceguard package using Modular method:
1. Create a directory for the package.
#mkdir /etc/cmcluster/pkg/sybase_pkg/
2. Copy the toolkit template and script files from sybase directory.
#cd /etc/cmcluster/pkg/sybase_pkg/
#cp /opt/cmcluster/toolkit/sybase/*./
3. Create a configuration file (pkg.conf)
#cmmakepkg -m ecmt/sybase/sybase pkg.conf
Creating the Serviceguard package using Modular method 69