Just finished provisioning a VM on VMware, i allocated 2TB of disk space during the provisioning. I installed Ubuntu 22.04.5 LTS successfully. However, when i first connected to the CLI and check the disk space “df -h”, i don’t see all the 2TB that i provisioned to the VM, all is see is:
# df -h
How can i recover the missing disk and add it to the live system?
You can extend the ubuntu logical volume (“ubuntu-lv”) and resize the filesystem. Use the commands below:
1.) To extend the logical volume using all the available free space, use the “+100%FREE” option:
# lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
2.) To resize the file system on the logical volume, use “resize2fs” command:
# resize2fs /dev/ubuntu-vg/ubuntu-lv
3.) Check your new disk size again using “df -h”