hi all,

installed ubuntu 20.04.6 LTS on a server and the disk is 600GB but when i did a “df -h”

/dev/mapper/ubuntu–vg-ubuntu–lv

was only 100gig so i thought that was odd as i could swear the disk was 600gb

when i did a “fdisk -l” and “pvdisplay” it said 558GB so i wasnt going mad

what i had to do was this to expand it

lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

so why doesnt it do this when youve installed ubuntu out the box?

thanks,
rob

3 Spice ups

You may have missed a step during the partitioning, or not noticed it wasn’t set to use it all.

A fairly old OS though, goes EOL in May.

@robertkwild I’ve seen this behavior myself, and find it very inconvenient. For some reason, even on newer versions, I’ve had the installer only create a small partition and leave the remainder unpartitioned.

Our automated installs create the smaller partitions, but that’s because of our build scripts.
I’ve never seen stock Ubuntu do that unless I fiddle with the drive partitioning.

I had the exact same problem on three Ubuntu 24 servers that I installed earlier this year. I accepted the default partition settings during setup, because I assumed it would use all of the available disk space.

I know there are commands in Linux to do this but I prefer to boot to Gparted and use the GUI.