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
VMwareVirtualization

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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.
gheist

PowerGUI plugin for vmware can sort those out fairly quickly
FireBall

ASKER
is there any command for power gui gheist

we have 400+ vds andrew it is impossible to find one by one
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
gheist

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
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.