Link to home
Start Free TrialLog in
Avatar of FireBall
FireBall

asked on

Esx find not added vmx files

Our stuff has made a mistake while removing virtual machines , they had bring the vmx files and just removed from the invertory.
We are using cloud nodes and 1 storage with 3HDD on storage.
Is there any way to find vmx directories which is not added to the cluster
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Can you browse the VM folders, on the VMFS datastore, and add the virtual machines back ?

You could run a script, to look for orphaned files, which are not registered with the inventory.
PowerGUI plugin for vmware can sort those out fairly quickly
Avatar of FireBall
FireBall

ASKER

is there any command for power gui gheist

we have 400+ vds andrew it is impossible to find one by one
Install powergui power pack for vmware (which requires vmware powercli from vmware)
Then look for "orphaned vmdk report"

Alternatively on a single ESXi machine you can SSH and run find / -name *vmdk -mtime +10
i.e look for files named vmdk and not modified recently
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial