How To Install drbd-utils on CentOS 7

In this tutorial we learn how to install drbd-utils on CentOS 7. drbd-utils is Management utilities for DRBD

Introduction

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

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 7. 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 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install drbd-utils using yum by running the following command:

sudo yum -y install drbd-utils

Install drbd-utils on CentOS 7 Using dnf

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

sudo dnf makecache

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

sudo dnf -y install drbd-utils

How To Uninstall drbd-utils on CentOS 7

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

sudo dnf remove drbd-utils

drbd-utils Package Contents on CentOS 7

/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/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-9.17.0
/usr/share/doc/drbd-utils-9.17.0/ChangeLog
/usr/share/doc/drbd-utils-9.17.0/drbd.conf.example
/usr/share/licenses/drbd-utils-9.17.0
/usr/share/licenses/drbd-utils-9.17.0/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 7 using yum and dnf.