dlm_stonith command not found

In this troubleshooting guide we learn how to fix dlm_stonith command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

dlm_stonith: command not found

or when using sudo you get the following error message

sudo: dlm_stonith: command not found

Solutions to dlm_stonith: command not found

How To Fix dlm_stonith: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dlm_stonith is provided by dlm-controld package.

dlm-controld is:

DLM is a symmetric general-purpose distributed lock manager. The lock manager itself is a kernel module.

This package contains the control daemon and utility.

To fix this problem, we can install more using the command below.

sudo apt-get -y install dlm-controld

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install dlm-controld.

sudo apt -y install dlm-controld

Or if you have aptitude installed you can use the following command.

sudo aptitude install dlm-controld

Summary

In this tutorial we learn how to fix dlm_stonith command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.