How To Install pacemaker on CentOS 7

In this tutorial we learn how to install pacemaker on CentOS 7. pacemaker is Scalable High-Availability cluster resource manager

Introduction

In this tutorial we learn how to install pacemaker on CentOS 7.

What is pacemaker

Pacemaker is an advanced, scalable High-Availability cluster resource manager for Corosync, CMAN and/or Linux-HA. It supports more than 16 node clusters with significant capabilities for managing resources and dependencies. It will run scripts at initialization, when machines go up or down, when related resources fail and can be configured to periodically check resource health. Available rpmbuild rebuild options –with(out) profiling

We can use yum or dnf to install pacemaker on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install pacemaker.

Install pacemaker on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install pacemaker using yum by running the following command:

sudo yum -y install pacemaker

Install pacemaker on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install pacemaker using dnf by running the following command:

sudo dnf -y install pacemaker

How To Uninstall pacemaker on CentOS 7

To uninstall only the pacemaker package we can use the following command:

sudo dnf remove pacemaker

References

Summary

In this tutorial we learn how to install pacemaker on CentOS 7 using yum and dnf.