Installation guide
Note
To configure a preferred member, you can create an unrestricted failover domain comprising
only one cluster member. Doing that causes a cluster service to run on that cluster member
primarily (the preferred member), but allows the cluster service to fail over to any of the other
members.
To configure a failover domain, perform the following procedure:
1. To add a failover domain, execute the following command:
ccs -h host --addfailoverdomain name [restricted] [ordered]
[nofailback]
Note
The name should be descriptive enough to distinguish its purpose relative to other
names used in your cluster.
For example, the following command configures a failover domain named exampl e_pri on
no d e-0 1. example. co m that is unrestricted, ordered, and allows failback:
ccs -h node-01.example.com --addfailoverdomain example_pri ordered
2. To add a node to a failover domain, execute the following command:
ccs -h host --addfailoverdomainnode failoverdomain node priority
For example, to configure the failover domain example_pri in the configuration file on
no d e-0 1. example. co m so that it contains no d e-0 1. example. co m with a priority of 1,
no d e-0 2. example. co m with a priority of 2, and no d e-0 3. exampl e. co m with a priority
of 3, execute the following commands:
ccs -h node-01.example.com --addfailoverdomainnode example_pri
node-01.example.com 1
ccs -h node-01.example.com --addfailoverdomainnode example_pri
node-02.example.com 2
ccs -h node-01.example.com --addfailoverdomainnode example_pri
node-03.example.com 3
You can list all of the failover domains and failover domain nodes configured in a cluster with the
following command:
ccs -h host --lsfailoverdomain
To remove a failover domain, execute the following command:
ccs -h host --rmfailoverdomain name
To remove a node from a failover domain, execute the following command:
Chapt er 5. Configuring Red Hat Hig h Availabilit y Add- O n Wit h t he ccs Command
89