From the course: Linux Foundation Certified System Administrator (LFCS) Cert Prep

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Manage and configure LVM storage

Manage and configure LVM storage

- [Instructor] To understand one of the main advantages of LVM, the Logical Volume Manager, let's first take a look at a common problem. Imagine we have this set up. One partition at the beginning of the disk, one in the middle, and some free space at the end, it's unpartitioned space. We want to make partition two bigger, we can easily do so, we just resize it and expand it to the right, since it has all that free space available next to it. But what if we want to grow partition one? Well, this is a problem. There's no free space at the left or the right. We can't resize it. But with LVM, this is easy to solve. Instead of directly partitioning the disk, we first add it into LVM. Now imagine we have the same setup, but in an LVM managed disk. If we want to grow the first partition, the following will happen. The Logical Volume Manager searches for some free space. It sees that there's some space at the end of the disk, so it just makes the first partition use the first part of the…

Contents