How To Install dlm on Fedora 34

dlm is Kernel Distributed Lock Manager control daemon and tool

Introduction

In this tutorial we learn how to install dlm on Fedora 34.

What is dlm

The kernel dlm requires a user daemon to control membership.

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

Install dlm on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install dlm

Install dlm on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove dlm

dlm Package Contents on Fedora 34

/etc/sysconfig/dlm
/usr/lib/.build-id
/usr/lib/.build-id/12
/usr/lib/.build-id/12/c6c69aa69daa5d3af799f8bc962eae34357c9b
/usr/lib/.build-id/33
/usr/lib/.build-id/33/5e6c093303dbc2878ebc5454038455916e3aeb
/usr/lib/.build-id/80
/usr/lib/.build-id/80/5cbf24ad0da0969eb2030a08ed3be0f45752e2
/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 Fedora 34 using yum and dnf.