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

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
# cmmodpkg -e smb_pkg
11. Start the package using the cmrunpkg command.
# cmrunpkg smb_pkg
Configuring Samba modular packages
To configure modular Samba toolkit packages:
1. Create a directory for the package on all the cluster nodes using the following command:
# mkdir ${SGCONF}/pkg/samba
2. cd to the package directory.
3. Create the package configuration and control templates using the cmmakepkg command:
# cmmakepkg m tkit/samba/samba smb_pkg.conf
4. Edit the following attributes manually in the package configuration file:
DescriptionAttribute
Toolkit configuration directory is synonymous to package
configuration directory. This directory holds the toolkit
TKIT_DIR
configuration file. This parameter directs cmapplyconf
to generate the hasmb.conf file under this directory.
To put the toolkit into maintenance mode, create
samba.debug file under this directory.
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"
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"
This parameter is used to bring this toolkit into
maintenance mode. If this parameter is set to yes, then
MAINTENANCE_FLAG
it enables maintenance feature in the toolkit. Samba
toolkit searches the samba.debug file in the Samba
toolkit package file directory where all the Samba toolkit
files are located.
Using Samba toolkit 41