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
570 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
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 118
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
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.

920 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

16 Experts available now in Live!

Get 1:1 Help Now