Complete 2024 Guide: How to expand a Ubuntu LVM LV to use all space on the PV

2024 Update - I found myself stuck in this situation again, my Ubuntu root partition was completely full to the brim… I’m scrambling to remove apt chache and pruning and and all docker images, but then I run vgdisplay only to reaslise that my LVM LV isn’t even using the full amount of physical disk space (this is a VM and I have just expanded the VMDK file). Thankfully I wrote this blog post 4 years ago as a how-to. Well now I am going to give this post a refresh and this includes some extra details which I needed during the panic of a full disk. ...

September 4, 2024 · 5 min · Tom