Serviceguard Toolkits for Contrib User Guide Version A.12.00.00
5 Samba Toolkit
Overview
HP Serviceguard toolkit for Samba on Linux (Samba toolkit) enables you to configure Samba in
an SG/LX cluster environment. The Samba toolkit consists of a set of shell scripts that are used by
the package control script to start, stop, and monitor the Samba database server. The toolkit
simplifies the task of integrating Samba with SG/LX.
Advantages
When Samba toolkit is deployed in an SG/LX environment, following are the advantages:
• Provides monitoring for Samba daemons.
• Enables easy integration of Samba server in an SG/LX environment.
• Provides high availability for the Samba server.
Prerequisites
Samba toolkit package requires the following to function:
• HP Serviceguard on Linux must be installed on all the nodes that must be configured in the
cluster.
• The toolkit must be installed on all the target nodes, where the package is configured to run.
• Samba server must be installed and configured on all the target nodes.
Files and directories created for Samba toolkit after installation
The following table describes the scripts installed as part of the Samba installation.
Table 7 Samba toolkit files
Available in directoryDescriptionFile name
$SGROOT/sambatoolkitThis is the toolkit main script that
contains internal functions that start or
stop an Samba instance.
hasmb.sh
This is the toolkit monitor script that
contains internal functions for
monitoring a database server instance.
hasmb.mon
This is the toolkit interface script that
acts as an interface between the
toolkit.sh
package control script and the toolkit
main script, hasmb.sh.
$SGCONF/modules/tkit/sambaThese are attribute definition files,
used to generate package ASCII
samba.1
samba.2
templates in modular style of
packaging.
$SGCONF/scripts/tkit/sambaThis is the module script. This script is
called by the master control script and
tkit_module.sh
acts as an interface between the
master control script and the toolkit
interface script (toolkit.sh).
Setting up the Samba server in SG/LX environment
Before creating and configuring a Samba SG/LX package, complete the following configuration
tasks for the Samba server application:
22 Samba Toolkit