vgdisplay command not found

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

Introduction

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

vgdisplay: command not found

or when using sudo you get the following error message

sudo: vgdisplay: command not found

Solutions to vgdisplay: command not found

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

In Ubuntu vgdisplay is provided by lvm2 package.

lvm2 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.

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

sudo apt-get -y install lvm2

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

You can also use apt command to install lvm2.

sudo apt -y install lvm2

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

sudo aptitude install lvm2

Summary

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