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
Жыл бұрын
Comment gold 👍 Using *tune2fs* looks like a helpful alternative in order to "recover disk space in emergency situations." Kindest regards.
@Nick-bo6di
Жыл бұрын
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.
@jamesmann7411
2 жыл бұрын
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!
@wildmanjeff42
4 жыл бұрын
great video Jay, thanks for the explanation and your time making the video
@user-mw4sd6tb5w
9 ай бұрын
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
@glyakk
3 жыл бұрын
Fantastic video and explanation of LVM. I feel like this is something I can wrap my mind around now.
@lars2923
2 жыл бұрын
You want to really learn about LVM, find yourself an AIX Box...
@u1avrill1
7 ай бұрын
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.
@DanCalloway
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.
@ScottCov
11 ай бұрын
Hi Jay-Been learning linux for about a year and your tutorials are consistently the best on the topic. Thank you
@sechvnnull1524
4 жыл бұрын
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
4 жыл бұрын
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
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!
@volgraft5508
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!
@haddocks
2 жыл бұрын
Thanks Jay, it was an extremly clear and useful presentation from LVM!
@ethanrivers4057
Жыл бұрын
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
Жыл бұрын
Best video for breaking down lvm. I use this at work often. Thank you.
@user-fo6xt6dy3u
6 ай бұрын
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....
@matthewdinslage8120
3 жыл бұрын
Thanks man, Was reading up on LVM's but was struggling a little bit. This was crystal clear and now I get it.
@treyquattro
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
2 жыл бұрын
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.
@JPEaglesandKatz
2 жыл бұрын
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!!
@jnelly3426
5 ай бұрын
Thank you. This is exactly what I needed. It was explained so well. Now all I have to do is practice.
@Stormy2k3
4 жыл бұрын
Woah 100k subsucribers! Congratulation!
@compsciranjeet
8 ай бұрын
Very nicely explained all the use cases required for understanding this concept. Gret thanks for nice video.
@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
@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!
@davidlira8853
10 ай бұрын
That first example of filling up the disk was awesome
@tpasi2020UG
4 жыл бұрын
Thank you Jay for these real world tutorials very important. Thank you!
@LearnLinuxTV
4 жыл бұрын
You’re welcome!
@artmartgon
7 ай бұрын
Your video is SUPER clear on a complex and not very well explained topic ... thanks a bunch !
@giovannifm
Жыл бұрын
amazing tutorial, best tutorial I've seen on this topic, thank you so much for this.
@curtnichols
10 ай бұрын
Clear and well-done. Thanks!
@ninja2807
3 жыл бұрын
The best tutorial on LVM...Thanks for all your effort.
@Starlight-vs2ot
8 ай бұрын
Thank you for making this simple and clear for a newbee like me!
@joelsschwarz
Жыл бұрын
Amazing tutorial. Thank you very much Jay, I learned a lot today. Greetings from Argentina.
@YouPavelBA
6 ай бұрын
Thanks, really perfect tutorial ... you are the BEST, please continue
@marianodevnull
Жыл бұрын
Very neat explanation! Thanks a lot for this video!
@amitzdullnicker2k
2 жыл бұрын
That helped a lot, I finally got a grip on LVM now! Thank you!
@faizkarimullahbag
2 жыл бұрын
Hi Jay, Thanks for your great help. LVM now can understand very fast and easy way.
@blz777
2 ай бұрын
❤ Amazing tutorials, thank you very much! :)
@rikitanzila7694
3 жыл бұрын
Best tutorial LVM ever, thank you so much for your explanation
@BholaSingh-fd4hp
2 жыл бұрын
Easy to understand and good examples.. you just earned a subscriber. Thank you
@affreenmjha4113
2 жыл бұрын
You are a great teacher ! Thank you for this video and awesome content you made available for us.
@ericneba970
2 жыл бұрын
very precise and straightforward video ,Jay. Thanks
@TheHeartmedia
2 жыл бұрын
These irritating KZitem ads, just when he explains something important. Firefox adblock combo here I come. Thanks coach btw, your videos are great.
@TheBrimurray
4 жыл бұрын
Magic and well presented tutorial on LVM. Thank you Jay.
@32cansofredbull
2 жыл бұрын
Found this to be an awesome start for demystifying lvm!
@onlyeyeno
3 жыл бұрын
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.
@59busta
4 жыл бұрын
maybe the best video about LVM in youtube, thanks you from france
@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)
@davidd7019
3 жыл бұрын
Super Helpful mate, this is helped me tremendously for work
@williamshenk7940
2 жыл бұрын
Excellent tutorial Jay! Thanks for the expert material.
@DL-xf3ur
2 жыл бұрын
Awesome as always Jay. Thank you!
@rajeshroshan2877
3 жыл бұрын
Best video on LVM.
@mhelmreich1
2 жыл бұрын
Very well done! Thank you for your clarity.
@6255445
2 жыл бұрын
This is just simply awesome!
@clairewallace993
4 ай бұрын
Excellent tutorial. Thank you.
@cynodont7391
4 жыл бұрын
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.
@drsmith3411
4 жыл бұрын
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.
@islam-karam
6 ай бұрын
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.
@wangyu1189
2 жыл бұрын
great video as always
@TimDave-xg6nq
4 ай бұрын
Very useful video💛
@vasamonin
2 жыл бұрын
too awesome to know of lvm for beginners
@maxcoletti
3 жыл бұрын
Thank you so much for this excellent video! Very clear and informative!
@ricacomnet80
2 жыл бұрын
SuoerTOp.. Thanks man for it. As you sayd LVM is awesome!
@flyhigh6047
3 жыл бұрын
it's a clear guide to understand LVM and the uses of it :D
@catatanteknokreatif
2 жыл бұрын
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
@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!
@remigiuszstras2133
2 жыл бұрын
Good stuff, very helpful!
@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.
@frankfu1122
4 жыл бұрын
I love this explanation. Thank you so much!
@smhhoseinee
3 жыл бұрын
amazing Jay it was a question for me yet
@jim7smith
Жыл бұрын
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?
@Ismael-iw4tm
4 жыл бұрын
Big guy U explain this very well. 😎🇺🇸👏🏾👏🏾👏🏾👏🏾👏🏾 a pleasure listening.
@abdulelahfallatah
9 ай бұрын
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 KZitem. To be frank, no one on KZitem 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.
@bcarr1122
4 жыл бұрын
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
2 жыл бұрын
There really isn't a difference between severs and systems. Just what you run on them. For example, OpenBSD.
@karyazin85
3 жыл бұрын
Awesome explanation! Thank You! )
@davidsmith7208
2 жыл бұрын
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?
@Faradil84
3 жыл бұрын
Always so helpful.
@superspectator123
3 жыл бұрын
WOW! What a great video!
@yosharma5210
2 жыл бұрын
Wonderful tutorial
@LearnLinuxTV
2 жыл бұрын
Thank you!
@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.
@kosmonautofficial296
3 жыл бұрын
Great video! Thank you!
@jesusosorio7205
Жыл бұрын
wow congratulations... amazing!
@chandrashekar8309
3 жыл бұрын
Tutorial is awesome. Just one concern here Once the snapshot is created, any changes made to the origin will be updated snapshot if I'm not wrong. The reflection of changes in snapshot after change made to origin could've been shown. Maybe it's too much to ask because the video is amazing. Thanks. Subscribed!
@BenMitro
4 жыл бұрын
Awesome detailed overview of LVM. I'd love to understand the uses and features for LVM compared to ZFS. Can they be used together to gain the advantages of each?
@BenMitro
4 жыл бұрын
@Mr.PotatoBob Thanks.
@alphabanks
3 жыл бұрын
Great video however I would like to see more on using mdadm with lvm or using lvm for raid operations.
@ElectronFunCom
4 жыл бұрын
Hello Jay, I really like your tutorials, because they are quite detailed and you show everything in practice. This video is one of my favorites. I started fiddling around with LVM on my spare SSD, created pv, gv, lv and found out I didn't have a partition table, but LVM didn't seem to complain. I tried to find some answers on the web, but some people say you should use a partition table, others say it's not needed and even should not be used. I'm quite confused now. Could you tell me if you use partition tables on you LVM setups, please? If yes, which type - is it msdos or gpt?
@mahu3399
Жыл бұрын
thank u just thank u, This Video helped me alot
@LearnLinuxTV
Жыл бұрын
You're welcome!
@surgingcircuits6955
2 жыл бұрын
Love the channel/vids! Thx! Don't think I've seen this addressed, so curious. Does lvm support exfat volumes?
@TheHussainnoori
2 жыл бұрын
Just Awesome
@frank_bastelt
4 жыл бұрын
Great HowTo - thank you for this 👍. Could it be an idea to add a video to show the combination with LUKS?
@baberali95
2 жыл бұрын
very nice
@cenaazem
2 жыл бұрын
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.
@surgingcircuits6955
2 жыл бұрын
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?
@schoemanjl
3 жыл бұрын
Very informative..!
@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!
@aminai8581
Ай бұрын
Thanks
@zethcader6478
4 ай бұрын
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?
@ap5672
3 жыл бұрын
Thank you for the fantastic guide. 35:19 why is there no sdb1 partition?
@micahknight2294
2 жыл бұрын
Took the dive into Arch (finally, after using Ubuntu and variants since 2007). I followed your arch install guide and setup LVM. Very clear and thorough and made the whole process painless! I have not had any issues so far with an arch update, but I do know it is a possibility. I re-watched this video because I remembered you said something about using a snapshot on the root filesystem to add a "restore point" so to speak before you do updates / install software. Easy enough, followed through and I now have I snapshot of my root. All good so far! So, I do have a question though. In your example here of restoring a snapshot you first unmounted the volumes that you were going to merge. I can't do that with root though, correct? Would I just merge it without unmounting? Could I do the merge through chroot or something if I had to restore the root fs? EDIT: (Removed some extra questions, keeping general post in case anyone else is wondering this) Answer to my question was in an Arch wiki article, I posted a quick reply with a link.
@micahknight2294
2 жыл бұрын
Answering my own question in case it helps anyone else... Google searching hadn't helped, but then after posting I remembered to search Arch wiki.... wiki.archlinux.org/title/Create_root_filesystem_snapshots_with_LVM It walks you through best practice for what I am looking for and I will have to redo my snapshot looks like! Again, loving Arch and the community it has!
@chromerims
Жыл бұрын
@@micahknight2294 Thank you for the Archwiki link.
@micahknight2294
Жыл бұрын
@@chromerims You are quite welcomed, glad it helps! Have fun with Arch, still using it personally and am quite fond of the overall experience. Hope your journey is similar!
@George.Gadgets
4 ай бұрын
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?
@jayeshzala2339
4 жыл бұрын
Nice video Jay, make a video on Docker also.
@agiustube
3 жыл бұрын
One of the best tutorials for LVM I have seen. Was able to do this easily with Server 16.04. Server 20.04 is a little different in terms of the last process after you create the Volume Group and Logical Volume. I get to the part where these are created and ready to install the OS but the option to save is greyed out. Any pointers?
Пікірлер: 193