HP Serviceguard Linux Contributed Toolkit Suite A.04.02.01 User Guide (696979-001, June 2012)

ExampleDescriptionAttribute
signal is sent to force the termination
of the service.
Control Script Parameters
vg01The VG created for this package.VG
/dev/vg01/lvol1The logical volume created in VT.LV
/shared/smb_1This is the file system for DB.FS
ext2The FS type is Extended 2.FS_TYPE
-o rwMount with read or write options.FS_MOUNT_OPT
ss.tt.uuu.vThis is the package subnet.SUBNET
aa.bb.ccc.dddThis is the relocatable IP address.IP
pre-IPThis parameter provides high
availability to the Samba server by
uncommenting this parameter.
HA_APP_SERVER
For example,
HA_APP_SERVER=“pre-IP”
smb1_monitorThe service name must be unique in
the cluster.
service_name
${SGCONF}/pkg/samba/
toolkit.sh monitor
This is an interface to hasmb.sh.service_cmd
-r 0The value for service_restart
can be unlimited, none or any
service_restart
positive integer value. If the value is
unlimited, the service is restarted for
infinite number of times. If the value
is none, the service is not restarted.
If the value is a positive integer, the
service is restarted for the specified
number of times before failing. If
service_restart is not
specified, the default value is none.
function customer_defined_run_cmds
{
${SGCONF}/pkg/samba/toolkit.sh start
test_return 51
}
function customer_defined_halt_cmds
{
${SGCONF}/pkg/samba/toolkit.sh stop
test_return 52
}
6. Edit the Samba the toolkit configuration file, hasmb.conf.
7. Copy the package directory to the other nodes in the cluster.
For example, change to the parent directory of the package directory and enter the following
command:
# rcp -r p ${SGCONF}/pkg/samba photon4:$PWD/
8. Validae the configuration using the cmcheckconf command:
# cmcheckconf -P smb_pkg.conf
40 Samba Toolkit