
LVM stands for Logical Volume Manager. 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 those disks or storage devices.
Why to use LVM:
Flexible Capacity
Easily Resize Storage While Online
Online Data Relocation
Convenient Device Naming
Disk Striping
Data Redundancy / Data Mirroring
Snapshots
The logical volume manager introduces extra layers of abstraction between the storage devices and the file systems placed on those storage devices.
In this lesson you will learn about these layers of abstraction:
Physical volumes.
Volume Groups.
Logical Volumes.
In this lesson you will learn the process for creating Physical Volumes (PVs), Volume Groups (VGs), and Logical Volumes (LVs)
At a high level, the process for creating a logical volume is:
1. Create one or more physical volumes.
2. Create a volume group from those one or more physical volumes.
3. Finally, you can create one or more logical volumes from the volume group.
In this lesson you will learn how to extend Volume Groups (VGs) and Logical Volumes (LVs) with the vgextend and lvextend commands. In addition, you'll learn about Logical Extents and Physical Extents.
In this lesson you will learn how to create mirrored logical volumes.
In this lesson you will learn how to delete logical volumes, volume groups, and physical volumes. Commands covered include:
umount
lvremove
vgreduce
pvremove
vgremove
It is easy to move data from one storage device to another with LVM. In this lesson, you'll learn exactly how to do that with the pvmove command.
In this course 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 configure 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 partitions. 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 lvextend. When you needed to add more capacity to a volume group, you learned how to do so with the vgextend command.
You also learned how to create mirrored logical volumes by use the -m option to the lvcreate command.
Finally, you learned how to remove logical volumes with the lvremove command, remove physical volumes from volume groups with the vgreduce command, remove volume groups with vgremove, and remove physical volumes with the pvremove command.
The contents of this lecture are so secret I'm not even allowed to describe it! Open, if you dare.
In this course on the Linux Logical Volume Manager you'll learn:
This course is perfect for anyone who wants to quickly get up to speed on the Linux Logical Volume Manager.
Also, this course applies to any Linux distribution as the Linux LVM commands are the same on all Linux distros.
This course also includes a 14-page LVM Workbook that contains all the examples and commands demonstrated in the course. You can use it as your personal LVM cheat sheet.
This course was created by Jason Cannon. He's taught thousands of people just like you, valuable, in-demand Linux skills. He's created many highly-rated Linux courses and even written several best-selling books on the subject, too. In this course, he shares the most important things that allow you to quickly understand and use LVM.
If you're ready to finally tackle LVM, enroll now!