Тёмный

Linux Logical Volume Manager (LVM) Deep Dive Tutorial 

Learn Linux TV
Подписаться 651 тыс.
Просмотров 142 тыс.
50% 1

LVM, short for Logical Volume Manager, is awesome - and it doesn't seem to get the attention it deserves. In this one-shot tutorial, I'll show you why you should care about LVM, how to get started, some of the commands you can use to manage it, and more. You'll even learn how to use it to take snapshots of your system!
☁️ Get $100 in credit toward deploying your very own Linux servers on Linode!
➡️ linode.com/learnlinuxtv
🙌 Support me on Patreon and get early access to new content!
➡️ learnlinux.link/patron
🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
➡️ learnlinux.link/amazon
💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
➡️ learnlinux.link/tinypilot
*Time Codes*:
0:50 - Why LVM?
12:06 - Installing Ubuntu Server 18.04 (with LVM)
17:40 - LVM Explanation
21:14 - Ubuntu Server installation (continued)
25:25 - Viewing LVM info
28:07 - Expending a filesystem
33:42 - Setting up LVM Manually
40:47 - Creating and Restoring Snapshots
Wiki article for this video:
www.learnlinux.tv/linux-logic...
More info can be found in this article (this is where the LVM diagram came from):
www.thegeekdiary.com/redhat-c...
🐦 Follow me on Twitter!
➡️ learnlinux.link/twitter
💬 Official LearnLinux.tv Community:
➡️ community.learnlinux.tv
📖 Check out jay's latest book, Mastering Ubuntu Server 3rd Edition. Available now!
➡️ ubuntuserverbook.com
👨 More about me:
➡️ www.jaylacroix.com
➡️ www.learnlinux.tv/about-me
💽 How to create a bootable flash drive for installing Linux:
➡️ linux.video/flash-usb
🐧 Which distro do I use?
➡️ learnlinux.link/mydistro
🔐 How to better secure OpenSSH:
➡️ linux.video/secure-ssh
☁️ How to create a cloud Linux server with Linode:
➡️ learnlinux.link/create-linode

Наука

Опубликовано:

 

8 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 192   
@arturmeinild2461
@arturmeinild2461 4 года назад
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 Год назад
Comment gold 👍 Using *tune2fs* looks like a helpful alternative in order to "recover disk space in emergency situations." Kindest regards.
@jamesmann7411
@jamesmann7411 Год назад
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!
@Nick-bo6di
@Nick-bo6di 9 месяцев назад
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.
@ScottCov
@ScottCov 9 месяцев назад
Hi Jay-Been learning linux for about a year and your tutorials are consistently the best on the topic. Thank you
@user-mw4sd6tb5w
@user-mw4sd6tb5w 7 месяцев назад
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
@wildmanjeff42
@wildmanjeff42 4 года назад
great video Jay, thanks for the explanation and your time making the video
@matthewdinslage8120
@matthewdinslage8120 2 года назад
Thanks man, Was reading up on LVM's but was struggling a little bit. This was crystal clear and now I get it.
@u1avrill1
@u1avrill1 5 месяцев назад
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.
@JPEaglesandKatz
@JPEaglesandKatz Год назад
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!!
@glyakk
@glyakk 3 года назад
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...
@TheBrimurray
@TheBrimurray 3 года назад
Magic and well presented tutorial on LVM. Thank you Jay.
@thrycemin
@thrycemin Год назад
Best video for breaking down lvm. I use this at work often. Thank you.
@onlyeyeno
@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.
@DanCalloway
@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.
@haddocks
@haddocks 2 года назад
Thanks Jay, it was an extremly clear and useful presentation from LVM!
@sechvnnull1524
@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
@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
@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!
@affreenmjha4113
@affreenmjha4113 2 года назад
You are a great teacher ! Thank you for this video and awesome content you made available for us.
@ethanrivers4057
@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.
@volgraft5508
@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!
@compsciranjeet
@compsciranjeet 6 месяцев назад
Very nicely explained all the use cases required for understanding this concept. Gret thanks for nice video.
@BholaSingh-fd4hp
@BholaSingh-fd4hp 2 года назад
Easy to understand and good examples.. you just earned a subscriber. Thank you
@amitzdullnicker2k
@amitzdullnicker2k 2 года назад
That helped a lot, I finally got a grip on LVM now! Thank you!
@user-fo6xt6dy3u
@user-fo6xt6dy3u 4 месяца назад
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....
@jnelly3426
@jnelly3426 3 месяца назад
Thank you. This is exactly what I needed. It was explained so well. Now all I have to do is practice.
@ericneba970
@ericneba970 2 года назад
very precise and straightforward video ,Jay. Thanks
@giovannifm
@giovannifm 9 месяцев назад
amazing tutorial, best tutorial I've seen on this topic, thank you so much for this.
@maxcoletti
@maxcoletti 3 года назад
Thank you so much for this excellent video! Very clear and informative!
@davidlira8853
@davidlira8853 7 месяцев назад
That first example of filling up the disk was awesome
@ninja2807
@ninja2807 3 года назад
The best tutorial on LVM...Thanks for all your effort.
@frankfu1122
@frankfu1122 3 года назад
I love this explanation. Thank you so much!
@davidd7019
@davidd7019 3 года назад
Super Helpful mate, this is helped me tremendously for work
@williamshenk7940
@williamshenk7940 2 года назад
Excellent tutorial Jay! Thanks for the expert material.
@marianodevnull
@marianodevnull 11 месяцев назад
Very neat explanation! Thanks a lot for this video!
@Stormy2k3
@Stormy2k3 4 года назад
Woah 100k subsucribers! Congratulation!
@rikitanzila7694
@rikitanzila7694 3 года назад
Best tutorial LVM ever, thank you so much for your explanation
@mhelmreich1
@mhelmreich1 2 года назад
Very well done! Thank you for your clarity.
@joelsschwarz
@joelsschwarz Год назад
Amazing tutorial. Thank you very much Jay, I learned a lot today. Greetings from Argentina.
@tpasi2020UG
@tpasi2020UG 4 года назад
Thank you Jay for these real world tutorials very important. Thank you!
@LearnLinuxTV
@LearnLinuxTV 4 года назад
You’re welcome!
@Starlight-vs2ot
@Starlight-vs2ot 6 месяцев назад
Thank you for making this simple and clear for a newbee like me!
@YouPavelBA
@YouPavelBA 3 месяца назад
Thanks, really perfect tutorial ... you are the BEST, please continue
@TheHeartmedia
@TheHeartmedia Год назад
These irritating RU-vid ads, just when he explains something important. Firefox adblock combo here I come. Thanks coach btw, your videos are great.
@32cansofredbull
@32cansofredbull 2 года назад
Found this to be an awesome start for demystifying lvm!
@faizkarimullahbag
@faizkarimullahbag 2 года назад
Hi Jay, Thanks for your great help. LVM now can understand very fast and easy way.
@curtnichols
@curtnichols 7 месяцев назад
Clear and well-done. Thanks!
@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
@jim7smith
@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?
@blz777
@blz777 13 дней назад
❤ Amazing tutorials, thank you very much! :)
@DL-xf3ur
@DL-xf3ur 2 года назад
Awesome as always Jay. Thank you!
@clairewallace993
@clairewallace993 Месяц назад
Excellent tutorial. Thank you.
@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?
@wangyu1189
@wangyu1189 Год назад
great video as always
@ElectronFunCom
@ElectronFunCom 3 года назад
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?
@artmartgon
@artmartgon 5 месяцев назад
Your video is SUPER clear on a complex and not very well explained topic ... thanks a bunch !
@remigiuszstras2133
@remigiuszstras2133 2 года назад
Good stuff, very helpful!
@TimDave-xg6nq
@TimDave-xg6nq Месяц назад
Very useful video💛
@6255445
@6255445 2 года назад
This is just simply awesome!
@Faradil84
@Faradil84 3 года назад
Always so helpful.
@karyazin85
@karyazin85 3 года назад
Awesome explanation! Thank You! )
@flyhigh6047
@flyhigh6047 3 года назад
it's a clear guide to understand LVM and the uses of it :D
@smhhoseinee
@smhhoseinee 2 года назад
amazing Jay it was a question for me yet
@drsmith3411
@drsmith3411 3 года назад
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.
@kosmonautofficial296
@kosmonautofficial296 3 года назад
Great video! Thank you!
@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)
@bcarr1122
@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
@kalanihokianga6788 2 года назад
There really isn't a difference between severs and systems. Just what you run on them. For example, OpenBSD.
@surgingcircuits6955
@surgingcircuits6955 2 года назад
Love the channel/vids! Thx! Don't think I've seen this addressed, so curious. Does lvm support exfat volumes?
@Ismael-iw4tm
@Ismael-iw4tm 4 года назад
Big guy U explain this very well. 😎🇺🇸👏🏾👏🏾👏🏾👏🏾👏🏾 a pleasure listening.
@treyquattro
@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
@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.
@agroleau04
@agroleau04 4 года назад
Awesome content Jay, thanks for the very informative videos. I am a bit confused about VG though. How do they compare to RAID arrays? Would they be the equivalent of RAID0 (or Stripped)? How is the data layed out on the physical volume? Thanks!
@phillipcifone8974
@phillipcifone8974 Год назад
I believe with LVM it's simply added onto the backend. ZFS has the ability to do RAID and other cool stuff.
@vasamonin
@vasamonin Год назад
too awesome to know of lvm for beginners
@jayeshzala2339
@jayeshzala2339 4 года назад
Nice video Jay, make a video on Docker also.
@yosharma5210
@yosharma5210 Год назад
Wonderful tutorial
@LearnLinuxTV
@LearnLinuxTV Год назад
Thank you!
@alphabanks
@alphabanks 2 года назад
Great video however I would like to see more on using mdadm with lvm or using lvm for raid operations.
@superspectator123
@superspectator123 2 года назад
WOW! What a great video!
@rajeshroshan2877
@rajeshroshan2877 2 года назад
Best video on LVM.
@mahu3399
@mahu3399 Год назад
thank u just thank u, This Video helped me alot
@LearnLinuxTV
@LearnLinuxTV Год назад
You're welcome!
@BenMitro
@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
@BenMitro 4 года назад
@Mr.PotatoBob Thanks.
@schoemanjl
@schoemanjl 3 года назад
Very informative..!
@Jeroen_a
@Jeroen_a 2 года назад
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!
@tuxstop49
@tuxstop49 4 года назад
Thanks Jay for the video. I am thinking of upgrading my server to 20.04. Debating if I should reinstall with lvm or just do in place upgrade. Just waiting for the point release
@jesusosorio7205
@jesusosorio7205 Год назад
wow congratulations... amazing!
@ricacomnet80
@ricacomnet80 2 года назад
SuoerTOp.. Thanks man for it. As you sayd LVM is awesome!
@chandrashekar8309
@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!
@Liv4IT
@Liv4IT 3 года назад
Pretty nice thanks for sharing;)
@cynodont7391
@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.
@catatanteknokreatif
@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
@59busta
@59busta 4 года назад
maybe the best video about LVM in youtube, thanks you from france
@agiustube
@agiustube 2 года назад
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?
@islam-karam
@islam-karam 3 месяца назад
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.
@TheROck3052
@TheROck3052 4 года назад
very good video!
@raul230285
@raul230285 4 года назад
Asombroso este video felicidades me gustó mucho. Nice.
@cenaazem
@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.
@scarface876
@scarface876 2 года назад
Hi Jay, thanks for the video. Will these be the same commands with CentOS6?
@ap5672
@ap5672 3 года назад
Thank you for the fantastic guide. 35:19 why is there no sdb1 partition?
@mathewkargarzadeh3158
@mathewkargarzadeh3158 2 года назад
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.
@yasin.k
@yasin.k 3 года назад
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.
@christostsekas8795
@christostsekas8795 2 года назад
Hello and thanks for your well presented and informative videos! Im bulding a NAS and i need your opinion for the following storage setup. Im planning for an LVM with two RAID 1 arrays of 2TB each, as its physical volumes. Is that adequate in terms of safety? I want to avoid RAID5 because i have read that is not recommended anymore(?) Thank you
@yuzhu2547
@yuzhu2547 11 месяцев назад
Thanks!
@TheHussainnoori
@TheHussainnoori Год назад
Just Awesome
@baberali95
@baberali95 2 года назад
very nice
Далее
Learn CentOS 19 - Streams
18:40
Просмотров 8 тыс.
Modernize your Linux Storage with btrfs!
46:34
Просмотров 141 тыс.
Signal for help
00:52
Просмотров 7 млн
SSH Full Course - EVERYTHING You Need to Know!
1:28:00
Просмотров 559 тыс.
Understanding Linux Logical Volumes - starring Anouk
11:54
10 Typical Linux Problems and How to Fix Them
23:45
Просмотров 57 тыс.
Linux Crash Course - Symbolic Links
30:07
Просмотров 57 тыс.
Linux Internals: Networking
46:15
Просмотров 28 тыс.
Nvidia Titan
0:48
Просмотров 144 тыс.