Logical Volume Manager (LVM) abstracts data storage away from the physical hardware, which lets us configure the partitions on one or more physical drives to act as one logical device. We also have the freedom to later add or remove physical partitions and grow or shrink the logical device. This recipe show's you how to create a new LVM group and a logical device from the group's storage.
This recipe requires a working CentOS system and elevated privileges. It assumes that at least two new disks have been installed (identified as /dev/sdb
and /dev/sdc
) and we will partition and configure them.
Perform these steps to set up a new LVM group and create a volume: