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?
LVL 1
vmichAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Is the datastore in use?
0
vmichAuthor Commented:
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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Are you using 5.x ?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

vmichAuthor Commented:
No sorry forgot to add that..
It is esxi 4.1
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
vmichAuthor Commented:
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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
It should state enabled for the datastore in the client.
0
vmichAuthor Commented:
no it says disabled for that..
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
do you have other LUNs on this host from the same SAN?
0
vmichAuthor Commented:
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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I think I would remove the LUN from the SAN, and re-scan on the HBA
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
vmichAuthor Commented:
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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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
vmichAuthor Commented:
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
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
That's a 50/50 question.

if it is "in use" it will remain grayed out.
0
vmichAuthor Commented:
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
vmichAuthor Commented:
removed host access to lun via san..
That worked. Thanks once again Andrew...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.