How To Install dlm on Rocky Linux 8

In this tutorial we learn how to install dlm on Rocky Linux 8. dlm is dlm control daemon and tool

Introduction

In this tutorial we learn how to install dlm on Rocky Linux 8.

What is dlm

The kernel dlm requires a user daemon to control membership.

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

Install dlm on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install dlm

Install dlm on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install dlm

How To Uninstall dlm on Rocky Linux 8

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

sudo dnf remove dlm

dlm Package Contents on Rocky Linux 8

/etc/sysconfig/dlm
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/1fcbc051b66a8c89b740aa386f4ca2b4211324
/usr/lib/.build-id/6b
/usr/lib/.build-id/6b/e908e7fafdb244c6b843f3ba1e36235a42733a
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/0492f896aca2e39e8c015887261b52c3eb2f96
/usr/lib/systemd/system/dlm.service
/usr/sbin/dlm_controld
/usr/sbin/dlm_stonith
/usr/sbin/dlm_tool
/usr/share/doc/dlm
/usr/share/doc/dlm/README.license
/usr/share/man/man3/dlm_cleanup.3.gz
/usr/share/man/man3/dlm_close_lockspace.3.gz
/usr/share/man/man3/dlm_create_lockspace.3.gz
/usr/share/man/man3/dlm_dispatch.3.gz
/usr/share/man/man3/dlm_get_fd.3.gz
/usr/share/man/man3/dlm_lock.3.gz
/usr/share/man/man3/dlm_lock_wait.3.gz
/usr/share/man/man3/dlm_ls_lock.3.gz
/usr/share/man/man3/dlm_ls_lock_wait.3.gz
/usr/share/man/man3/dlm_ls_lockx.3.gz
/usr/share/man/man3/dlm_ls_pthread_init.3.gz
/usr/share/man/man3/dlm_ls_unlock.3.gz
/usr/share/man/man3/dlm_ls_unlock_wait.3.gz
/usr/share/man/man3/dlm_new_lockspace.3.gz
/usr/share/man/man3/dlm_open_lockspace.3.gz
/usr/share/man/man3/dlm_pthread_init.3.gz
/usr/share/man/man3/dlm_release_lockspace.3.gz
/usr/share/man/man3/dlm_unlock.3.gz
/usr/share/man/man3/dlm_unlock_wait.3.gz
/usr/share/man/man3/libdlm.3.gz
/usr/share/man/man5/dlm.conf.5.gz
/usr/share/man/man8/dlm_controld.8.gz
/usr/share/man/man8/dlm_stonith.8.gz
/usr/share/man/man8/dlm_tool.8.gz

References

Summary

In this tutorial we learn how to install dlm on Rocky Linux 8 using yum and dnf.