VMware Cloud Community
tdubb123
Expert
Expert

unable to delete datastore - The resource is in use

Screen Shot 2017-10-19 at 6.56.02 AM.png

any idea why? datastore is empty

10 Replies
SureshKumarMuth
Commander
Commander

1. Goto datastore views in the vsphere client/webclient and check virtual machine tab to see if there are any virtual machine running from this DS.

2. Check if this datastore is configured as a HA heartbeat datastore for any cluster , that will block removing the datastore.

Regards,
Suresh
https://vconnectit.wordpress.com/
0 Kudos
tdubb123
Expert
Expert

checked each cluster and no cluster using this DS for heartbeating. no templates or vms on this folder.

0 Kudos
tdubb123
Expert
Expert

checked each cluster and no cluster using this DS for heartbeating. no templates or vms on this folder.

0 Kudos
SureshKumarMuth
Commander
Commander

can you please post this output from ssh session of esxi host

1. go to datastore location

2. date

3. touch *

4. ls -al

Also perform a rescan once and try deleting the DS again.

Regards,
Suresh
https://vconnectit.wordpress.com/
0 Kudos
tdubb123
Expert
Expert

Screen Shot 2017-10-19 at 7.59.15 AM.png

0 Kudos
tdubb123
Expert
Expert

rescanned but still cannoot delete

0 Kudos
SureshKumarMuth
Commander
Commander

can you run this command and post the output

vmkfstools -D /vmfs/volumes/<ds name>/vmkdump

looks like this DS has been configured as a dump partition for one of the hosts

Regards,
Suresh
https://vconnectit.wordpress.com/
hussainbte
Expert
Expert

try to delete the datastore again and share the vmkernel log file from the host for that timestamp.. if you can share logs

If you found my answers useful please consider marking them as Correct OR Helpful Regards, Hussain https://virtualcubes.wordpress.com/
0 Kudos
a_p_
Leadership
Leadership

Check whether any of the VMs configurations still points to the datastore, e.g. to an .iso image in the VM's virtual CD-ROM settings. If so, set the CD-ROM to "Client-Device".


André

0 Kudos
Sauce18t
Contributor
Contributor

I got burned by this and it turned out that I had a template on the datastore I wanted to delete.  I had to convert the template into a vm an then move it off the datastore.  I was thinking it was a dump lock file or something else more complex.

Hope this is the case for you to.

0 Kudos