Questo contenuto non è disponibile nella lingua selezionata.
1.2. Cluster Creation
This procedure creates a Red Hat High Availability Add-On cluster that consists of the nodes
z1.example.com
and z2.example.com
.
- Execute the following command from
z1.example.com
to create the two-node clustermy_cluster
that consists of nodesz1.example.com
andz2.example.com
. This will propagate the cluster configuration files to both nodes in the cluster. This command includes the--start
option, which will start the cluster services on both nodes in the cluster.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enable the cluster services to run on each node in the cluster when the node is booted.
Note
For your particular environment, you may choose to leave the cluster services disabled by skipping this step. This allows you to ensure that if a node goes down, any issues with your cluster or your resources are resolved before the node rejoins the cluster. If you leave the cluster services disabled, you will need to manually start the services when you reboot a node by executing thepcs cluster start
command on that node.pcs cluster enable --all
[root@z1 ~]# pcs cluster enable --all
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You can display the current status of the cluster with the
pcs cluster status
command. Because there may be a slight delay before the cluster is up and running when you start the cluster services with the --start
option of the pcs cluster setup
command, you should ensure that the cluster is up and running before performing any subsequent actions on the cluster and its configuration.