How To Install corosync on CentOS 8

corosync is The Corosync Cluster Engine and Application Programming Interfaces

Introduction

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

What is corosync

This package contains the Corosync Cluster Engine Executive, several default APIs and libraries, default configuration files, and an init script.

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

Install corosync 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 corosync using dnf by running the following command:

sudo dnf -y install corosync

Install corosync 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 corosync using yum by running the following command:

sudo yum -y install corosync

How To Uninstall corosync on CentOS 8

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

sudo dnf remove corosync

corosync Package Contents on CentOS 8

/etc/corosync
/etc/corosync/corosync.conf.example
/etc/corosync/uidgid.d
/etc/dbus-1/system.d/corosync-signals.conf
/etc/logrotate.d/corosync
/etc/sysconfig/corosync
/etc/sysconfig/corosync-notifyd
/usr/bin/corosync-blackbox
/usr/bin/corosync-xmlproc
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/4cb0515d9066499b1d0c4a0b40d6989aa20d3a
/usr/lib/.build-id/40
/usr/lib/.build-id/40/79d0ffb14751aca716c5875a47195e58563b91
/usr/lib/.build-id/44
/usr/lib/.build-id/44/895981ff253bb434f12e02d46935d2ae369e8b
/usr/lib/.build-id/48
/usr/lib/.build-id/48/d6e44341e6cc4c4b911ea78a3dd3d2f94b8b0d
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/c503e6a87f7b9b506f52c19c19a9c824147d52
/usr/lib/.build-id/78
/usr/lib/.build-id/78/f29bce7241eb9b49c8efdabbf6fb07d514726c
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/f73c688feffcd87832857a17248f568331f919
/usr/lib/systemd/system/corosync-notifyd.service
/usr/lib/systemd/system/corosync.service
/usr/sbin/corosync
/usr/sbin/corosync-cfgtool
/usr/sbin/corosync-cmapctl
/usr/sbin/corosync-cpgtool
/usr/sbin/corosync-keygen
/usr/sbin/corosync-notifyd
/usr/sbin/corosync-quorumtool
/usr/share/corosync
/usr/share/corosync/xml2conf.xsl
/usr/share/doc/corosync
/usr/share/doc/corosync/LICENSE
/usr/share/man/man5/corosync.conf.5.gz
/usr/share/man/man5/corosync.xml.5.gz
/usr/share/man/man5/votequorum.5.gz
/usr/share/man/man7/cmap_keys.7.gz
/usr/share/man/man7/corosync_overview.7.gz
/usr/share/man/man8/corosync-blackbox.8.gz
/usr/share/man/man8/corosync-cfgtool.8.gz
/usr/share/man/man8/corosync-cmapctl.8.gz
/usr/share/man/man8/corosync-cpgtool.8.gz
/usr/share/man/man8/corosync-keygen.8.gz
/usr/share/man/man8/corosync-notifyd.8.gz
/usr/share/man/man8/corosync-quorumtool.8.gz
/usr/share/man/man8/corosync-xmlproc.8.gz
/usr/share/man/man8/corosync.8.gz
/usr/share/snmp/mibs/COROSYNC-MIB.txt
/var/lib/corosync
/var/log/cluster
/etc/corosync
/etc/corosync/corosync.conf.example
/etc/corosync/uidgid.d
/etc/dbus-1/system.d/corosync-signals.conf
/etc/logrotate.d/corosync
/etc/sysconfig/corosync
/etc/sysconfig/corosync-notifyd
/usr/bin/corosync-blackbox
/usr/bin/corosync-xmlproc
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/b1beeaaa334a2e10e68958a06f98173e541351
/usr/lib/.build-id/12
/usr/lib/.build-id/12/7f5c85672c40ef69bcc0552d60ac6077a0a272
/usr/lib/.build-id/57
/usr/lib/.build-id/57/ec2daaed1093a0042f9b72b0f664a9a5f62961
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/0cd10b0f7cfaff45d5819c6206c7ad2f4ea415
/usr/lib/.build-id/81
/usr/lib/.build-id/81/2e62ae79bcb4948b3a50293b47d218ed27dde5
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/8233e42a81541ed210bf2c703fbbe6e19e776c
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/b0175e32b2e3de1eec28d58a6017837b18621b
/usr/lib/systemd/system/corosync-notifyd.service
/usr/lib/systemd/system/corosync.service
/usr/sbin/corosync
/usr/sbin/corosync-cfgtool
/usr/sbin/corosync-cmapctl
/usr/sbin/corosync-cpgtool
/usr/sbin/corosync-keygen
/usr/sbin/corosync-notifyd
/usr/sbin/corosync-quorumtool
/usr/share/corosync
/usr/share/corosync/xml2conf.xsl
/usr/share/doc/corosync
/usr/share/doc/corosync/LICENSE
/usr/share/man/man5/corosync.conf.5.gz
/usr/share/man/man5/corosync.xml.5.gz
/usr/share/man/man5/votequorum.5.gz
/usr/share/man/man7/cmap_keys.7.gz
/usr/share/man/man7/corosync_overview.7.gz
/usr/share/man/man8/corosync-blackbox.8.gz
/usr/share/man/man8/corosync-cfgtool.8.gz
/usr/share/man/man8/corosync-cmapctl.8.gz
/usr/share/man/man8/corosync-cpgtool.8.gz
/usr/share/man/man8/corosync-keygen.8.gz
/usr/share/man/man8/corosync-notifyd.8.gz
/usr/share/man/man8/corosync-quorumtool.8.gz
/usr/share/man/man8/corosync-xmlproc.8.gz
/usr/share/man/man8/corosync.8.gz
/usr/share/snmp/mibs/COROSYNC-MIB.txt
/var/lib/corosync
/var/log/cluster

References

Summary

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