Pacemaker
Pacemaker provides a framework to manage the availability of resources. It's essentially the core component on a cluster that allows you to manage resource locations etc.
Installing
apt-get install pacemaker pcs resource-agents
yum install pacemaker pcs resource-agents
Configuration
Add all hosts related to the cluster to /etc/hosts (including the host you're on, also remove any reference to localhost/ 127.0.0.1)
Set password for hacluster user:
passwd hacluster
authorise the nodes to be included in the cluster:
pcs host auth node01.srv.world node02.srv.world
start services for cluster:
pcs cluster start --all
enable services:
pcs cluster enable --all
Verify installation is working and nodes are connected:
pcs cluster status
pcs status corosync
Deleting a cluster installation
pcs cluster stop --all
pcs cluster destroy --all
No Comments