ESXI-GROW-DISK(1)marcp.xyzESXI-GROW-DISK(1)
NAME
esxi-grow-disk - grow a VM disk without reboot
EXAMPLES
# Part1: # In the esxi GUI increase the VM's disk size. # Part2: # Open a shell to your VM and tell the kernel to rescan your device. In this case sda. $ echo 1 > /sys/class/block/sda/device/rescan # Install growpart $ yum install cloud-utils-growpart $ apt install cloud-guest-utils # Expand your partition using growpart. (Yes there is a space between /dev/sda and the partition number. Odd syntax right?) $ growpart /dev/sda 2 # And finally resize your file system to the newly acclaimed space $ resize2fs /dev/sda2
SEE ALSO
resize-ext4(1), virsh-sasl-password(1)
marcp.xyz2022-03-22ESXI-GROW-DISK(1)