It looks like your Logical Volume Management (LVM) setup might be incorrectly reporting the size of your logical volume.
To resize the logical volume and the filesystem, follow these steps:
- Check current volume group free space:
vgdisplay ubuntu-vg
- Extend the logical volume:
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
- Resize the filesystem:
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
Let’s go through these commands step-by-step.
Step 1: Check current volume group free space
This command will show you the free space available in the volume group.
vgdisplay ubuntu-vg
Step 2: Extend the logical volume
Use the following command to extend the logical volume to use all available free space.
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
Step 3: Resize the filesystem
Finally, resize the filesystem to use the new space.
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv
After running these commands, your logical volume should correctly reflect the 133G size. Verify the changes with:
lsblk
df -h
Please execute these steps and let me know if you encounter any issues.