Creating a new LVM volume

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.

Getting ready

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.

How to do it...

Perform these steps to set up a new LVM group and create a volume:

  1. Use lsblk to identify the new storage ...

Get CentOS 7 Server Deployment Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.