Reference: https://www.youtube.com/watch?v=58m0hnt0ij8
1. Check the free space:
sudo vgdisplay
Pay attention to Free PE / Size
that is the available free space.
2. Check partitions
df -h
The default partition will be something like /dev/mapper/ubuntu--vg-ubuntu--lv
, note the current Available Space.
3. Extend
sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
Check extended size:
df -h
Top comments (0)