dhodovsk / source-git / pacemaker

Forked from source-git/pacemaker 3 years ago
Clone

Blame doc/Pacemaker_Administration/en-US/Ch-Cluster.txt

rpm-build 3ee90c
:compat-mode: legacy
rpm-build 3ee90c
= The Cluster Layer =
rpm-build 3ee90c
rpm-build 3ee90c
== Pacemaker and the Cluster Layer ==
rpm-build 3ee90c
rpm-build 3ee90c
Pacemaker utilizes an underlying cluster layer for two purposes:
rpm-build 3ee90c
rpm-build 3ee90c
* obtaining quorum
rpm-build 3ee90c
* messaging between nodes
rpm-build 3ee90c
rpm-build 3ee90c
Currently, only Corosync 2 and later is supported for this layer.
rpm-build 3ee90c
rpm-build 3ee90c
== Managing Nodes in a Corosync-Based Cluster ==
rpm-build 3ee90c
rpm-build 3ee90c
=== Adding a New Corosync Node ===
rpm-build 3ee90c
rpm-build 3ee90c
indexterm:[Corosync,Add Cluster Node]
rpm-build 3ee90c
indexterm:[Add Cluster Node,Corosync]
rpm-build 3ee90c
rpm-build 3ee90c
To add a new node:
rpm-build 3ee90c
rpm-build 3ee90c
. Install Corosync and Pacemaker on the new host.
rpm-build 3ee90c
. Copy +/etc/corosync/corosync.conf+ and +/etc/corosync/authkey+ (if it exists)
rpm-build 3ee90c
  from an existing node. You may need to modify the *mcastaddr* option to match
rpm-build 3ee90c
  the new node's IP address.
rpm-build 3ee90c
. Start the cluster software on the new host. If a log message containing
rpm-build 3ee90c
  "Invalid digest" appears from Corosync, the keys are not consistent between
rpm-build 3ee90c
  the machines.
rpm-build 3ee90c
rpm-build 3ee90c
=== Removing a Corosync Node ===
rpm-build 3ee90c
rpm-build 3ee90c
indexterm:[Corosync,Remove Cluster Node]
rpm-build 3ee90c
indexterm:[Remove Cluster Node,Corosync]
rpm-build 3ee90c
rpm-build 3ee90c
Because the messaging and membership layers are the authoritative
rpm-build 3ee90c
source for cluster nodes, deleting them from the CIB is not a complete
rpm-build 3ee90c
solution.  First, one must arrange for corosync to forget about the
rpm-build 3ee90c
node (*pcmk-1* in the example below).
rpm-build 3ee90c
rpm-build 3ee90c
. Stop the cluster on the host to be removed. How to do this will vary with
rpm-build 3ee90c
  your operating system and installed versions of cluster software, for example,
rpm-build 3ee90c
  `pcs cluster stop` if you are using pcs for cluster management.
rpm-build 3ee90c
. From one of the remaining active cluster nodes, tell Pacemaker to forget
rpm-build 3ee90c
  about the removed host, which will also delete the node from the CIB:
rpm-build 3ee90c
+
rpm-build 3ee90c
----
rpm-build 3ee90c
# crm_node -R pcmk-1
rpm-build 3ee90c
----
rpm-build 3ee90c
rpm-build 3ee90c
=== Replacing a Corosync Node ===
rpm-build 3ee90c
rpm-build 3ee90c
indexterm:[Corosync,Replace Cluster Node]
rpm-build 3ee90c
indexterm:[Replace Cluster Node,Corosync]
rpm-build 3ee90c
rpm-build 3ee90c
To replace an existing cluster node:
rpm-build 3ee90c
rpm-build 3ee90c
. Make sure the old node is completely stopped.
rpm-build 3ee90c
. Give the new machine the same hostname and IP address as the old one.
rpm-build 3ee90c
. Follow the procedure above for adding a node.