View Only
  • 1.  Old vmdk files

    Posted May 28, 2015 10:54 AM


    I have a few datastores which have a few folders with some old Virtual Machine names we used earlier in our infrastructure but don't exist now. These folders contain nothing else but some .vmdk files that are attached to other VMs and they are still in use (the modified date for the .vmdk files is from this week). The .vmdk file names are still based on the old Virtual Machines that used them earlier. My question is:

    Is it possible to know what virtual machines are using those .vmdk files currently?


  • 2.  RE: Old vmdk files
    Best Answer

    Posted May 28, 2015 11:08 AM

    Maybe this PowerCLI script helps:

    If you prefer some additional tool, RVTools might help.

  • 3.  RE: Old vmdk files

    Posted May 28, 2015 11:51 AM

    i would use storage vmotion to rename the vmdk file and at the same time the vmdk file is moved to the same folder as the vmx and so on is...

  • 4.  RE: Old vmdk files

    Posted May 28, 2015 12:03 PM

    Hi Bruno

    That's what I plan to do also, but I first need to know what virtual machine is using those old .vmdk files. I'll try to modify the PowerCLI script cykVM pointed out to filter out the .vmdk files that I need information on and see how it goes.


  • 5.  RE: Old vmdk files

    Posted May 28, 2015 12:11 PM

    ou yes, you don't know whitch is the VM that holds the VMDK. my fault -.-

    with the script you should solve your problem...

  • 6.  RE: Old vmdk files

    Posted May 28, 2015 12:58 PM

    I modified the if statement a little like below and got the expected result:

    if ($VMDK.Filename -like "*name.vmdk*")

    Thanks guys.