Solved

Unable to delete datastore due to slots file there in datastore

Posted on 2014-01-19
11
7,608 Views
Last Modified: 2014-02-18
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
0
Comment
Question by:patron
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 2
11 Comments
 
LVL 1

Author Comment

by:patron
ID: 39793454
Getting error: Ressource is in use

and error caused by a file : slots file in datastore
0
 
LVL 13

Expert Comment

by:Abhilash
ID: 39793530
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.
0
 
LVL 1

Author Comment

by:patron
ID: 39793569
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?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 375 total points
ID: 39793582
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.
0
 
LVL 13

Assisted Solution

by:Abhilash
Abhilash earned 125 total points
ID: 39793583
Slotsfile is created when you enable SIOC.
http://infrastructureguy.wordpress.com/2012/05/10/vmware-datastore-files/

Try renaming the datastore and then deleting it.
0
 
LVL 121

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE^2)
Andrew Hancock (VMware vExpert / EE MVE^2) earned 375 total points
ID: 39794201
Also have a look at this article

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

http://yuridejager.wordpress.com/2012/05/11/deleting-the-undeletable-datastore-the-resource-is-in-use-call-hostdatastoresystem-removedatastore-for-object-ha-datastoresystem-on-esxi-failed/

you can also see what files are in use

 #lsof

or

#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!
0
 
LVL 1

Author Comment

by:patron
ID: 39806979
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..
error-while-removing-datastore.jpg
plugin.jpg
0
 
LVL 1

Author Comment

by:patron
ID: 39806984
To locate where this file in use ?
0
 
LVL 1

Assisted Solution

by:patron
patron earned 0 total points
ID: 39806989
issue is as same as we can see there in url...

http://yuridejager.wordpress.com/2012/05/11/deleting-the-undeletable-datastore-the-resource-is-in-use-call-hostdatastoresystem-removedatastore-for-object-ha-datastoresystem-on-esxi-failed/

but unable to find solution..even vmware saying to reboot the host only ..!!
0
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 375 total points
ID: 39807007
Correct, that's the solution.
0
 
LVL 1

Author Closing Comment

by:patron
ID: 39866931
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question