Extend ubuntu storage

cfdisk command to resize the partition.
pvresize /dev/sda3
lvresize /dev/mapper/ubuntu--vg-ubuntu--lv /dev/sda3

df -Th (to check if XFS or EXT4)
XFS:
xfs_growfs /dev/mapper/ubuntu--vg-ubuntu--lv
EXT:
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Last updated

Was this helpful?