lvmlockctl command not found

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

Introduction

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

lvmlockctl: command not found

or when using sudo you get the following error message

sudo: lvmlockctl: command not found

Solutions to lvmlockctl: command not found

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

In Ubuntu lvmlockctl is provided by lvm2-lockd package.

lvm2-lockd is:

This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and disk subsystems by grouping arbitrary disks into volume groups. The total capacity of volume groups can be allocated to logical volumes, which are accessed as regular block devices.

LVM commands use lvmlockd to coordinate access to shared storage.

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

sudo apt-get -y install lvm2-lockd

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

You can also use apt command to install lvm2-lockd.

sudo apt -y install lvm2-lockd

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

sudo aptitude install lvm2-lockd

Summary

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