Leaving unallocated LVM space on Ubuntu Server for later growth
Keep the root volume small and grow it online when needed.
What it’s for
Section titled “What it’s for”Keeping disk space free for later VMs or volumes, since ext4 can grow online but can’t shrink online.
What you need
Section titled “What you need”- Ubuntu Server installed with LVM (the installer default)
- See what’s allocated:
lsblksudo vgsdf -h /-
Leave the free space in the volume group. Do nothing else for now.
-
When root needs more space, grow it and the filesystem together, online:
sudo lvextend --resizefs -L +50G /dev/ubuntu-vg/ubuntu-lvCheck it worked
Section titled “Check it worked”sudo vgsshowsVFreeleft over.- After an extend,
df -h /shows the new size without a reboot.
Traps seen
Section titled “Traps seen”- The installer’s 100 GiB root can look like a mistake. It’s a safe default if you plan to grow later.
- Growing to 100% right away leaves nothing for new logical volumes, and ext4 can’t give it back while mounted.
Where this came from
Section titled “Where this came from”- Leaving most of the x1 disk unallocated (2026-10-17)