HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir $SGCONF/pkg/samba
2. Copy the toolkit files from $SGROOT/sambatoolkit to the package directory $SGCONF/
pkg/samba.
3. cd to the package directory.
4. Create the package configuration and control templates using the cmmakepkg command:
Configuration template: # cmmakepkg -p smb_pkg.conf
Control template: # cmmakepkg -s smb_pkg.cntl
5. Edit the following attributes manually in the package configuration file. Table 17 (page 40)
lists all the attributes that you can edit manually in the package configuration file.
Table 17 List of attributes that you can edit
ExampleDescriptionAttribute
Configuration file parameters
smb_pkgThe package name must be unique
in the cluster.
PACKAGE_NAME
node1The name of the node that runs the
package.
NODE_NAME
$SGCONF/pkg/samba/
smb_pkg.cntl
This is the script to start the service.RUN_SCRIPT
$SGCONF/pkg/samba/
smb_pkg.cntl
This is the script to halt the service.HALT_SCRIPT
smb1_monitorThe service name must be unique in
the cluster.
SERVICE_NAME
noThe value for
SERVICE_FAIL_FAST_ENABLED
SERVICE_FAIL_FAST_ENABLED
can either be yes or no. The default
value is no.
If SERVICE_FAIL_FAST_ENABLED
is set to yes and the service fails,
Serviceguard halts the node on
which the service is running.
300This is a number of seconds used to
determine the length of time for
SERVICE_HALT_TIMEOUT
which Serviceguard waits for the
service to halt before a SIGKILL
signal is sent to force the termination
of the service.
Control Script Parameters
vg01The VG created for this package.VG[0]
/dev/vg01/lvol1The logical volume created in VT.LV[0]
/shared/smb_1This is the file system for DB.FS[0]
ext2The FS type is Extended 2.FS_TYPE[0]
-o rwMount with read or write options.FS_MOUNT_OPT[0]
ss.tt.uuu.vThis is the package subnet.SUBNET[0]
aa.bb.ccc.dddThis is the relocatable IP address.IP[0]
40 Samba Toolkit