VMware vSphere

 View Only
  • 1.  unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 01:56 PM

    any idea why? datastore is empty



  • 2.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 02:00 PM

    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.



  • 3.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 02:25 PM

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



  • 4.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 02:26 PM

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



  • 5.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 02:31 PM

    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.



  • 6.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 03:00 PM



  • 7.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 03:00 PM

    rescanned but still cannoot delete



  • 8.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 03:32 PM

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



  • 9.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 05:32 PM

    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é



  • 10.  RE: unable to delete datastore - The resource is in use

    Posted Mar 12, 2018 06:53 PM

    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.



  • 11.  RE: unable to delete datastore - The resource is in use

    Posted Oct 19, 2017 03:20 PM

    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