Installation guide
Important
This chapter references commonly used cl uster. co nf elements and attributes. For a
comprehensive list and description of cl uster. co nf elements and attributes, refer to the
cluster schema at /usr/share/cl uster/cluster. rng , and the annotated schema at
/usr/share/d o c/cman-X. Y . ZZ/cl uster_co nf. html (for example
/usr/share/d o c/cman-3. 0 . 12/cluster_conf. html ).
5.1. Operat ional Overview
This section describes the following general operational aspects of using the ccs command to
configure a cluster:
Section 5.1.1, “ Creating the Cluster Configuration File on a Local System”
Section 5.1.2, “ Viewing the Current Cluster Configuration”
Section 5.1.3, “ Specifying ricci Passwords with the ccs Command”
Section 5.1.4, “ Modifying Cluster Configuration Components”
5.1.1. Creat ing t he Clust er Configurat ion File on a Local Syst em
Using the ccs command, you can create a cluster configuration file on a cluster node, or you can
create a cluster configuration file on a local file system and then send that file to a host in a cluster.
This allows you to work on a file from a local machine, where you can maintain it under version
control or otherwise tag the file according to your needs. Using the ccs command does not require
root privilege.
When you create and edit a cluster configuration file on a cluster node with the ccs command, you
use the -h option to specify the name of the host. This creates and edits the
/etc/cl uster/cl uster.co nf file on the host:
ccs -h host [options]
To create and edit a cluster configuration file on a local system, use the -f option of the ccs
command to specify the name of the configuration file when you perform a cluster operation. You can
name this file anything you want.
ccs -f file [options]
As of Red Hat Enterprise Linux 6.6, if you do not specify the -h or the -f parameter of the ccs
command, the ccs will attempt to connect to the localhost. This is the equivalent of specifying -h
localhost.
After you have created the file locally you can send it to a cluster node using the --setconf option
of the ccs command. On a host machine in a cluster, the file you send will be named cl uster. co nf
and it will be placed in the /etc/cl uster directory.
ccs -h host -f file --setconf
For information on using the --setco nf option of the ccs command, see Section 5.15,
“ Propagating the Configuration File to the Cluster Nodes” .
Red Hat Ent erprise Linux 6 Clust er Administ rat ion
68