Solved

I have too many VMDK files on an ESXi VM.

Posted on 2014-04-12
7
1,677 Views
Last Modified: 2014-04-14
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?

Thanks.
0
Comment
Question by:gateguard
  • 3
  • 3
7 Comments
 
LVL 25

Assisted Solution

by:Zephyr ICT
Zephyr ICT earned 200 total points
ID: 39996966
Maybe not all files were deleted of that 400Gb drive ... If it was indeed a thin provisioned disk that would explain the 200Gb size maybe?

To make sure what the content is, you could create a temporary VM (Linux could work) and connect it to this VM to see the contents of the VMDK???
0
 
LVL 117
ID: 39996998
Did you actually use the option, Remove Hard Disk from virtual machine and delete from disk?

otherwise the virtual machine disk, would have been removed from the virtual machine but not deleted from the datastore.

Check in your VM Settings, what actually disks are being used, and then remove them virtual disks from the datastore using the datastore browser in the vSphere Client.
0
 

Author Comment

by:gateguard
ID: 39997010
As far as I remember I did use the option, Remove Hard Disk from virtual machine and delete from disk.

What's weird is the byte count is exactly the same for the two vmdk files, 209,715,200,000, so it seems unlikely that one is the remnant of the 400gb original file.  Somehow I asked for one 200gb drive, got one 200gb drive and ended up with two 200gb files.

In settings I show only two drives: 60gb and 200gb, both thick provisioned.

Anyway, I'll try the suggestion of connecting one of the files to a different VM to see what's on it, but first I want to point out something interesting:

As I said, I downloaded the whole folder to a windows machine (using the datastore browser) and if I do a dir in windows, here are the files I get:

04/13/2014  06:05 AM    <DIR>          .
04/13/2014  06:05 AM    <DIR>          ..
04/13/2014  05:12 AM                13 vm100-aux.xml
04/13/2014  05:12 AM                73 vm100-ee8eb13e.hlog
04/13/2014  05:12 AM    64,424,509,440 vm100-flat.vmdk
04/13/2014  05:00 AM             8,684 vm100.nvram
04/13/2014  05:12 AM               501 vm100.vmdk
04/13/2014  05:00 AM                43 vm100.vmsd
04/13/2014  05:00 AM             3,567 vm100.vmx
04/13/2014  05:12 AM             3,240 vm100.vmxf
04/13/2014  05:38 AM   214,748,364,800 vm100_1-flat.vmdk
04/13/2014  05:38 AM               504 vm100_1.vmdk
04/13/2014  05:12 AM         1,459,396 vmware-14.log
04/13/2014  06:05 AM           229,640 vmware-15.log
04/13/2014  05:12 AM           172,316 vmware-16.log
04/13/2014  05:12 AM           223,860 vmware-17.log
04/13/2014  05:12 AM           225,826 vmware-18.log
04/13/2014  05:12 AM           222,424 vmware-19.log
04/13/2014  05:12 AM           222,233 vmware.log
04/13/2014  06:05 AM   214,748,364,800 vmapp-flat.vmdk
04/13/2014  05:38 AM               478 vmapp.vmdk

This machine (named vmapp) was originally cloned from a machine named vm100.  

In the windows download of this folder, the file size is 214,748,364,800, not 209,715,200,000.

But that's not the interesting thing.  The interesting thing is those two files are exactly the same size.

And BTW, there are no snapshots.  I may have used snapshots at one point (can't remember with certainty now because I was working on several VM's at the same time) but if I did, they are all deleted.

Thanks for your help on this.
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 117
ID: 39997193
Check the VM Current Properties and Settings, if the disks in use are these?

vmapp-flat.vmdk - this could be a different VM? as the name is different ?

vm100 ?
0
 

Author Comment

by:gateguard
ID: 39998259
This was a clone of another machine, vm100, and the original files had that other machine's name (by clone I mean I copied the files to another location and opened a new vm using them).

Then I added the new drive under the NEW machine's name (vmapp).  that's how there are two different names.

But there's only one vm: vmapp.

vm100 is not using these files.

Thanks.
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 300 total points
ID: 39998328
if you have checked the VM properties, e.g. virtual disks, and the VM is not using them, they can be removed.
0
 

Author Closing Comment

by:gateguard
ID: 40000572
I did just delete the extra file and everything is fine.

Thanks for all your help.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now