lvchange command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
lvchange: command not found
or when using sudo you get the following error message
sudo: lvchange: command not found
Solutions to lvchange: command not found
How To Fix lvchange: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu lvchange 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 lvchange command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.