Configuring Logical Volume Management (LVM) Using RHEL 8

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

*This course is not approved or sponsored by Red Hat.*

Logical Volume Management provides a framework to advance storage capabilities beyond the basic `filesystem/partition/disk` relationship. In this lesson, we will create and remove physical volumes on RHEL 8, assign physical volumes to volume groups, and create and delete logical volumes. We will also examine how to use LVM for swap.

**Red Hat Exam Requirements Covered:**
– Create and remove physical volumes.
– Assign physical volumes to volume groups.
– Create and delete logical volumes.
– Add new partitions and logical volumes and swap to a system non-destructively.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Partition Disks and Create Physical Volumes
  1. Display your phyical disk layout.
  2. Partition and set the type of your additional disks.
  3. Create LVM physical volumes out of the additional disks.
Create and Extend a Volume Group and a Logical Volume
  1. Create a volume group.
  2. Extend the volume group.
  3. Create a logical volume.
  4. Extend the logical volume.
Format, Mount, and Extend the Logical Volume and File System
  1. Format the logical volume with a file system.
  2. Make a mount point and mount the file system.
  3. Extend the volume group.
  4. Resize the logical volume and file system.
Reduce a Logical Volume and File System and Remove and Wipe a Physical Volume
  1. Reduce the file system and logical volume size.
  2. Remove a physical volume from the volume group.
  3. Wipe the physical volume back to a simple partition.
  4. Confirm the disk and partition state.

Additional Resources

You are a sys admin of a server with a disk scenario that allows a data volume to be created, extended by adding more disks, and possibly reduced in size to remove and replace a bad disk, all without having to resort to the horrible "backup, format, restore" method of growing and shrinking file system sizes.

You'll be going through the set of steps to create the underlying physical volumes, creating a volume group out of those, creating a logical volume on top of the volume group, growing the volume group and logical volume, and resizing the file system to match the new size.

You'll then resize the file system down along with the logical volume. Lastly, you'll remove and wipe a disk from the volume group and verify all of this works properly.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?