Solved

How do i verify which VDMK files are not in use for deletion on VMware esxi 4.1?

Posted on 2011-02-14
4
575 Views
Last Modified: 2012-05-11
Over the christmas holidays I reconfigured a VM and removed to virtual hard disks from it. At the time I didnt completely delete them from the SAN in case I needed them. I now definaqtely don t need them and want to delete the files from the array to reclaim the disk space. Problem I have is I think I know which files it is but I dont want to delete them unitl I've verified that they are not being used by the VM.

How do I go about this?
0
Comment
Question by:plug1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Expert Comment

by:coolsport00
ID: 34887319
Well, typically, the virtual disk you created is associated with the VM. So, though you removed it from the VM, it is still going to be in the VM's folder. If you recall the size of the virtual disk (.vmdk) you removed, just look inside the VM folder on the datastore the VM is on and delete the .vmdk. Typically, if a .vmdk is in use by a VM, you're not able to delete it (you'll get an error).

Hope that helps.

Regards,
~coolsport00
0
 
LVL 121
ID: 34887329
check inside the VMX file which VMDKs for certain you are using.
0
 
LVL 28

Accepted Solution

by:
bgoering earned 500 total points
ID: 34887650
It is difficult to tell what you are not using, but not all that hard to see what you are using and from that deduce what you are not using.

If you look at edit settings for the vm, then select each hard disk you are using you can see the path to the filename in use as circled below. Note this value. Next either use tech support mode to browse to the VMs folder and use the unix 'del' command to get rid of what you don't want, or use the datastore browser to select and delete the files, or you can even add them back to the vm with option "use existing disk" then browsing to them and once added you can select remove then delete from disk
 settings dialog
Good Luck
0
 
LVL 14

Author Closing Comment

by:plug1
ID: 34887710
Cheers mate!
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

628 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