Serviceguard Toolkits for Contrib User Guide Version A.12.00.00
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
For more information about managing packages, see Managing packages. (page 35)
Configuring Samba toolkit packages
Configuring Samba packages
To configure modular Samba toolkit packages:
1. Create the package configuration and control templates using the cmmakepkg command:
# cmmakepkg –m tkit/samba/samba smb_pkg.conf
2. Edit the following attributes manually in the package configuration file. Table 18 (page 25)
lists all the attributes that you can edit manually in the package configuration file.
Table 8 List of attributes that you can edit
DescriptionAttribute
Configuration file for all Samba toolkit packages in the
cluster. Each Samba instance must have this base
BASE_CONF_FILE
configuration file that contains Samba server
configuration data for all Samba instances in the cluster.
If not defined, the default value of this variable will be
same as Samba's default configuration file path (/etc/
samba/smb.conf).
For example:
BASE_CONF_FILE "/etc/samba/smb_base.conf"
NOTE: Samba toolkit does not support online
modification of this attribute.
The file path of specific configuration file for this Samba
server instance. This file should contain configuration
SUB_CONF_FILE
data for this Samba instance in addition to the
configurations provided in the base configuration File.
If you want to have multiple Samba instances to run in
a cluster, you need to create a sub configuration file
and assign the file path to this variable. The Samba
daemons loads the configuration data from both base
and sub-configuration files when they are started.
For Example: SUB_CONF_FILE "$SGCONF/smb_pkg/
smb_sub.conf"
NOTE: Samba toolkit does not support online
modification of this attribute.
The time interval in seconds to monitor the Samba server
instance. The default value is 30.
MONITOR_INTERVAL
The number of trials attempted by the toolkit script to
check the Samba server daemon before giving up and
exiting. The default value is 0.
RETRY_TIMES
Using Samba toolkit 25