Solved

Getting an error when trying to delete a vmware datastore

Posted on 2014-11-05
17
189 Views
Last Modified: 2014-11-05
I have a new datastore that I want to delete but each time I try I get the following error message:
Call "HostDatastoreSystem.RemoveDatastore" for object "datastoreSystem-7723

This datastore was not assigned to any vm as of yet but I need to delete it and then recreate it...
Any idea why I cant delete this and what I can do to delete it?
0
Comment
Question by:vmich
  • 9
  • 8
17 Comments
 
LVL 119
ID: 40423861
Is the datastore in use?
0
 
LVL 1

Author Comment

by:vmich
ID: 40423866
No I created it yesterday and did nothing with it along with 3 others and I was able to delete the 3 others but this one is giving me that error when trying to delete it..
0
 
LVL 119
ID: 40423883
Are you using 5.x ?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 1

Author Comment

by:vmich
ID: 40423895
No sorry forgot to add that..
It is esxi 4.1
0
 
LVL 119
ID: 40423915
Okay, I did wonder because 5.x, has a new facility to check what is in use, before it un-mounts and deletes.

Have you checked for content, at the console or SSH?

It's not in use by HA ?

Storage I/O Control ?
0
 
LVL 1

Author Comment

by:vmich
ID: 40423934
Well there are 3 host using it but like I said I was able to delete the other 3 new datastores without any errors but this one gives me the error.
How can I check for storage I/o control
0
 
LVL 119
ID: 40423952
It should state enabled for the datastore in the client.
0
 
LVL 1

Author Comment

by:vmich
ID: 40423970
no it says disabled for that..
0
 
LVL 119
ID: 40424050
do you have other LUNs on this host from the same SAN?
0
 
LVL 1

Author Comment

by:vmich
ID: 40424062
yes and they are working fine..
Like I said I created 4 new datastores yesterday but did not use them and then wanted to delete them today and was able to del 3 out of the 4..
0
 
LVL 119

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 40424096
I think I would remove the LUN from the SAN, and re-scan on the HBA
0
 
LVL 1

Author Comment

by:vmich
ID: 40424116
but if I do that, wont it leave the datastore as greyed out on the vmhost?
I thought you were supposed to delete the datastore first before removing the lun from the san?
0
 
LVL 119
ID: 40424127
In fact you are suppose to do lots of things, e.g. LUN masking, to stop iSCSI hanging, but that only became an issue in 5.x.

otherwise it's long and involved at the SSH or console prompt, trying to find the process, and shut it down.
0
 
LVL 1

Author Comment

by:vmich
ID: 40424162
So is ok to remove the lun from the san and then do the hba rescan and will this remove the datastore or will it stay on the host but greyed out?
0
 
LVL 119
ID: 40424212
That's a 50/50 question.

if it is "in use" it will remain grayed out.
0
 
LVL 1

Author Comment

by:vmich
ID: 40424221
No it is not is use which is why I don't understand why it gives me an error when trying to delete it..
Nothing ever is easy is it?? lol
0
 
LVL 1

Author Closing Comment

by:vmich
ID: 40424246
removed host access to lun via san..
That worked. Thanks once again Andrew...
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error upgrading from esxi 5.5 to 6.5 15 185
export VOF from ESXi 5.5, import to ESXi 4.1 8 55
Install esxi 6 14 46
Vyos VLANs 14 29
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

792 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