I have a 4 TB drive in my Ubuntu 24.04.3 LTS system. When I issue df -h command, it shows /dev/mapper/ubuntu–vg-ubuntu–lv, it shows Size as 49G, Used 7.2G, and Avail 40G. When I installed the system, I told it to use the entire disk for /. Why didn’t it use all the space?
If I boot to a Gparted Live USB stick, it shows 3.59 TB of unused space for the LV. If I try to write a 60 GB file to the / partition, it fills the /dev/mapper/… LVM up.
How can I use the unused portion of the / partition? I tried using the command lvextend -l +100%FREE /dev/mapper/ubuntu–vg-ubuntu–lv. That did not work, df -h shows 39G Avail. The Avail space went down by 1 TB even though the Used space didn’t go up.
To give us a better idea of the layout of your system storage, could you please share with us the output of the following four commands? And please show that output inside code tags.
Based on the command, you extended the size of ubuntu-lv without resizing the file system. Resizing the file system is done by including the option --resizefs (or -r) with lvextend.
The default install does not use all the space in the volume.
It leaves space so the user can expand / (root), add /home, or add other volumes.
If you have a 4TB drive using all of it for / may not be best. Many use separate volume(s) for data.