The Logical Volume Manager introduces extra layers of abstraction between the disks or storage devices presented to a Linux system and the file systems placed on them. This course explores the service and its components. This course is part of the Linux Administration Bootcamp learning path, designed to get you up and running with Linux.
- Understand what the LVM is and how it works
- Create and remove physical volumes (PVs), volume groups (VGs), and logical volumes (LVs)
- Extend volume groups and extend and mirror logical volumes
- Migrate Data from one storage device to another
- Anyone with basic knowledge of Linux who wants to learn more
- Professionals who want to learn more about Linux to enhance their career prospects
This is an intermediate-level course so some knowledge of Linux is expected. If you're just starting out, then try our Linux Fundamentals course first.
In this lesson you learned that LVM adds layers of abstraction between storage devices and file systems. These layers of abstraction include physical volumes, volume groups, and logical volumes. You also learned how to configure LVM, starting with the pvcreate command to create physical volumes; the vgcreate command to configure volume groups, and the lvcreate command to create logical volumes.
From there you treated the logical volumes like you would any other disk partition. You created a file system on the logical volume and mounted it like any other file system. From there you learned how to extend logical volumes using the lvextend command. When you needed to add more capacity to your volume group, you learned how to do that with the vgextend command.
You also learned how to create mirrored, or logical volumes by using the -n option to the lvcreate command. Finally you learned how to remove logical volumes with the lvremove command, removed physical volumes from volume groups with the vgreduce command, remove volume groups with vgremove, and remove physical volumes with the pvremove command.
Jason is the founder of the Linux Training Academy as well as the author of "Linux for Beginners" and "Command Line Kung Fu." He has over 20 years of professional Linux experience, having worked for industry leaders such as Hewlett-Packard, Xerox, UPS, FireEye, and Amazon.com. Nothing gives him more satisfaction than knowing he has helped thousands of IT professionals level up their careers through his many books and courses.