Solved

Unable to delete datastore due to slots file there in datastore

Posted on 2014-01-19
11
6,523 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 119

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 119

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 119

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

785 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