How To Install dlm.x86_64 on Amazon Linux 2

In this tutorial we learn how to install dlm.x86_64 in Amazon Linux 2. dlm.x86_64 is dlm control daemon and tool

Introduction

In this tutorial we learn how to install dlm.x86_64 on Amazon Linux 2.

What is dlm.x86_64

The kernel dlm requires a user daemon to control membership.

We can use yum to install dlm.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install dlm.x86_64.

Install dlm.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install dlm.x86_64

How To Uninstall dlm.x86_64 on Amazon Linux 2

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

sudo yum remove dlm.x86_64

dlm.x86_64 Package Contents on Amazon Linux 2

/etc/sysconfig/dlm
/usr/lib/systemd/system/dlm.service
/usr/sbin/dlm_controld
/usr/sbin/dlm_stonith
/usr/sbin/dlm_tool
/usr/share/doc/dlm-4.0.7
/usr/share/doc/dlm-4.0.7/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.x86_64 on Amazon Linux 2 using yum.