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

DescriptionAttribute
If the file exists, monitoring is paused, and you can bring
down Samba for maintenance. The package does not
fail over to the adoptive node even though Samba
instance is brought down for maintenance.
After the maintenance work, ensure that Samba is
brought up. You must delete the samba.debug file in
the package directory. This enables the toolkit to
continue monitoring Samba server application.
NOTE: If the Maintenance flag is set to no, then this
feature does not work.
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 2.
RETRY_TIMES
5. Validate the configuration using the cmcheckconf command:
# cmcheckconf -P smb_pkg.conf
6. Create the package using the cmapplyconf command, if the cmcheckconf command does
not report any errors:
# cmapplyconf -P smb_pkg.conf
Managing packages
You can manage packages by running, maintaining, halting, and deleting them.
Running packages
To start a package:
# cmrunpkg <package_name>
Maintaining packages
HP Serviceguard normally monitors critical processes, but there might be situations when a planned
maintenance task (for example, changing the configuration) is required that affects those monitored
processes. The maintenance flag can be used to signal to Serviceguard that it must not failover the
instance to an adoptive node.
For easy comprehension, the following naming conventions are used in this section:
Package name: SMB_1
Package directory: ${SGCONF}/pkg/SMB_1
To set a Samba toolkit package to the maintenance mode:
1. Enable the maintenance for the package during package creation.
To enable the maintenance mode feature, set the MAINTENANCE_FLAG to yes in the package
configuration file or in the Samba toolkit configuration file, and then apply the configuration
running the cmapplyconf command.
2. Create an empty file to pause the monitoring script.
${SGCONF}/SMB_1/samba.debug as shown below:
touch ${SGCONF}/smb_pkg.conf/samba.debug
The toolkit monitoring script stops monitoring the Samba daemons running for the instance
configured for the package. The following message is logged in the package control script:
42 Samba Toolkit