Linux – Increasing disk size of Linux guest in VMware

linuxubuntu-12.04vmware-esxi

After increasing the size of my Ubuntu 12.04 LTS VM's OS disk by editing the guest VM's settings through the vSphere client, I do not see the increase in disk size when I check from within the OS (df -h).

On a windows VM I went into disk manager and extended the volume to use the unallocated space (created by increasing the disk size). How do I ensure that the OS sees this disk space increase in Linux?

Best Answer

The expanded disk size is unallocated and unpartitioned. You'll need to partition the new disk space first using fdisk or diskpart. After that, you may need to format the new partition. Depending on what kind of filesystem you're using, the commands will differ, but as an example, for ext3 you would call mkfs.ext3 Then depending on the OS, you'll be able to grow the logical volume. If you're using LVM, you can simply expand the original volume after you've partitioned/initialized the new space.

Related Topic