I've mistakenly allocated more disk space of 50 GB to the wrong disk. The VM has 2 disks and I was
intending to add more disk space to disk 1 but ended up adding it to disk 2.
I haven't expanded the mistakenly allocated disk space in the OS. It still shows up as Unallocated in Disk Management.
Is there a way to delete the unallocated 50GB in ESXi so it frees up the space?
Thanks
Hi there,
Unfortunately not. There is no way to reduce the size of a VMDK once you have allocated the space or not officially anyway.
Not that I'm advocating this or even suggesting you give it a try but there is a way using the linux dd command. See the answer from Continuum in this post if you want to give this a try: Help with VM HDD resizing
I'm assuming from the drive numbers that the disk wrongly expanded was the data drive. In this case then you could add a new disk at the correct size and then just move the data, switch the drive letters and remove the original when finished. Another option is to use VMware Converter to make a resized copy. A lot of this depends on space that you might have in the environment to do this. Before doing any of this I would definitely make sure you have a known restore-able backup!!
Kind regards.
Hi there,
Unfortunately not. There is no way to reduce the size of a VMDK once you have allocated the space or not officially anyway.
Not that I'm advocating this or even suggesting you give it a try but there is a way using the linux dd command. See the answer from Continuum in this post if you want to give this a try: Help with VM HDD resizing
I'm assuming from the drive numbers that the disk wrongly expanded was the data drive. In this case then you could add a new disk at the correct size and then just move the data, switch the drive letters and remove the original when finished. Another option is to use VMware Converter to make a resized copy. A lot of this depends on space that you might have in the environment to do this. Before doing any of this I would definitely make sure you have a known restore-able backup!!
Kind regards.
I know this is a very old post but things are still the same even these espicially for LINUX VM so decided to post a reply...I had the same scenario, had a UBUNTU headless server VM on a ESXI host which was mistakenly allocated 300GB, the actual OS and application were well within 50 GB, I had to send copies of it to various location and the 300GB was a time consuming process. Tried everything i.e Gparted, Excli, Vmware standalone convertor, nothing worked for LINUX. Below are the steps that has finally worked for me.
I hope this hepls someone, I had stumbelled into too many other posts when I had the same issue, but none solved my issue. Hope this helps someone else.