Expand storage
This process extends the logical volume and resizes the filesystem to utilize all remaining unallocated space on your primary hard drive.
-
Extend the logical volume
Section titled “Extend the logical volume”Terminal window sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv -
Resize the filesystem
Section titled “Resize the filesystem”Terminal window sudo resize2fs /dev/ubuntu-vg/ubuntu-lv -
Verify
Section titled “Verify”Terminal window df -h /