How To Install pacemaker on CentOS 8

pacemaker is Scalable High-Availability cluster resource manager

Introduction

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

What is pacemaker

Pacemaker is an advanced, scalable High-Availability cluster resource manager. 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 8. In this tutorial we discuss both methods but you only need to choose one of method to install pacemaker.

Install pacemaker on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install pacemaker

Install pacemaker on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install pacemaker

How To Uninstall pacemaker on CentOS 8

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

sudo dnf remove pacemaker

pacemaker Package Contents on CentOS 8

/etc/sysconfig/pacemaker
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/ab6303bf9edc75ce925aa7f9c19a7aa1b81ce8
/usr/lib/.build-id/16
/usr/lib/.build-id/16/29c2b48c148f82ff08bdaebbded3069d77cc9e
/usr/lib/.build-id/31
/usr/lib/.build-id/31/b8df0eb635c66f113a9b8d5362942a08e5344c
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/1af9af06abd731c096d11acd4ceb4450a877c2
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/1381a8ee6e0e748a6e33ec63ece7971fdf71a2
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/618a3a2bffd3370d23134f922d2ec0f7b7084e
/usr/lib/.build-id/87
/usr/lib/.build-id/87/ff0ee92bc770d7207d1d28743ce1294420d313
/usr/lib/.build-id/89
/usr/lib/.build-id/89/69fce34654a6d92634e37938e6627d3395a9cd
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/903c5150b90dda98f13a399296b81d2756419c
/usr/lib/.build-id/df
/usr/lib/.build-id/df/fd07b0c55ddcac514d9b6beb2c2e1489d5336a
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/27f47c339377203ed11432cd23a2cbd3e30a7b
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/d3b94da26e78d78608ab3f727955088eefd0fb
/usr/lib/ocf/resource.d/pacemaker/controld
/usr/lib/ocf/resource.d/pacemaker/remote
/usr/lib/systemd/system/pacemaker.service
/usr/libexec/pacemaker/attrd
/usr/libexec/pacemaker/cib
/usr/libexec/pacemaker/cibmon
/usr/libexec/pacemaker/crmd
/usr/libexec/pacemaker/cts-exec-helper
/usr/libexec/pacemaker/cts-fence-helper
/usr/libexec/pacemaker/lrmd
/usr/libexec/pacemaker/pacemaker-attrd
/usr/libexec/pacemaker/pacemaker-based
/usr/libexec/pacemaker/pacemaker-controld
/usr/libexec/pacemaker/pacemaker-execd
/usr/libexec/pacemaker/pacemaker-fenced
/usr/libexec/pacemaker/pacemaker-schedulerd
/usr/libexec/pacemaker/pengine
/usr/libexec/pacemaker/stonithd
/usr/sbin/crm_attribute
/usr/sbin/crm_master
/usr/sbin/pacemakerd
/usr/share/doc/pacemaker
/usr/share/doc/pacemaker/COPYING
/usr/share/doc/pacemaker/ChangeLog
/usr/share/licenses/pacemaker
/usr/share/licenses/pacemaker/GPLv2
/usr/share/man/man7/ocf_pacemaker_controld.7.gz
/usr/share/man/man7/ocf_pacemaker_remote.7.gz
/usr/share/man/man7/pacemaker-controld.7.gz
/usr/share/man/man7/pacemaker-fenced.7.gz
/usr/share/man/man7/pacemaker-schedulerd.7.gz
/usr/share/man/man8/crm_attribute.8.gz
/usr/share/man/man8/crm_master.8.gz
/usr/share/man/man8/pacemakerd.8.gz
/usr/share/pacemaker/alerts
/usr/share/pacemaker/alerts/alert_file.sh.sample
/usr/share/pacemaker/alerts/alert_smtp.sh.sample
/usr/share/pacemaker/alerts/alert_snmp.sh.sample
/var/lib/pacemaker/cib
/var/lib/pacemaker/pengine
/etc/sysconfig/pacemaker
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/77ea4a00bc3a0429c3e2e931ffc806fe23b446
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/d755d101dee887319661fd8093a56fff38bd62
/usr/lib/.build-id/4d
/usr/lib/.build-id/4d/b774e0534c666fa73c7abb789d5f2863821341
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/37d1d1f01dab9fe99b66aac61b99f77f1dfd45
/usr/lib/.build-id/66
/usr/lib/.build-id/66/4975b978c50e52fc9ce2d756c2a2a712b3859f
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/77608beb5c53c7148d0bc7909c81cb00a46d86
/usr/lib/.build-id/93
/usr/lib/.build-id/93/c94e165bfa1df79979ad7c86ae7d1c3e8f7f3f
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/bc259c85d62aa021d50e9c6e71201f2226dbfb
/usr/lib/.build-id/af
/usr/lib/.build-id/af/ada15651932f80bd2521c4cddd8d12d6e1f220
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/43a07ea1eeaf976208d8c9ec2063d69a25a8e7
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/2d3252cf7769f8ee8d25ecf5ee0cd4f7d6b29a
/usr/lib/.build-id/cb/d8e9450898b2b114cb0735418e465eaf8b60be
/usr/lib/ocf/resource.d/pacemaker/controld
/usr/lib/ocf/resource.d/pacemaker/remote
/usr/lib/systemd/system/pacemaker.service
/usr/libexec/pacemaker/attrd
/usr/libexec/pacemaker/cib
/usr/libexec/pacemaker/cibmon
/usr/libexec/pacemaker/crmd
/usr/libexec/pacemaker/cts-exec-helper
/usr/libexec/pacemaker/cts-fence-helper
/usr/libexec/pacemaker/lrmd
/usr/libexec/pacemaker/pacemaker-attrd
/usr/libexec/pacemaker/pacemaker-based
/usr/libexec/pacemaker/pacemaker-controld
/usr/libexec/pacemaker/pacemaker-execd
/usr/libexec/pacemaker/pacemaker-fenced
/usr/libexec/pacemaker/pacemaker-schedulerd
/usr/libexec/pacemaker/pengine
/usr/libexec/pacemaker/stonithd
/usr/sbin/crm_attribute
/usr/sbin/crm_master
/usr/sbin/pacemakerd
/usr/share/doc/pacemaker
/usr/share/doc/pacemaker/COPYING
/usr/share/doc/pacemaker/ChangeLog
/usr/share/licenses/pacemaker
/usr/share/licenses/pacemaker/GPLv2
/usr/share/man/man7/ocf_pacemaker_controld.7.gz
/usr/share/man/man7/ocf_pacemaker_remote.7.gz
/usr/share/man/man7/pacemaker-controld.7.gz
/usr/share/man/man7/pacemaker-fenced.7.gz
/usr/share/man/man7/pacemaker-schedulerd.7.gz
/usr/share/man/man8/crm_attribute.8.gz
/usr/share/man/man8/crm_master.8.gz
/usr/share/man/man8/pacemakerd.8.gz
/usr/share/pacemaker/alerts
/usr/share/pacemaker/alerts/alert_file.sh.sample
/usr/share/pacemaker/alerts/alert_smtp.sh.sample
/usr/share/pacemaker/alerts/alert_snmp.sh.sample
/var/lib/pacemaker/cib
/var/lib/pacemaker/pengine

References

Summary

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