Link to home
Start Free TrialLog in
Avatar of vmich
vmichFlag for United States of America

asked on

Getting an error when trying to delete a vmware datastore

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?
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Is the datastore in use?
Avatar of vmich

ASKER

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..
Avatar of vmich

ASKER

No sorry forgot to add that..
It is esxi 4.1
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 ?
Avatar of vmich

ASKER

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
It should state enabled for the datastore in the client.
Avatar of vmich

ASKER

no it says disabled for that..
do you have other LUNs on this host from the same SAN?
Avatar of vmich

ASKER

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..
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vmich

ASKER

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?
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.
Avatar of vmich

ASKER

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?
That's a 50/50 question.

if it is "in use" it will remain grayed out.
Avatar of vmich

ASKER

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
Avatar of vmich

ASKER

removed host access to lun via san..
That worked. Thanks once again Andrew...