Hi,
I am asking this question all over the place but still cant find answer after almost a year. Hopefully someone that knows that answer would be able to answer.
I have some virtual machines that are removed from inventory but they are still on some datastores but I dont know where. Of course I can use days and browse each datastore and eventually find where they are but this would take long time to complete.
Is there any script that I would be able to find virtual machines that are still on the datastores but not registered with vCenter. Not to delete them not to do anything just identify and see which machines are residing on the datastores but not registered with vCenter./ Some people say that this is impossible and it is manual process maybe it is I am not sure but just want to find out whether someone did this in the past
A great tool to find such "zombies" is RVTools. It will report such findings in its vHealth tab.
André
PS: Discussion moved from Community Website Help to VMware vCenter™ Server
A great tool to find such "zombies" is RVTools. It will report such findings in its vHealth tab.
André
PS: Discussion moved from Community Website Help to VMware vCenter™ Server
As Andre suggested, RV tools is the best and Simple tool to identify the Zombie disk ,
Run the RVtools , Export the results and under the Health column you can see the list of Zombie disk that are present in your environment ,
If you want to try command line , Use this
Log into the VMware ESX/ESXi host as the root user
vmware-cmd -l
vim-cmd vmsvc/getallvms
find / -name "*.vmx"
This will list the Result as below
scsi0:1.present = "true"
scsi0:1.fileName = "/vmfs/volumes/23b2f3ea-980a1c90-3333-00112233cc66/diskStore/secondHardDisk.vmdk"
Let me know if you require any other help
Right on the money man this is what I was looking for I used RV tools but never went into vHealth now i see them all thanks