VMware Cloud Community
amrsaeed
Contributor
Contributor

VM disk space increase

I would like some suggestions on the following scenario

We have an environment hosted with a third party that we imported (copied). The environment is around 420GB. After copying the environment to our local ESXI 4.0 server everything looks good. We recently noticed that we need to increase the size of our imported VM, because our data is increasing. So we increased the size of the VM from 420GB to 512GB using VMware Vsphere client. After doing that these are the things we noticed.

We noticed that though we have increased the size of VM from 420GB to 512Gb the primary partition (using fdisk -l) "/dev/sda1" remains the same meaning at 420GB but we did see an additional unallocated space (the difference) added which can be used for creation of a new partition to be used as extra space.

My question is that is this way ESXI server handles the space increase meaning if the VM disk size is increased the new space needs to be assigned & formatted to a new partition for use. We were assuming that by increasing the space of VM will automatically increase the default /dev/sda1 partition. Is there a way to expand the default /dev/sda1 partition with the extra space added instead of creating a new partition? Any tip would be nice.

0 Kudos
4 Replies
JaySMX
Hot Shot
Hot Shot

Increasing the size of the virtual disk through ESX does not inherently mean that the OS running within the VM will increase it's partition size. What OS is running in this VM? From your post, I assume it's a Linux VM?

-Justin
0 Kudos
timparkinsonShe
Enthusiast
Enthusiast

Your assumption is correct. Because your host doesn't know anything about the internals of your guest's filesystem - it's just a file to the host, it can resize but then it's up to the guest OS to utilise the extra space. As to how you resize said partition it really depends on what filesystem it has on it.

0 Kudos
amrsaeed
Contributor
Contributor

I am using RedHat Enterprise Linux v5 for Vm.

0 Kudos
AndreTheGiant
Immortal
Immortal

Have a look at:

http://kb.vmware.com/kb/1006371

Andre

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos