Controls the group services subsystem.
cthagsctrl { -a [-p port-number ] -s | -k | -d | -r | -z | -h | -t | -o }
The cthagsctrl control command controls the operation of the group services subsystem (cthags) under the control of the system resource controller (SRC).
An instance of the group services subsystem runs on every node of a cluster.
From an operational point of view, the group services subsystem group is organized as follows:
The cthags subsystem is associated with the hagsd daemon.
The subsystem name on the nodes is cthags. There is one subsystem per node and each of these subsystems is associated with the cluster to which the node belongs.
Provides the group services functions.
In general, the cthagsctrl command is not issued from the command line. It is normally called by the cthactrl command during the creation of the cluster.
The cthagsctrl command provides a variety of controls for operating the group services subsystems:
Adding the subsystem
When the -a flag is specified, the control command adds the group services subsystems to the SRC. The control command:
Starting the subsystem
When the -s flag is specified, the control command uses the startsrc command to start the group services subsystem, cthags.
Stopping the subsystem
When the -k flag is specified, the control command uses the stopsrc command to stop the group services subsystem, cthags.
Deleting or cleaning the subsystem
When the -d flag is specified, the control command uses the rmssys command to remove the group services subsystems from the SRC. The control command:
Turning tracing on
When the -t flag is specified, the control command turns tracing on for the hagsd daemon using the traceson command.
Turning tracing off
When the -o flag is specified, the control command turns tracing off (returns it to its default level) for the hagsd daemon using the tracesoff command.
Refreshing the subsystem
The -r flag refreshes the cthags subsystem.
Logging
While they are running, the group services daemons provide information about their operation and errors by writing entries in three log files in the /var/ct/cluster_name/log/cthags directory. The log files are:
The log files contain the log of the hagsd daemons on the nodes.
The log file names include these variables:
Each daemon limits the log size to a pre-established number of lines. The default is 5000 lines. When the limit is reached, the daemon appends the string .bak to the name of the current log file and begins a new log. If a .bak version already exists, it is removed before the current log is renamed.
You must have root authority to run this command.
This command is valid in a peer domain only.
Use this command only under the direction of the IBM Support Center.
When the -h flag is specified, this command's usage statement is written to standard output.
This command writes error messages, as necessary, to standard error.
cthagsctrl -a
cthagsctrl -a -p 12347
cthagsctrl -s
cthagsctrl -k
cthagsctrl -d
cthagsctrl -t
cthagsctrl -o
Commands: cthactrl, cthagstune, lssrc, nlssrc