Unable to delete datastore due to slots file there in datastore

i have migrated all my vms to other datastore to remove the existing datatsore,but when m trying to delete ..can see one slots file is showing under folder and not allowing me to delete: getting msg: error occured

tried to disable storage I/O ..no luck after that

please advice what that slots file is ?

 and how can we make sure if datastore is not in use by any process,before removing it ?

Please advice to resolve this problem
patronTechnical consultant Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

patronTechnical consultant Author Commented:
Getting error: Ressource is in use

and error caused by a file : slots file in datastore
Its because of Storage I/O control being enabled on the datastore. Disable it and then delete it.
To disable it

    Select a datastore in the vSphere Client inventory and click the Configuration tab.
    Click Properties.
    Under Storage I/O Control, deselect Enabled.
    Click Close.
patronTechnical consultant Author Commented:
Thanks for sharing this info..already tried that option .. but no luck

anyone please advice what that slot file is showing there on datatsore while i have migrated  all vms form that datstore to others in cluster ?
 m able to rename that file..but when trying to delete..:error caused by file

after file rename i can see another file by name slosfile is automatically created there in datastore

please advice best way to check if we can check if perticuler datatsoe is not in use by any file/objcet there in clsuter/host..so that can be removed safely?
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Does it say it's BUSY? (also check the logs /var/log/vmkernel.log)

I have seen this issues, only this week, and it is very difficult to resolve.

It can be Storage I/O, or another process using the datastore, and this needs to be DISABLED ON ALL Hosts access the datastore.

see here

Cannot remove datastore - VMware Knowledge Base

Deleting a datastore from the Datastore inventory results in the error

What we have seen, is you will be able to unmount this LUN, from the majority of hosts in your cluster escept one.

I would recommend, that your esclate a support request with VMware, to resolve this issue.
Slotsfile is created when you enable SIOC.

Try renaming the datastore and then deleting it.
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Also have a look at this article

VMware KB: Unmounting a LUN or detaching a datastore/storage


you can also see what files are in use



#vmkvsitools lsof

Are you using any SAN Vendor software or plugins, which manage your LUNs?

e.g. NetApp, EMC or Dell Equallogic ?

you can also use this, to see if files are in use....

esxcli storage core device world list -d <device>

we have found we have lots of helpers, after the VMs have been removed!
patronTechnical consultant Author Commented:
using one IBM Plugin named VSC [image attached]on vc 4.1 and this should not be issue here..as we have removed multiple datastore earlier in same way ..?

can we locate where that file in use..bcoz erro m getting is..
patronTechnical consultant Author Commented:
To locate where this file in use ?
patronTechnical consultant Author Commented:
issue is as same as we can see there in url...


but unable to find solution..even vmware saying to reboot the host only ..!!
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Correct, that's the solution.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
patronTechnical consultant Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.