Expand Space without Rebooting VM

Current usage disk with lsblk command disk-overview

And here is LVM partition table
lvm-overview

First step we need grow partition in /dev/sda3, install package growpart first

dnf install -y cloud-utils-growpart

Then we resize partition with this command

growpart /dev/sda 3

growpart-result

See the different before and after, if you don’t use LVM partition scheme just execute resize2fs /dev/sda3 to full fill the partition.

pvresize /dev/sda3
pvs
vgs

pvresize-result

Now you’re ready to extent the LVM partition

lvresize --extents +100%FREE --resizefs /dev/vg0/root

lvm-result

If you just resize partition only 20%, this sample command

lvresize --size +20G --resizefs /dev/vg0/root

Expand Space without Rebooting VM in ESXi Guest Host

Re-scan the SCSI Bus to Add a SCSI Device Without rebooting the VM using the following command
First, check the name(s) of your scsi devices.

ls /sys/class/scsi_device/

Then rescan the scsi bus. Below you can replace the ‘0\:0\:0\:0′ with the actual scsi bus name found with the previous command. Each colon is prefixed with a slash, which is what makes it look weird.

echo 1 > /sys/class/scsi_device/0\:0\:0\:0/device/rescan

Resize disk but no space left

if there is a condition where there is no space left on the block device, you can use the following command:

mount -o size=10M,rw,nodev,nosuid -t tmpfs tmpfs /tmp

then do the same workaround to resize the disk

References