How To Install drbd-utils on CentOS 8

drbd-utils is Management utilities for DRBD

Introduction

In this tutorial we learn how to install drbd-utils on CentOS 8.

What is drbd-utils

DRBD mirrors a block device over the network to another machine. Think of it as networked raid 1. It is a building block for setting up high availability (HA) clusters. This packages includes the DRBD administration tools.

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

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

sudo dnf -y install drbd-utils

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

sudo yum -y install drbd-utils

How To Uninstall drbd-utils on CentOS 8

To uninstall only the drbd-utils package we can use the following command:

sudo dnf remove drbd-utils

drbd-utils Package Contents on CentOS 8

/etc/drbd.conf
/etc/drbd.d
/etc/drbd.d/global_common.conf
/etc/multipath/conf.d/drbd.conf
/lib/drbd/drbd
/lib/drbd/drbdadm-83
/lib/drbd/drbdadm-84
/lib/drbd/drbdsetup-83
/lib/drbd/drbdsetup-84
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/5fbf091558bf07389b44fa390abab348c778e6
/usr/lib/.build-id/12
/usr/lib/.build-id/12/170d9dd632cab221f9d4a3a71ff3b065db9013
/usr/lib/.build-id/28
/usr/lib/.build-id/28/218165f9dd32ab6f938eb213e0f44f3e56ebda
/usr/lib/.build-id/31
/usr/lib/.build-id/31/64b7547f6b69e0ab1613b3fa46f18cef122e84
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/51c75957ffc15c577b27f193533fdf1417b9db
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/44b5d7a32596861b9c0a12d8ad7fe78d768f7d
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/ce1e1b0fc483befeb24c2d5c6310dd0b09883c
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/642b151d8a1a2f1f2b10ff70754d1275c6f102
/usr/lib/drbd/crm-fence-peer.9.sh
/usr/lib/drbd/crm-fence-peer.sh
/usr/lib/drbd/crm-unfence-peer.9.sh
/usr/lib/drbd/crm-unfence-peer.sh
/usr/lib/drbd/notify-emergency-reboot.sh
/usr/lib/drbd/notify-emergency-shutdown.sh
/usr/lib/drbd/notify-io-error.sh
/usr/lib/drbd/notify-out-of-sync.sh
/usr/lib/drbd/notify-pri-lost-after-sb.sh
/usr/lib/drbd/notify-pri-lost.sh
/usr/lib/drbd/notify-pri-on-incon-degr.sh
/usr/lib/drbd/notify-split-brain.sh
/usr/lib/drbd/notify.sh
/usr/lib/drbd/outdate-peer.sh
/usr/lib/drbd/rhcs_fence
/usr/lib/drbd/snapshot-resync-target-lvm.sh
/usr/lib/drbd/stonith_admin-fence-peer.sh
/usr/lib/drbd/unsnapshot-resync-target-lvm.sh
/usr/lib/systemd/system/drbd.service
/usr/lib/tmpfiles.d/drbd.conf
/usr/sbin/drbdadm
/usr/sbin/drbdmeta
/usr/sbin/drbdmon
/usr/sbin/drbdsetup
/usr/share/doc/drbd-utils
/usr/share/doc/drbd-utils/ChangeLog
/usr/share/doc/drbd-utils/drbd.conf.example
/usr/share/licenses/drbd-utils
/usr/share/licenses/drbd-utils/COPYING
/usr/share/man/ja/man5/drbd.conf-8.4.5.gz
/usr/share/man/ja/man5/drbd.conf-9.0.5.gz
/usr/share/man/ja/man5/drbd.conf.5.gz
/usr/share/man/ja/man8/drbd-8.4.8.gz
/usr/share/man/ja/man8/drbd-9.0.8.gz
/usr/share/man/ja/man8/drbd.8.gz
/usr/share/man/ja/man8/drbdadm-8.4.8.gz
/usr/share/man/ja/man8/drbdadm-9.0.8.gz
/usr/share/man/ja/man8/drbdadm.8.gz
/usr/share/man/ja/man8/drbddisk-8.4.8.gz
/usr/share/man/ja/man8/drbdmeta-8.4.8.gz
/usr/share/man/ja/man8/drbdmeta-9.0.8.gz
/usr/share/man/ja/man8/drbdmeta.8.gz
/usr/share/man/ja/man8/drbdmon-9.0.8.gz
/usr/share/man/ja/man8/drbdmon.8.gz
/usr/share/man/ja/man8/drbdsetup-8.4.8.gz
/usr/share/man/ja/man8/drbdsetup-9.0.8.gz
/usr/share/man/ja/man8/drbdsetup.8.gz
/usr/share/man/man5/drbd.conf-8.3.5.gz
/usr/share/man/man5/drbd.conf-8.4.5.gz
/usr/share/man/man5/drbd.conf-9.0.5.gz
/usr/share/man/man5/drbd.conf.5.gz
/usr/share/man/man8/drbd-8.3.8.gz
/usr/share/man/man8/drbd-8.4.8.gz
/usr/share/man/man8/drbd-9.0.8.gz
/usr/share/man/man8/drbd.8.gz
/usr/share/man/man8/drbdadm-8.3.8.gz
/usr/share/man/man8/drbdadm-8.4.8.gz
/usr/share/man/man8/drbdadm-9.0.8.gz
/usr/share/man/man8/drbdadm.8.gz
/usr/share/man/man8/drbddisk-8.3.8.gz
/usr/share/man/man8/drbddisk-8.4.8.gz
/usr/share/man/man8/drbdmeta-8.3.8.gz
/usr/share/man/man8/drbdmeta-8.4.8.gz
/usr/share/man/man8/drbdmeta-9.0.8.gz
/usr/share/man/man8/drbdmeta.8.gz
/usr/share/man/man8/drbdmon-9.0.8.gz
/usr/share/man/man8/drbdmon.8.gz
/usr/share/man/man8/drbdsetup-8.3.8.gz
/usr/share/man/man8/drbdsetup-8.4.8.gz
/usr/share/man/man8/drbdsetup-9.0.8.gz
/usr/share/man/man8/drbdsetup.8.gz
/var/lib/drbd

References

Summary

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