HP Serviceguard Contributed Toolkit Suite Version A.04.02.02 on Linux User Guide (December, 2012)

Table 17 List of attributes that you can edit (continued)
ExampleDescriptionAttribute
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[0]
$SGCONF/pkg/samba/
toolkit.sh monitor
This is an interface to hasmb.sh.SERVICE_CMD[0]
-r 0The value for service_restart
can be unlimited, none or any
SERVICE_RESTART[0]
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.
To run the toolkit.sh script with the start option, edit the customer_defined_run_cmds
function in the package control script as follows:
function customer_defined_run_cmds
{
$SGCONF/pkg/samba/toolkit.sh start
test_return 51
}
To run the toolkit.sh script with the start option, edit the customer_defined_halt_cmds
function in the package control script as follows:
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 node2:$PWD/
8. Validae the configuration using the cmcheckconf command:
# cmcheckconf -P smb_pkg.conf
9. Create the package in the Serviceguard environment using cmapplyconf command, if the
cmcheckconf command does not report any errors:
# cmapplyconf -P smb_pkg.conf
10. Enable package switching for the Samba toolkit package using:
# cmmodpkg -e -n node1 -n node2 smb_pkg
Using Samba toolkit 41