Reference: https://www.youtube.com/watch?v=58m0hnt0ij8
cfdisk
You must see free space.
Select
/dev/sda3, then from the bottom choose the option toresize, then it will show space, just press enterThen, from bottom choose option
writeand typeyesto confirmThen, from bottom choose option
quiteRun
pvresize /dev/sda3Check the free space:
sudo vgdisplay
Pay attention to Free PE / Size that is the available free space.
- Check partitions
df -h
The default partition will be something like /dev/mapper/ubuntu--vg-ubuntu--lv, note the current Available Space.
- 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)