Understanding LVM
LVM uses three layers to manage the storage devices in our systems. These layers are as follows:
- Physical Volumes (PV): The first layer of LVM . Assigned to the block devices directly. A physical volume can be either a partition on a disk, or a full raw disk itself.
- Volume Groups (VG): The second layer of LVM. It groups the physical volumes to aggregate space. This is an intermediate layer and not very visible, but its role is very important.
- Logical Volumes (LV): The third layer of LVM. It distributes the space that the volume groups aggregate.
Let's see the example that we want to implement using the two newly added disks:
Let's explain this example diagram to understand all the layers:
- We have two disks, which, in the diagram, are Disk1 and Disk2.
- Disk1 is partitioned into two partitions, Part1 and Part2.
- Disk2 is not partitioned.
- There...