To configure the Shutdown Daemon (SD), you will need to modify the file
/etc/opt/SMAW/SMAWsf/rcsd.cfg on every node in the cluster.
A file, rcsd.cfg.template, is provided under the /etc/opt/SMAW/SMAWsf directory, which is a sample configuration file for the Shutdown Daemon using fictitious nodes and agents.
Note
It is important that the rcsd.cfg file is identical on all cluster nodes; care should be taken in administration to ensure that this is true.
Here is the example of rcsd.cfg, which is created by editing an rcsd.cfg.template.
node1,weight=2,admIP=fuji2:agent=SA_mmbp,timeout=20:agent=SA_mmbr,timeout=20 node2,weight=2,admIP=fuji3:agent=SA_mmbp,timeout=20:agent=SA_mmbr,timeout=20
The configuration file must be created in the /etc/opt/SMAW/SMAWsf directory and must use rcsd.cfg as the file name.
The format of the configuration file is as follows:
cluster-node1 [,weight=w1][, admIP=admIP1]:agent=SA1, timeout=t1[:agent=SA2, timeout=T2]... cluster-node2 [,weight=w2][,admIP=admIP2]:agent=SA1, timeout=t1[:agent=SA2, timeout=T2]...
...
cluster-nodeN is the cfname of a node within the cluster.
agent and timeout are reserved words.
SAN is the command name of a SA.
tN is the timeout duration (seconds) of the SA.
The SA runs for the following cases:
When a node is forcibly eliminated.
When checking the connection to the option hardware used when a node is forcibly eliminated.
When a timeout occurs at the forced node elimination, the processing of the SA is stopped, and then the next SA is started. If all SAs fail to perform their processing, the node is left in the LEFTCLUSTER state.
When a timeout occurs when checking the connection to the option hardware used at the forced node elimination, the processing of the SA is stopped, and then the node becomes the TestFailed state.
wN is the node weight.
admIPN is the admin interface on the Administrative LAN on this cluster node. Available IP addresses are IPv4 and IPv6 address. The link local address of IPv6 is not available. When specifying the IPv6 address, enclose it in brackets "[ ]".
(Example: [1080:2090:30a0:40b0:50c0:60d0:70e0:80f0] )
The order of the SAs in the configuration file should be such that the first SA in the list is the preferred SA. If this preferred SA is issued a shutdown request and if its response indicates a failure to shut down, the secondary SA is issued the shutdown request. This request/response is repeated until either an SA responds with a successful shutdown, or all SAs have been tried. If no SA is able to successfully shut down a cluster node, then operator intervention is required and the node is left in the LEFTCLUSTER state.
The location of the log file will be /var/opt/SMAWsf/log/rcsd.log.