So you need to resize your disk? This is a very common occurance as most Ubuntu Auto Installers (Like PXE) use a default 100GB drive size no matter what size disk you have.
Login to your server via root ssh and issue the following commands:lvm
lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
exit
And then, we need to resize the file system to use the new available space in the logical volume.resize2fs /dev/ubuntu-vg/ubuntu-lv
Your response should look similar to:
resize2fs 1.44.1 (24-Mar-2018)
Filesystem at /dev/ubuntu-vg/ubuntu-lv is mounted on /;
on-line resizing required old_desc_blocks = 1, new_desc_blocks = 58
The filesystem on /dev/ubuntu-vg/ubuntu-lv is now 120784896 (4k) blocks long. #
Finally, you can check that you now have available space: df -h
Your response should look similar to:
Filesystem Size Used Avail Use% Mounted on
tmpfs 13G 2.8M 13G 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 1.8T 83G 1.7T 5% /
tmpfs 63G 0 63G 0% /dev/shm
tmpfs 5.0M 28K 5.0M 1% /run/lock
/dev/sda2 2.0G 254M 1.6G 14% /boot
/dev/sda1 1.1G 6.1M 1.1G 1% /boot/efi
tmpfs 13G 4.0K 13G 1% /run/user/0