I have too many VMDK files on an ESXi VM.
Posted on 2014-04-12
I created a Server 2012r2 VM on ESXi 5.5 and chose a 60gb thick drive for the OS.
Next I added a 400GB thin drive to use as a d-drive in windows.
Later I decided to add a 3rd drive, a 200GB thick drive as an e-drive in windows.
I decided I didn't want the d-drive (400GB thin) and copied all its files to the e-drive, removed the d-drive from Windows partitions (took it offline), shut down the VM, removed the 400GB hard drive from settings, and then browsed the datastore and deleted the vmdk file associated with that 400GB hard drive.
I booted back up, looked in windows, everything looking good and normal. No d-drive, e-drive with all the files I put on it and 200GB.
But when I look in the datastore, I see three VMDK files: one 60GB file (my operating system c-drive), and two 200GB vmdk files (one with a _1.vmdk in the name).
With the VM offline I uploaded the entire folder to a windows drive and verified that the files really are that size and taking up that much space.
So I have ONE 200GB hard drive and TWO 200GB vmdk files associated with that hard drive.
What's going on here and how do I fix this?