Linux Logical Volume Manager (LVM) Deep Dive Tutorial

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ • 196

  • @Nick-bo6di
    @Nick-bo6di Рік тому +5

    Thank you for the tutorial, Jay. I am an intermediate sysadmin at work preparing to do some lvm management at the office. Your tutorials really help me learn and practice concepts that I will eventually use in production. I can test these things at home on my workstation Linux box before trying to do them where it counts. I really appreciate it.

  • @CliffordFelixBenoit
    @CliffordFelixBenoit Рік тому +2

    Jay, thank you soo much, this is the VERY BEST lvm tutorial I have ever seen and I have been in the linux game for a loooong time

  • @curtnichols
    @curtnichols Рік тому +1

    Clear and well-done. Thanks!

  • @u1avrill1
    @u1avrill1 Рік тому

    well well well, i just watched one video and all i can say is, your channel is like a treasure, from your basics education to the way you phrase it so everyone can get it. keep going sir, you are really a reliable one.

  • @arturmeinild2461
    @arturmeinild2461 4 роки тому +34

    By default, Linux (ext3 and ext4 at least) already reserves 5% disk space for root, exactly for use cases like you describe in the beginning. If you have a 480GB disk, that's already ~24GB reserved. This can easily be changed with the command: "tune2fs -m2 /dev/partition" to set it to 2% and "tune2fs -m5 /dev/partition" to set it back to 5% reserved. I think this is much easier, if you "just" want to recover disk space in emergency situations. Of course you don't get snapshot or other advanced functions.

    • @chromerims
      @chromerims 2 роки тому +3

      Comment gold 👍
      Using *tune2fs* looks like a helpful alternative in order to "recover disk space in emergency situations."
      Kindest regards.

  • @ScottCov
    @ScottCov Рік тому

    Hi Jay-Been learning linux for about a year and your tutorials are consistently the best on the topic. Thank you

  • @jamesmann7411
    @jamesmann7411 2 роки тому +5

    Thank you for another great tutorial Jay. Your knowledge and experience of using LVM shines through in this video. As does your incredible ability to plan and deliver tutorials. I'm hugely grateful for the help and inspiration you provide. To my shame I've not supported you yet on patreon. I'll be contributing from today!

  • @volgraft5508
    @volgraft5508 2 роки тому +2

    Thanks for the video lesson. I found an error in an article on the site. Instead of "Extend the physical volume by 10GB", I guess they meant "Extend the logical volume by 10GB". And your site is not accessible from Russia, I'm not complaining, but if it's not on purpose, I'll be very grateful if it works again) Thank you!

  • @glyakk
    @glyakk 4 роки тому +9

    Fantastic video and explanation of LVM. I feel like this is something I can wrap my mind around now.

    • @lars2923
      @lars2923 2 роки тому

      You want to really learn about LVM, find yourself an AIX Box...

  • @DanCalloway
    @DanCalloway 4 роки тому +4

    LVM might be awesome, but I want to say that your video was really awesome! Thanks so much for this information. I've been using Linux since 1996 and never really got into LVM before. Now, you've sold me.

  • @ethanrivers4057
    @ethanrivers4057 2 роки тому +1

    43 minutes into the video, obviously not done yet, but I'm taking this time to thank you so much for this. These videos are amazing and I'm so happy to be able to learn about all this. This video alone is going to make me make some changes to the structure of my proxmox server and my VMs. Thank you so much.

  • @AnonymousB460
    @AnonymousB460 2 роки тому

    Best video for breaking down lvm. I use this at work often. Thank you.

  • @wildmanjeff42
    @wildmanjeff42 4 роки тому +10

    great video Jay, thanks for the explanation and your time making the video

  • @matthewdinslage8120
    @matthewdinslage8120 3 роки тому +1

    Thanks man, Was reading up on LVM's but was struggling a little bit. This was crystal clear and now I get it.

  • @K.Chenthilkumar
    @K.Chenthilkumar 11 місяців тому

    This is the best video for new people learning LVM... Its awesome Jay ... your videos are really excellent and with good content....Thanks for sharing your knowledge... and experience....

  • @sechvnnull1524
    @sechvnnull1524 4 роки тому +2

    Man this was awesome! You did an amazing job explaining this. Not sure who you work for but they are blessed to have you! If I can ever get to where you are I will be super happy. Right now just trying to finish school. But thank you very much for the video and your time!

    • @LearnLinuxTV
      @LearnLinuxTV  4 роки тому +7

      You'll get there. I remember when I started out back in the day, and could barely figure out how to add another physical hard drive to my computer. And then I just kept learning and eventually I didn't feel as incompetent as I once did. lol

    • @sechvnnull1524
      @sechvnnull1524 4 роки тому

      @@LearnLinuxTV Really appreciate that its difficult because I started out late after being injured on my first career. So now with 2 kids and my wife it's tough to try and find the balance as I'm playing catch up lol! Thank you!

  • @fallonboone487
    @fallonboone487 3 роки тому

    I'm a new Linux user and I have been trying to learn lvm but I didn't get it until this explanation. This is great! Thank you!

  • @sramzed
    @sramzed 2 роки тому +1

    Thanks Jay, it was an extremly clear and useful presentation from LVM!

  • @JPEaglesandKatz
    @JPEaglesandKatz 2 роки тому +1

    Your videos and tutorials are invaluable. Been on windows all my life but starting with proxmox (and some xcp-ng ventures) linux is becoming more and more familiar.. Thanks to your and Tom's videos!! You are a great teacher! Thank you for all the work you do!!

  • @davidlira8853
    @davidlira8853 Рік тому

    That first example of filling up the disk was awesome

  • @treyquattro
    @treyquattro 2 роки тому +2

    stunningly good information (as always), presented in a clear and concise manner. One of the best Linux channels available with continually solid, usable information

    • @boolve
      @boolve 2 роки тому +1

      I second that. Thank you. I think you are a good teacher for proper learning classes for example on Udemy or whatever Linux online learning.

  • @Dr_Dude
    @Dr_Dude 4 роки тому

    I just made a hybrid drive using LVM and another SSD-only LV for my home directory,,, never imagined how cool LVM is until i gave it a try last weekend when i did that.... blown away with this and will do LVM on Raid 1E next (a raid of 5 NVMe's and another of 7-9 SAS for space then will put the linux, home, and cache-pool partitions on NVMe and all games, digital data on the hybrid SAS raid volume... the best of both worlds in perfomrance, space and reliability)

  • @artmartgon
    @artmartgon Рік тому

    Your video is SUPER clear on a complex and not very well explained topic ... thanks a bunch !

  • @jnelly3426
    @jnelly3426 10 місяців тому

    Thank you. This is exactly what I needed. It was explained so well. Now all I have to do is practice.

  • @giovannifm
    @giovannifm Рік тому

    amazing tutorial, best tutorial I've seen on this topic, thank you so much for this.

  • @Jeroen_a
    @Jeroen_a 3 роки тому

    I'm not even half-way into the video.... but i do know now, that i should have set up my homelab to use LVM.. i always thought that LVM was a bit too complex and that i would never use it because it would not be beneficial.... but it is! Thanks!

  • @TheHeartmedia
    @TheHeartmedia 2 роки тому

    These irritating UA-cam ads, just when he explains something important. Firefox adblock combo here I come. Thanks coach btw, your videos are great.

  • @amitzdullnicker2k
    @amitzdullnicker2k 3 роки тому

    That helped a lot, I finally got a grip on LVM now! Thank you!

  • @dragonek_gnu_linux_pl
    @dragonek_gnu_linux_pl 2 роки тому

    you and ef tech linux are the best linux chanels on youtube to recomend to everybody who wants starts adventure with linux

  • @joelsschwarz
    @joelsschwarz 2 роки тому

    Amazing tutorial. Thank you very much Jay, I learned a lot today. Greetings from Argentina.

  • @ninja2807
    @ninja2807 3 роки тому

    The best tutorial on LVM...Thanks for all your effort.

  • @Stormy2k3
    @Stormy2k3 4 роки тому +3

    Woah 100k subsucribers! Congratulation!

  • @faizkarimullahbag
    @faizkarimullahbag 3 роки тому

    Hi Jay, Thanks for your great help. LVM now can understand very fast and easy way.

  • @yuzhu2547
    @yuzhu2547 Рік тому

    Thanks!

  • @compsciranjeet
    @compsciranjeet Рік тому

    Very nicely explained all the use cases required for understanding this concept. Gret thanks for nice video.

  • @32cansofredbull
    @32cansofredbull 3 роки тому

    Found this to be an awesome start for demystifying lvm!

  • @cynodont7391
    @cynodont7391 4 роки тому +1

    Another important detail is that it is not enough to unmount all Logical Volumes before removing a disk containing a Volume Group.
    The proper course of action is to do "vgchange -a n" before removing the disk and "vgchange -a y" after re-inserting it (if the system does not detect the new volume group automatically).
    Not doing so is likely to make the logical volumes unmountable.

  • @truth-vs2ot
    @truth-vs2ot Рік тому

    Thank you for making this simple and clear for a newbee like me!

  • @tpasi2020UG
    @tpasi2020UG 4 роки тому +1

    Thank you Jay for these real world tutorials very important. Thank you!

  • @rikitanzila7694
    @rikitanzila7694 3 роки тому

    Best tutorial LVM ever, thank you so much for your explanation

  • @TheBrimurray
    @TheBrimurray 4 роки тому +1

    Magic and well presented tutorial on LVM. Thank you Jay.

  • @affreenmjha4113
    @affreenmjha4113 3 роки тому +1

    You are a great teacher ! Thank you for this video and awesome content you made available for us.

  • @BholaSingh-fd4hp
    @BholaSingh-fd4hp 3 роки тому

    Easy to understand and good examples.. you just earned a subscriber. Thank you

  • @marianodevnull
    @marianodevnull Рік тому

    Very neat explanation! Thanks a lot for this video!

  • @onlyeyeno
    @onlyeyeno 4 роки тому

    Another excellent series of videos, clearly and comprehensively explained, and presented.
    Thank You SOO much for Your doing this work and sharing Your knowledge.
    Best regards.

  • @YouPavelBA
    @YouPavelBA 10 місяців тому

    Thanks, really perfect tutorial ... you are the BEST, please continue

  • @ericneba970
    @ericneba970 3 роки тому

    very precise and straightforward video ,Jay. Thanks

  • @drsmith3411
    @drsmith3411 4 роки тому +1

    You are to be commended on your ability to teach, as well as to make a video that presents not only the essence of the subject, but the process, all clearly.

  • @gittesilberglarsen1262
    @gittesilberglarsen1262 Рік тому

    @2:47. Consider not to use a phrase like:" what i am going to do is i am going to go ahead.." but content is good.

  • @islam-karam
    @islam-karam 10 місяців тому

    It's recommended to avoid using the parent address of the disk (e.g., /dev/sdc) directly as a physical volume (PV) in LVM.
    LVM operates at the partition level rather than the whole disk level, when using LVM, you should always initialize and use specific partitions (e.g., /dev/sdc1) as physical volumes. This ensures proper management and compatibility with LVM's data structures and operations.

  • @59busta
    @59busta 4 роки тому +1

    maybe the best video about LVM in youtube, thanks you from france

  • @catatanteknokreatif
    @catatanteknokreatif 3 роки тому

    video yang sangat bermanfaat & penjelasan dalam video yang detail membuat saya mudah memahami langkah-langkah bagaimana membuat LVM untuk komputer saya
    terimakasih Jay, semoga anda sehat selalu dan membuat banyak video bermanfaat bagi orang banyak

  • @kdg1955
    @kdg1955 4 роки тому

    Awesome. Just the remark that you cannot use LVM for your boot partition. And my advice not to create one volume group above a HDD drive and a SSD drive.
    As you noted, you install LVM but afterwards you don't look at it anymore, and yet I will reinstall it on my next computer.

  • @blz777
    @blz777 7 місяців тому

    ❤ Amazing tutorials, thank you very much! :)

  • @DL-xf3ur
    @DL-xf3ur 3 роки тому

    Awesome as always Jay. Thank you!

  • @davidd7019
    @davidd7019 3 роки тому

    Super Helpful mate, this is helped me tremendously for work

  • @williamshenk7940
    @williamshenk7940 3 роки тому

    Excellent tutorial Jay! Thanks for the expert material.

  • @santoshpillai3696
    @santoshpillai3696 2 роки тому +1

    17:45 - LVM

  • @rajeshroshan2877
    @rajeshroshan2877 3 роки тому

    Best video on LVM.

  • @6255445
    @6255445 3 роки тому

    This is just simply awesome!

  • @flyhigh6047
    @flyhigh6047 4 роки тому

    it's a clear guide to understand LVM and the uses of it :D

  • @mathewkargarzadeh3158
    @mathewkargarzadeh3158 3 роки тому

    Awesome Illustration on LVM. Jay, I have been watching your Tutorials. You have been Fantastic !!! here what I like to do. I want to give you a hug and kiss on the cheek. you must be a very nice person to dedicate you time to teach us this incredible stuff. I shared my comments with my spouse Elena that how generous you are, giving your time to others educating all of us. If you ever happen to be in Colorado, you are invited to our house for dinner. yes. you heard it right. you are invited to our house for a nice Dinner, and Elena and I and my kids personally wait on you. or if you want, we all going to take you to a nice dinner to a restaurant of your choice. I really mean.

  • @surgingcircuits6955
    @surgingcircuits6955 3 роки тому +1

    Also, if a drive in a lvm group dies, are there parity bits or anything else to reconstruct the data? Is the group's data lost?

  • @mhelmreich1
    @mhelmreich1 3 роки тому

    Very well done!
    Thank you for your clarity.

  • @ricacomnet80
    @ricacomnet80 2 роки тому

    SuoerTOp.. Thanks man for it. As you sayd LVM is awesome!

  • @vasamonin
    @vasamonin 2 роки тому

    too awesome to know of lvm for beginners

  • @wangyu1189
    @wangyu1189 2 роки тому

    great video as always

  • @jim7smith
    @jim7smith 2 роки тому

    Jay... this is the best LVM presentation ever! I have had many problems in the past due to insufficient knowledge. Thank you so much! Question: do the same techniques also work well for desktop use?

  • @TimDave-xg6nq
    @TimDave-xg6nq 8 місяців тому

    Very useful video💛

  • @abdulelahfallatah
    @abdulelahfallatah Рік тому

    Here's what I understood:
    - We can use LVM to expand mounted partitions.
    - We use snapshots to undo changes.
    Also, you should be the only authority on Linux on UA-cam. To be frank, no one on UA-cam can explain things in Linux as same as you, except for maybe blixel, whose videos were made in 2006. As for the other Linux channels I saw, I feel like they show off more than teach and talk like marketers.
    Edit: You also taught us about "mount -a" even though this video isn't on mounting, formatting, and unmounting partitions.

  • @davidsmith7208
    @davidsmith7208 3 роки тому +1

    I may have missed this, but how would it handle drive failure on a multiple physical volume setup? Would it be like a striped RAID setup with no redundancy?

  • @iNemoden
    @iNemoden 10 місяців тому

    17:10 can’t you create 100% lvm disk and than shrink it?

  • @clairewallace993
    @clairewallace993 8 місяців тому

    Excellent tutorial. Thank you.

  • @maxcoletti
    @maxcoletti 4 роки тому

    Thank you so much for this excellent video! Very clear and informative!

  • @smhhoseinee
    @smhhoseinee 3 роки тому

    amazing Jay
    it was a question for me yet

  • @CarlosGonzalez-mp9re
    @CarlosGonzalez-mp9re 22 дні тому

    4:18 , sounds like GNOME's fs-tracker-miner

  • @alphabanks
    @alphabanks 3 роки тому +1

    Great video however I would like to see more on using mdadm with lvm or using lvm for raid operations.

  • @Ismael-iw4tm
    @Ismael-iw4tm 4 роки тому

    Big guy U explain this very well. 😎🇺🇸👏🏾👏🏾👏🏾👏🏾👏🏾 a pleasure listening.

  • @bcarr1122
    @bcarr1122 4 роки тому +9

    Jay, thanks for the tutorial. I'm new to the concept of LVMs. You emphasize using an LVM for servers, but how sensible would it be for a standalone system?

    • @kalanihokianga6788
      @kalanihokianga6788 2 роки тому +1

      There really isn't a difference between severs and systems. Just what you run on them. For example, OpenBSD.

  • @remigiuszstras2133
    @remigiuszstras2133 2 роки тому

    Good stuff, very helpful!

  • @cenaazem
    @cenaazem 3 роки тому

    Thank you so much for this video! I've spent hours trying to figure out how to expand my rootfs because I was running out of space and I didn't want to re-install Arch already (I just installed it yesterday!) And the Arch Wiki, while amazingly comprehensive, is still a little confusing to me (I'm still a bit of a noob), and other online posts/forums weren't really that helpful.

  • @frankfu1122
    @frankfu1122 4 роки тому

    I love this explanation. Thank you so much!

  • @dennisvanderpool4459
    @dennisvanderpool4459 3 роки тому

    @ 34:19 you say "--resizefs wil automatically resize the logical volume". I think you wanted to say filesystem instead? :-)

  • @superspectator123
    @superspectator123 3 роки тому

    WOW! What a great video!

  • @horrorhotel46290
    @horrorhotel46290 13 годин тому

    So what are the drawbacks of LVM? If it didn't have any, I'd imagine a lot of distros would ship with this enabled by default

  • @1over137
    @1over137 2 роки тому

    Thanks. I'm struggling, trying to get ahead of myself. Redesigning my NAS disk setup trying to get Proper power management. Proper SSD caching. And a side order of performance increase and maybe a touch of redundancy. I just figured out software RAID a while back. Tested a few LVM cache set ups successfully on real hardware, now I'm stuck staring at a blank canvass and asking, so... how do I design this? Been that way for a week now :) Need inspiration!

  • @yasin.k
    @yasin.k 4 роки тому

    Hi, I am talking about part 4 - expanding a file system
    Should I format sdb before or after extending vg or resize command meet the need.

  • @zethcader6478
    @zethcader6478 9 місяців тому

    So which drive keeps the record of the LVM set up? If you add another physical volume to an existing volume group, which keeps the record of who manages who?

  • @yosharma5210
    @yosharma5210 2 роки тому

    Wonderful tutorial

  • @ap5672
    @ap5672 3 роки тому

    Thank you for the fantastic guide. 35:19 why is there no sdb1 partition?

  • @ManVersusWilderness
    @ManVersusWilderness 2 роки тому

    When creating an lvm thin pool in proxmox, how do I choose it's size, or am I thinking about this wrong? It always uses the entire disk. I am trying to create one raid z 2 on my server and the portion it out into several lvm thin pools for each so that none of them can fill up the entire array, and I can expand each as needed.

  • @q809651977
    @q809651977 8 місяців тому

    Hi jay
    I installed arch according to your tutorial and I both created an lvm and encrypted the drive as how it was shown
    My question is when I increased the lvm root after was running out of space I started getting an error every time I enter my luks encryption password while booting
    I feel I have missed something
    Thank you for your wonderful and informative channel 😊

  • @linuxuser8179
    @linuxuser8179 2 роки тому

    In real time what would you do if a /var/log/application.log file is using more space and you want to erase some unwanted data from that file and keep the log information?

  • @younirmala
    @younirmala 3 роки тому

    can we install LVM to a system where there is no LVM configured?

  • @piotrpytkowski1542
    @piotrpytkowski1542 2 роки тому

    Hi do you have on your chanel video about ACL (Access Control List)? can't find...

  • @frank_bastelt
    @frank_bastelt 4 роки тому

    Great HowTo - thank you for this 👍. Could it be an idea to add a video to show the combination with LUKS?

  • @naaaaaaaaathan
    @naaaaaaaaathan Рік тому

    Hi, I have a question. I have read that the GRUB should not be installed on LVM, but didn't really understand why. So I wanted to ask for your opinion - Would you install GRUB on LVM? Please explain why, or why not. Thank you!

  • @jesusosorio7205
    @jesusosorio7205 2 роки тому

    wow congratulations... amazing!

  • @George.Gadgets
    @George.Gadgets 8 місяців тому

    Thanks Jay it happened to me the same that I always ignored LVM as something weird, and now I see it's really useful. Now, do you have any video or wiki that shows which are useful VGs and LVs setups for a server for example? It is, should we always use a LV for root, another for home, another for, what? Media? Or one for Videos, another one for photos, etc? And, you used all the time a different PV for each VG, but, can we use 3 specific disks for different VGs? It is, for example, VG1 resides on the 50% of sda+sdb+sdc, AND, VG2 resides on the other 50% of the same disks? Now, another important question that I want to make to you, is, is this LVM stuff complementary or a substitute of Btrfs and ZFS logical volume and snapshot managing? And, what about encryption? I mean, I know this can an answer for all of this can be pretty long, but just to have an idea of how I should set up my system to begin with. What do you recommend for a server, LVM with ext4, or, Btrfs or Zfs and which encryption?

  • @AndreTVOC
    @AndreTVOC 8 місяців тому

    Is there a way to do the other way arround reduce file system reduce LVM and then in the and remove space of disk on vmware our virtual box?