Solved

Unable to delete datastore due to slots file there in datastore

Posted on 2014-01-19
11
6,872 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
Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
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:
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …

809 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