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

By bringing the Samba instances in service on one or more nodes, you can distribute the workload
as desired. In addition, by adjusting the failover policy for each instances, the user can configure
the Samba instance to fail over to a particular node, or to fail over to different nodes to distribute
the workload when a failure occurs.
Using Samba toolkit
After installing the Samba toolkit, you can use this toolkit to:
Configure packages in an SG/LX environment
Manage packages
Configuring Samba toolkit packages
You can configure Samba toolkit packages using either legacy or modular style of packaging.
Configuring Samba legacy packages
To configure legacy Samba toolkit packages:
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 ${SGCONF}/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:
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
Using Samba toolkit 39