Logical Volume Manager (LVM) is used on Linux to manage hard drives and other storage devices. As the name implies, it can sort raw storage into logical volumes, making it easy to configure and use.
In this guide, you’ll learn how LVM works on Linux systems. There’s no better way to learn about LVM than simply running through an example, which is exactly what we’ll do in the steps below. LVM works the same on any Linux distribution, so you can use any of the commands below on your own system.
Follow along with us as we use LVM to create partitions, physical volumes, a virtual group, logical volumes, and filesystems on a hard disk. We’ll also show how to mount, extend, and remove our newly created logical volumes. By the end of this tutorial, you’ll have a full understanding of how to use LVM and apply your own configurations.
In this tutorial you will learn:
- How to install LVM on major Linux distros
- How to create partitions
- How to create physical volumes
- How to create a virtual group
- How to create logical volumes
- How to create a filesystem on logical volumes
- How to edit fstab to automatically mount partitions
- How to mount logical volumes
- How to extend a logical volume
- How to remove a logical volume
Logical Volume Manager – Tutorial Scenario