Volume deleted on storage cannot be removed from vSphere

I deleted a volume on my storage without unmounting it in vSphere.  Now it no longer shows on my storage, but it does show in vSphere.  How can I remove it from my vSphere environment because I cannot delete or unmount the volume in vSphere (it gives an error if I try because the volume doesn't exist any longer).
BrianAsked:
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:
I deleted a volume on my storage without unmounting it in vSphere.  

Poor VMware Admin, that can cause an APD! and the result can be a crashed ESXi host!

It is likely that there is an object which is still registered against the volume (datastore).

check in Inventory > Datastores (inventory) if anything is still registered, a VM, ISO, floppy image etc
0
BrianAuthor Commented:
The volume still shows in Inventory > Datastores, but no VMs, ISOs or images associated with it.  The volume is gone, but ESXi hosts do not know it's gone.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
what type of datastore is this ? LUN, vmfs or nfs ?

what does hosts and VMs show?

see here

2018-02-21-18_11_16-CYRUS-VCENTER1--.png
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.

BrianAuthor Commented:
Type is vmfs.  Under hosts, it shows 2 of the 3 host (not sure why the 3rd one doesn't show).  There is nothing under the VM tab.  If I try to delete the volume, it says...

Call "HostDatastoreSystem.RemoveDatastore" for object "datastoreSystem-144" on vCenter Server "VCENTER" failed.
Operation failed, diagnostics report: Not a known device: naa.6000d31000ce1100000000000000000a
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Okay, so if VMFS, I assume a LUN from a SAN

so it's thinks it's connected to 2 hosts ?

and VMs shows zero ?

If you select Re-scan Storage devices ?

also if you connect direct to ESXi host (no vCenter Server), do you still see the datastore ?
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
BrianAuthor Commented:
Okay, so if VMFS, I assume a LUN from a SAN?  Yes, it a LUN

so it's thinks it's connected to 2 hosts ?  Yes

and VMs shows zero ?  Yes

If you select Re-scan Storage devices ?  It rescans, but the datastore is still there.

also if you connect direct to ESXi host (no vCenter Server), do you still see the datastore ?  Yes, still see the datastore when connected to the hosts.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
time to start looking through your logs....
0
Saif AdilProduct Engineer IIICommented:
Connect direct to ESXi host root/password - see if its visible
Yes - Put the host in maintenance mode - Reboot
No - Reboot vCenter server
0
S00007359Cloud Engineering OfficerCommented:
You can unmount the lun directly from esxi console/ssh.

Unmounting a LUN using the command line

please follow the VMware KB article as per;
https://kb.vmware.com/s/article/2004605
0
BrianAuthor Commented:
My bad, I only did a rescan on one host.  I did a rescan on the other 2 hosts and the datastore no longer showed. Thanks for the help!
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
Storage

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.