Fixing a “Full Disk” Issue on Ubuntu VM (Quick Guide)
Today, I was working on an Ubuntu virtual machine hosting a database. The VM had been allocated 200GB of disk space, but the system was reporting that the disk was completely full. After some initial confusion and digging, I discovered something important and surprisingly common:
Extending disk size in VMware does not automatically extend it inside Ubuntu.
If you’ve ever expanded your VM disk and still run into space issues, this guide will walk you through exactly what’s happening and how to fix it step by step.
Quick Fix (3 Steps)
Step 1: Check Disk Layout
lsblkLook for unused space.
If your disk shows ~200GB but your filesystem is ~100GB → you found the issue.

Step 2: Extend the Logical Volume
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lvThis tells Ubuntu to use all available free space.
Step 3: Resize the Filesystem
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lvThis step is critical—without it, the extra space won’t be usable.
Step 4: Verify
df -hYou should now see the full disk size available.
Before vs After
Before:
LV size: 197GB
Filesystem: 98GB ❌
After:
LV size: 197GB
Filesystem: 197GB ✅
If you found this guide helpful, consider supporting me!