How To Extend LVM Disk For Linux Virtual Machine On VMware

preview_player
Показать описание
In this video I explain how to increase disk space in Linux with LVM by first expanding the hard disk, creating a new partition, expanding the volume group and logical volume and then resizing the file system.

--- Follow me here ---
Рекомендации по теме
Комментарии
Автор

I know you created this in 2015 but I have used this today and am very grateful for your contribution to the world.

Technik
Автор

Checking in in 2024 - our Linux guy left so I got signed up to be the new Linux person. One of our RHEL 7 boxes had TWO 100% full volumes and these steps were exactly what I needed! Thanks!

ChickinSammich
Автор

Nobody else on the internet has been able to explain this as clearly as you have done. Worked in 2022 for my Ubuntu vm. Thanks!

KidJake
Автор

Very well presented. There are a lot of partial threads on this topic with very poor explanations. Your discussion during the video presents the material in a way that is logical and easy to understand. Thank you for taking the time to produce this.

WilliamCook
Автор

well done. For anyone who ran into issue with last step. if you used xfs_growfs /dev/xx/root and got an error "root is not a mounted XFS filesystem". use "xfs_growfs /" and it works for my case.

mikeli
Автор

Wow, I'm learning RHEL 8 on vmware workstation and while doing a lab today I run out of space as I started with 20 GB and wanted to expand to 30 GB. This video is exactly what I needed. Grateful for your great explanation & detailed steps.

ashraffouad
Автор

This is a really good tutorial. I've been using LVM for some time and never had any issues until this weekend and whilst your tutorial doesn't touch on the error presented it did help me identify a way around doing what I wanted to do. Thank you.

rushy
Автор

Thanks, Jarrod! Such a great video. I'm not good at all to remember all the steps, so I always return to this video when I have to extend an LV.

You rock man!

AndresChGz
Автор

Life saver !! Thank you very much! I'm a beginner to CentOS and had to recover a Zimbra server that crashed due to insufficient disk space. Your guide saved me from hours of downtime!

pancos
Автор

Worked like a charme. The system I used this on only had version 1.2.5 of fstab available. This version is not using sectors but cylinders instead. It also does not give you default values for the new partition and where it starts or ends. There was some trial and error involved but once I got it figured out the rest of your tutorial worked. Thanks for putting this up.

liferseventy-eight
Автор

Awesome. Let me share one thing that helped me. First your instructions were perfectly clear, I followed it step by step... When I got to the final step of resizing the filespace with resize2fs I got this error "Bad magic number in super-block..." My heart sank, then I listened to your last few sentences, "if you have a XFS filesystem use xfs_growfs", that did the trick. It made me appreciate hearing these tutorials to the very end. FYI: tip to others: to verify filesystem Type use "df -Th".
Thanks again Jarrod.

robinwinson
Автор

Pure gold here! This was precisely what I needed to resize a RHEL YUM server /var. I owe you a pint, mate!

burntkat
Автор

That was a very clear and concise explanation on how to increase disk space, excellent tutorial, well done!

PooDotStinkPants
Автор

5 years ago and still the best video regarding this topic

aswinvenu
Автор

We all know this video is 8 Years Old but helped me today
Thanks Friend

CrookzArtwork
Автор

in the lvextend command, if you add a -r parameter in the line, it will automatically resize the filesystem. for example $lvextend -L+5G -r /dev/centos/root. this way you skip the last step of your video. Thank you so much, your video saved me some good research time. +1

wiliamribeiro
Автор

I cheked so many online doc and videos, and this was by far the simpliest step by step video to follow. Ive never resized the hard drive and like many its a very stressful task to try to accomplish, especially when all the data is at risk. This guide was the best way since it created a new disk outside of the currently used one. Even with the ending of the two options for a newer system, Great video very much appreciated i only had 1% space left in a 5K daily visted website....

angeloingrati
Автор

Super helpful video. I did an Arch install recently and needed more space on my home partition. Worked like a charm.

Zephyr-tghu
Автор

You literally saved my life. One of my projects required a specific OVA to be used, but its free space was too small for my use. Subscribed.

preacher
Автор

Very helpful. Thank you for not playing any crappy music in the background and speaking clearly as you presented.

vicrao