Skip navigation
VMware

This Question is Answered (go to answer)

2,570 Views 13 Replies Last post: Sep 27, 2011 2:29 PM by Horinius RSS
AlbertWT Master 1,103 posts since
Apr 7, 2009
Currently Being Moderated

Nov 11, 2010 2:32 AM

Error in removing empty datastore - The resource is in use.

Hi Everyone,

 

I'm having problem with deleting my empty VMFS3 datastore I have restarted the host already but somehow it is still stuck cannot bedeleted, can anyone help me in deleting this empty VMFS3 datastore please ?

 

Thanks.

Attachments:
Kind Regards, AWT
 
FranckRookie Virtuoso User Moderators vExpert 1,516 posts since
Dec 15, 2008
Currently Being Moderated
1. Nov 11, 2010 3:27 AM in response to: AlbertWT
Re: Error in removing empty datastore - The resource is in use.

Hi Albert,

 

Have you ever stored Iso files on this datastore? I have seen such a problem with a VM still configured to use an Iso file on a datastore even if that file was removed. Check your VM settings.

 

Hope it helps.

 

Regards

 

Franck

FranckRookie Virtuoso User Moderators vExpert 1,516 posts since
Dec 15, 2008
Currently Being Moderated
3. Nov 11, 2010 5:02 AM in response to: AlbertWT
Re: Error in removing empty datastore - The resource is in use.

You can have VMs on other datastores pointing to a "ghost" file on that datastore. Have you check all your VMs' CD settings? There should be something pointing to this datastore that locks it and prevent its deletion.

ravirhce Novice 14 posts since
Feb 26, 2009
Currently Being Moderated
4. Nov 11, 2010 5:39 AM in response to: FranckRookie
Re: Error in removing empty datastore - The resource is in use.

Hello, Is there other ESX servers which are accessing this datastore?

 

Regards,

jamesbowling Master vExpert 761 posts since
Sep 2, 2010
Currently Being Moderated
5. Nov 11, 2010 6:27 AM in response to: AlbertWT
Re: Error in removing empty datastore - The resource is in use.

Sounds to me that you have a VM that is possibly pointing to something that was on that datastore.  I would check that you don't have any ISOs mounted to any of the VMs or possibly a VMDK that was linked there.

If you found this at all helpful please award points by using the correct or helpful buttons!  Thanks!

James B. | 2011/2012 vExpert | Houston VMUG Leader | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
Rich123 Enthusiast 28 posts since
Nov 11, 2010
Currently Being Moderated
6. Nov 11, 2010 6:43 AM in response to: AlbertWT
Re: Error in removing empty datastore - The resource is in use.

I like to use the "Maps" tab to see if any VMs are still accessing the datastore.  It's much easier than checking the settings for lots of VMs.

 

Select the "Maps" tab and only put a check in the box for VM to datastore

Click on Apply Relationships

If there are any lines to the datastore you want to delete, that means a VM is still pointing to the datastore.

If that's the case, edit the settings for the VM so it's not pointing to that datastore anymore.

jamesbowling Master vExpert 761 posts since
Sep 2, 2010
Currently Being Moderated
7. Nov 11, 2010 6:58 AM in response to: Rich123
Re: Error in removing empty datastore - The resource is in use.

How funny, I have never thought to do that!  That is a great tip!

If you found this at all helpful please award points by using the correct or helpful buttons!  Thanks!

James B. | 2011/2012 vExpert | Houston VMUG Leader | Blog: http://www.vSential.com | Twitter: @vSential --- If you found this helpful then please awards helpful or correct points accordingly. Thanks!
AnsgarOnTVE Novice 13 posts since
Oct 1, 2008
Currently Being Moderated
9. Nov 11, 2010 11:58 PM in response to: AlbertWT
Re: Error in removing empty datastore - The resource is in use.

 

I faced the same problem, I checked every VM and couldn't find a VM using that datastaore. Eventually the maps function showed me that a template was still using the datastore for an ISO file. After correcting this I was able to delete the datastore.

 

 

 

 

 

Ansgar

 

 

Horinius Hot Shot 319 posts since
Jun 20, 2006
Currently Being Moderated
11. Sep 27, 2011 9:29 AM in response to: Rich123
Re: Error in removing empty datastore - The resource is in use.

Rich123 wrote:

 

I like to use the "Maps" tab to see if any VMs are still accessing the datastore.  It's much easier than checking the settings for lots of VMs.

[deleted]

I'm also unable to delete a datastore.  However, I don't see any "Maps" tab.  But there's no other hints in this discussion to let me find out where this "Maps" is.  Could someone help?

Walfordr Expert 302 posts since
Dec 23, 2008
Currently Being Moderated
12. Sep 27, 2011 1:40 PM in response to: Horinius
Re: Error in removing empty datastore - The resource is in use.

Horinius wrote:

 

Rich123 wrote:

 

I like to use the "Maps" tab to see if any VMs are still accessing the datastore.  It's much easier than checking the settings for lots of VMs.

[deleted]

I'm also unable to delete a datastore.  However, I don't see any "Maps" tab.  But there's no other hints in this discussion to let me find out where this "Maps" is.  Could someone help?

The Maps tab is in vCenter.  Its pretty much on every object (datacenter, host, cluster, vms), you should not be able to miss it.  You can also find Maps on the Home page of vCenter when you connect.

Robert -- BSIT, VCP3/VCP4, A+, MCP -- Please consider awarding points for "helpful" and/or "correct" answers.
Horinius Hot Shot 319 posts since
Jun 20, 2006
Currently Being Moderated
13. Sep 27, 2011 2:29 PM in response to: Walfordr
Re: Error in removing empty datastore - The resource is in use.

Oh I see!  I don't have vCenter, that's why I couldn't find it.  Too bad for me.  Forget about the "Maps" tabs then.

Bookmarked By (0)

Share This Page

Communities