ESXi

 View Only
  • 1.  Delete Datastore Error

    Posted Jun 24, 2014 09:37 AM

    Hello, recently I have migrated vm via storage vMotion. Now when I try to delete the old datastore it says "The resource is in use". I have investigated that no ISO files have been mounted to the vm from this datastore and it's empty. Can you help me?



  • 2.  RE: Delete Datastore Error

    Posted Jun 24, 2014 11:27 AM


  • 3.  RE: Delete Datastore Error

    Posted Jun 24, 2014 12:29 PM

    I've checked all of these before. It didn't help :smileysad:  Is there any command on Power CLI to find out whether datastore related some object in vsphere environment or not? By the way I'm using vsphere 4.1



  • 4.  RE: Delete Datastore Error

    Posted Jun 24, 2014 07:16 PM

    Does any of your VM's have snapshots? Maybe an ISO was mounted at the time the snapshot was created!? In this case you will need to delete the snasphot. You may also check your VMs "Summary" tabs in the vSphere Client, to see whether the datastore you want to remove still shows up for one of them.

    André



  • 5.  RE: Delete Datastore Error

    Posted Jun 24, 2014 07:37 PM

    I've checked snapshots too. What a dilemma ha?! :smileysad:



  • 6.  RE: Delete Datastore Error

    Posted Jul 03, 2014 04:52 PM

    Can share a couple of screenshots.?

    • Browse Datastore
    • Configuration->Storage->Datastore->Right click Properties


  • 7.  RE: Delete Datastore Error

    Posted Jul 04, 2014 05:18 AM

    Here are, I've attached..



  • 8.  RE: Delete Datastore Error

    Posted Jul 04, 2014 10:03 AM

    Hi forzajuve,

    Could you post ESX shell output, please? Rescan your SAN again. What is the array you are connected to?

    Last resort - you can destroy or unmask the LUN on array and recreate/reconnect it later.



  • 9.  RE: Delete Datastore Error

    Posted Jul 04, 2014 11:32 AM

    Hi sebek,

    What did you mean about ESX shell output? The SAN storage is IBM DS4700. I have tried to delete datastore by deleting mapping from storage appliance but it haven't worked ether.



  • 10.  RE: Delete Datastore Error

    Posted Jul 04, 2014 11:56 AM

    I meant for example output of ls command issued from ESX host console. Did you try to delete the volume from different ESX? Try "esxcli system coredump file list" than check if coredump file is locking your volume

    You can find detailed procedure here Cannot remove datastore * because file system is busy. | Virten.net

    Have a look here http://www.vmadmin.co.uk/vmware/35-esxserver/90-vmfslockedfilerelease

    Try to use vmkfstools with -B or -L switches



  • 11.  RE: Delete Datastore Error

    Posted Jul 04, 2014 12:31 PM

    It's DONE! I don't know why but when I tried to get the error message again, it deleted without any error. All I did recently was installing VAAI driver to all 3 hosts. I didn't do anything else. Sebek, I think core dump files are used in version 5 and higher it would not help me anyway. But anyway THANK YOU GUYS for your RESPONDS!                 I appreciate it!!!