Skip to content

Instantly share code, notes, and snippets.

@gmolveau
Created June 16, 2022 21:02
Show Gist options
  • Save gmolveau/0218e7d649d0f598d9b2bac4240103bd to your computer and use it in GitHub Desktop.
Save gmolveau/0218e7d649d0f598d9b2bac4240103bd to your computer and use it in GitHub Desktop.
resize ubuntu--vg-ubuntu--lv / partition / sda3 to 100% of disk size
## source : https://packetpushers.net/ubuntu-extend-your-default-lvm-space/
# first, check
df -h
sudo lvdisplay
# extend
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
# check that size is now correct
sudo lvdisplay
# resize
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
# final check
df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment