cl_clstop command

Purpose

Stops cluster daemons using the System Resource Controller (SRC) facility.

Syntax


cl_clstop [-cspoc "[-f] [-n NodeList | -g ResourceGroup]"] -f
cl_clstop [-cspoc "[-f] [-n NodeList | -g ResourceGroup]"] -g [-s] [-y] [-N | -R | -B]
cl_clstop [-cspoc "[-f] [-n NodeList | -g ResourceGroup]"] -gr [-s] [-y] [-N | -R | -B]

Description

The cl_clstop command shuts down cluster services across cluster nodes. By default, the cl_clstop command stops cluster services across all cluster nodes. However, you can specify the list of nodes on which to stop cluster services. The cl_clstop stops the cluster daemons by using the System Resource Controller (SRC). You stop the cluster daemons by using the gracefully option or forcefully option. The command optionally removes automatic start on reboot through the entry in the /etc/inittab file. You must specify a node list if the cluster daemons are being shut down by using the gracefully with takeover option. By default, the cl_clstop command requires that all nodes in a cluster or all nodes in a node list are accessible over the network and online; otherwise, the cl_clstop command fails.

Flags

-cspoc
You can use the following arguments for the C-SPOC options:
-f
Forces C-SPOC command to skip default verification. If this flag is set and a cluster node is not accessible, the cl_clstop command reports a warning and continues execution on the other nodes.
-n NodeList
Shuts down cluster services on the nodes that are specified in the node list.
-g ResourceGroup
Generates a list of nodes that are participating in the resource group on which the cl_clstop command is run.
-f
Forces a shutdown. Cluster daemons terminate without running any local procedures.
-g
Graceful shutdown with no takeover.
-gr
Graceful shutdown with the resources that are being released by this node and taken over by another node. The daemon terminates gracefully, and the node releases its resources, which are taken over. A node list must be specified for graceful shutdown with takeover.
-s
Performs a silent shutdown. This flag does not broadcast a shutdown message through wall command. The default setting is to broadcast.
-y
Do not ask operator for confirmation before shutting down the cluster nodes. This flag is the default.
-B
Stop now and on subsequent system restart.
-N
Shut down now.
-R
Stops on subsequent system restart and removes the entry in the /etc/inittab file.

Examples

  1. To shut down the cluster node by using the gracefully with takeover option on node1 (releasing the resources) without sending a warning message to users before the cluster processes are stopped and resources are released, enter:
    cl_clstop -cspoc "-n node1" -ysNgr
  2. To forcefully and immediately shut down the cluster on all cluster nodes (resources not released) with a warning message that is broadcast to users before the cluster processes are stopped, enter:
    cl_clstop -yNf
  3. To shut down the cluster node by using the gracefully on all cluster nodes options with a warning message that is broadcast to users before the cluster processes are stopped, enter:
    cl_clstop -yg
    
    Note: If you do not specify either the -g or -n flags, the default action occurs on all cluster nodes.