I am in the process of cleaning up unused VM folders on our SAN. So I noticed that if a VM was in Inventory, there was not a .vmx file in the Datastore folder for that VM. I looked through every active VM on three LUN and the same thing applied.
However, every vm that was in the datastore, but not in inventory, had a .vmx file in the datastore folder.
My assumption was that active/in inventory VM's do not have a .vmx file, and not active/not in inventory do.
However, I have some test VM's running on a local store on the host (not on the SAN) and active/in inventory VM's have a .vmx file. Which blows my assumption out of the water.
Should all VM's have a vmx file, active or not?
Is the a better way to determine if a datastore object is not active and might be deleted?