other versions
- jessie 3.1.8-1.2+b1
ccs_tool(8) | ccs_tool(8) |
NAME¶
ccs_tool - The tool used to make online queries to the cluster configuration.SYNOPSIS¶
ccs_tool [ OPTION].. <command>DESCRIPTION¶
ccs_tool is part of the Cluster Configuration System (CCS). It used to peform different kind of queries to the cluster configuration and has support for some cluster.conf editing functions.OPTIONS¶
- -h
- Help. Print out the usage.
- -V
- Print the version information. sub-commands have their own options, see below for more detail
COMMANDS¶
- query <xpath query>
- Perform an xpath query on running cluster configuration.
- addnode [options] <node> [<fenceoption=value>]...
- Adds a new node to the cluster configuration file. Fencing device options
are specified as key=value pairs (as many as required) and are entered
into the configuration file as is. See the documentation for your fencing
agent for more details (eg a powerswitch fence device may need to know
which port the node is connected to).
- delnode [options] <node>
- Delete a node from the cluster configuration file. Note: there is no
"edit" command so to change the properties of a node you must
delete it and add it back in with the new properties.
- addfence [options] <name> <agent> [<option>=<value>]...
- Adds a new fence device section to the cluster configuration file.
<agent> is the name of the fence agent that controls the device. the
options following are entered as key-value pairs. See the fence agent
documentation for details about these. eg: you may need to enter the IP
address and username/password for a powerswitch fencing device.
- delfence [options] <node>
- Deletes a fencing device from the cluster configuration file. delfence
will allow you to remove a fence device that is in use by nodes. This is
to allow changes to be made, but be aware that it may produce an invalid
configuration file if you don't add it back in again.
- lsnode [options]
- List the nodes in the configuration file. This is (hopefully obviously)
not necessarily the same as the nodes currently in the cluster, but it
should be a superset.
- lsfence [options]
- List all the fence devices in the cluster configuration file.
- create [options] <clustername>
- Create a new, skeleton, configuration file. Note that "create"
on its own will not create a valid configuration file. Fence agents and
nodes will need to be added to it before handing it over to ccsd. The new
configuration file will have a version number of 1. Subsequent
addnode/delnode/addfence/delfence operations will increment the version
number by 1 each time.
- addnodeids
- Adds node ID numbers to all the nodes in cluster.conf. In RHEL4, node IDs were optional and assigned by cman when a node joined the cluster. In RHEL5 they must be pre-assigned in cluster.conf. This command will not change any node IDs that are already set in cluster.conf, it will simply add unique node ID numbers to nodes that do not already have them.