VMware Cloud Community
cer113
Enthusiast
Enthusiast
Jump to solution

Find out virtual machines on storage

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

Reply
0 Kudos
1 Solution

Accepted Solutions
a_p_
Leadership
Leadership
Jump to solution

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

View solution in original post

Reply
0 Kudos
3 Replies
a_p_
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
Nithy07cs055
Hot Shot
Hot Shot
Jump to solution

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

Thanks and Regards, Nithyanathan R Please follow my page and Blog for more updates. Blog : https://communities.vmware.com/blogs/Nithyanathan Twitter @Nithy55 Facebook Vmware page : https://www.facebook.com/Virtualizationworld
Reply
0 Kudos
cer113
Enthusiast
Enthusiast
Jump to solution

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

Reply
0 Kudos