I ran the report Garbage Files In Folder on all of my datastores and noticed that there are folders listed that do not contain garbage files. In fact it is showing folders that contain live active VM's that are registered/running in vcenter. How exactly is it determining the status of the files and how do I distinguish which files are the "garbage files" vs the files that should not be deleted. (outside of the obvious ones of course like .vmx .vmdk etc....)
For example the report shows a folder named VM-TFS as having garbage files. It says there are 42.79 GB of garbage files in that folder. When I click the link to the folder, it lists all the files in that folder with the garbage file size totaling 42.79GB for ALL the files in that folder. However, that server is a live-actively running server in our development cluster. There is nothing garbage about it.
Another listing for a server named VM-TSIMIS03 (30.01GB of gabage files). When you click the link it shows the listing of files. The file that it thinks is garbage is the -flat.vmdk file which is 30.00gb in size. However, that server is one of the terminal servers in our production cluster that is part of the main CRM application run by our organization. If I were to delete it, I would probably be looking for work later today.
So what constitutes a garbage file? Is there something wrong with this report and how can it be fixed to show the correct data?