I've tried every suggestion out there, and still can't remove one datastore in my vCenter.
(I've not been able to reboot the hosts, or even put them in maintnenace - that's not an option at the moment).
2 hosts in a vCenter datacenter, not clustered.
I've been able to remove other datastores in this configuration, but cannot remove this particular datastore. I have 3 active datastores serving VM's other than this one (which has no VM's or files of any kind that I can see).
I've done the following:
- migrated all VM's.
- checked all vmx files for references to the datastore
- found 2 VM's not in inventory or powered on, which referenced the datastore - changed those
- deleted the .dvsData folder from the datastore
- browse datastore from vSphere client - no vm files
- SSH to hosts and "ls -l" the datastore - no files of any kind show (hidden files? don't know, I kid of assume there is, since it won't let me delete the datastore)
- Not used for HA (the 2 hosts are not in a cluster)
- made sure I/O Control is disabled on all hosts
- even followed this: VMware Front Experience: How to disable Storage I/O Control for an unavailable datastore
- no snapshots exist on any of the vm's that *were* on this datastore
- also checked for orphaned *-00000x.vmdk on migrated vm's - none exist
- unmounted the datastore
- this works from one host, but not the other.
- unmounting from host1 gives the red "X" on "no virtual machines exist (all others are green)
- unmounting from host2 unmounts the datastore on host2 but it still shows as mounted on host1
- deleting the datastore (whether mounted or not) fails with the "resource in use" error