`
LVM stands for Logical Volume Manager.and it is another way to manager your disks.
In the video we discuss the basics of LVM an dcreate an LVM physical Volume, an LVM Volume Group, and an LVM Logical Volume.
We add a filesystem to our Logical Volume, then we mount the Logical Volume.
Then we unmount the Logical Volume and show how to remove LVM.
We remove the Logical Volume, then we remove the Volume Group, and lastly we remove the Physical Volume leaving the system as if LVM was never added.
We set up LVM similar to the previous videos and then we take a closer look at how LVM stores data.
We extend the blue volume group, then we extend the the orange logical volume and we also extend the ext4 filesystem on orange using the command line. Then we extend the red logical volume and after that we use the command line to extend the xfs filesystem on the red logical volume.
Lastly, we expand the orange logical volume again, but this time we extend the file system on logical volume orange by adding -r to the lvextend command.
We create an LVM mirror which does the same as an LVM Raid1 which is it creates 2 (or more disks) with the same disk image.
The advantage of having a mirror copy is that if one disk fails, processing can continue without needing to restore from a backup and losing everything that happened between the last backup and the disk failing.
In this video we set up an LVM RAID 0. A RAID 0 stripes data across 2 (or more) disk drives and has no redundancy. If any drive fails the entire RAID 0 is unusable.
In this video, I talk about the different LVM "Logical Volume" options of Linear, RAID 0, RAID 1, RAID 5, and RAID 10 and the advantages and disadvantages of each one.
In this video, I create an LVM RAID 5. I Add some data to the LVM RAID 5, then change one of the disk drives in the LVM RAID 5. I show the data is still availble with the missing disk, then I add a new disk to the RAID 5 and show it working as expected.
One useful LVM RAID 5 command that did not make the video is:
lvs -a -o name,copy_percent,devices blue
blue is the volume group used in the video, you would change blue to be the name of your volume group.
I install Ubuntu with LVM for the root file system then add a second disk drive and expand the disk space available for the installed Ubuntu operating system.
We create a new LVM logical volume, add a file system, mount the LVM logical volume then take a couple of LVM snapshots of the empty logical volume.
We then add some data to the LVM logical volume and show how quickly a small LVM snapshot can fill up and become unusable.
More data is added then a third LVM snapshot is taken with data on the logical volume.
We look at the snapshot we took in the previous video and discuss the difference between snapshots and and backups, then we restore from the snapshot we took in the previous video.