stonith command not found

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

Introduction

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

stonith: command not found

or when using sudo you get the following error message

sudo: stonith: command not found

Solutions to stonith: command not found

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

In Ubuntu stonith is provided by cluster-glue package.

cluster-glue is:

This package contains node fencing plugins, an error reporting utility, and other reusable cluster components from the Linux HA project.

If you are using the pacemaker/corosync HA cluster stack, you probably want to install this package.

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

sudo apt-get -y install cluster-glue

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

You can also use apt command to install cluster-glue.

sudo apt -y install cluster-glue

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

sudo aptitude install cluster-glue

Summary

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