Create LVMs using parted
Logical Volume Groups
A Logical Volume Group (LVM) is a way to aggregate multiple physical disks into a single, contiguous space, which can then be divided into logical volumes. This abstraction allows for more flexible disk management by enabling dynamic resizing of file systems, making it easier to expand or contract the available space as needed.
To learn more about LVMs and how to install it, see LVMs.
Creating LVMs using parted
In this section, we'll go through the process of creating Logical Volume Managers (LVMs) using parted. The steps are similar to those covered earlier, but it's helpful to see the complete process in one place.
Lab Setup
We'll be working with /dev/xvdb, which has a total of 10GB of memory and currently only has two partitions created on it.
Create partitions
Using parted, we'll create another partition on it:
[root@tst-rhel ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 50G 0 disk