`
If you find these tutorials useful, Please consider making a donation.

TheFrugalComputerLinuxLogo.png
TheFrugalComputerGuy.png
Linux Command Line 20
Logical Volume Manager (LVM)







Linux Command Line (91) LVM pt1

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.





 






Linux Command Line (92) LVM pt2 - Add a File System and Remove LVM

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.





 






Linux Command Line (93) LVM pt3 - LVM a Closer Look

We set up LVM similar to the previous videos and then we take a closer look at how LVM stores data.





 






Linux Command Line (94) LVM pt4 - Expand LVM

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.





 






Linux Command Line (95) LVM pt5 - LVM Raid1-Mirror

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.





 






Linux Command Line (96) LVM pt6 - LVM Raid 0

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.





 






Linux Command Line (97) LVM pt7 - LVM Linear or LVM Raid

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.





 






Linux Command Line (98) LVM pt8 - LVM RAID 5

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.