Solved

Unable to delete datastore due to slots file there in datastore

Posted on 2014-01-19
11
5,797 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
  • 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
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) 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 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SSH commands for Nas4free 21 297
vmware 1 49
Vmware 5.5 3 22
What is the limitations using cloudstack in vmware environment vs kvm 4 35
How to update Firmware and Bios in Dell Equalogic PS6000 Arrays and Hard Disks firmware update.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now