MikeOD
Enthusiast
Enthusiast

remove "inaccessable" datastore from VCenter appliance inventory.

I am trying to find out how to remove two datastores marked “inaccessible” from the VCenter appliance version 6.0update2

We have two datacenters, each with it’s own VCenter appliance.  We had a host in one VCenter that had access to two datastores attached over fiber channel.  That host was imported into the second VCenter using the "add host", so it wasn’t properly removed from the first VCenter.

The result is that there are two datastores in the first vcenter that have no hosts associated with them.  They’re showing as “inaccessible” and are grayed out.  Most the functions such as “delete” “unmount”, etc. are also grayed out.

Is there any easy, safe way to remove them?  I did some searching and all I seemed to find were references to NFS datastores, and/or modifying the database on a Windows based VCenter.  I found articles about removing a datastore from a host, but in this case there are no hosts attached to this datastore. 

I'm looking for something like the "remove from inventory" option that exists for hosts

Mike O.

7 Replies
bayupw
Leadership
Leadership

Hi, could you try to:

1. Connect directly to ESXi using vSphere Client and try to remove the datastore from ESXi

or

2. Connect directly to ESXi using vSphere Client, try to rename the datastore then remove the datastore from ESXi

Bayu Wibowo | VCIX6-DCV/NV Author of VMware NSX Cookbook http://bit.ly/NSXCookbook https://github.com/bayupw/PowerNSX-Scripts https://nz.linkedin.com/in/bayupw | twitter @bayupw
0 Kudos
rcporto
Leadership
Leadership

There are still running virtual machines on the old vCenter with that may have reference (like mounted ISO, even on a old snapshot) to the datastore that was moved to the new vCenter?

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
MikeOD
Enthusiast
Enthusiast

The problem is that there is no ESXI host on that VCenter that is connected to that datastore.  The ESXI host was moved to a different VCenter.    VCenter shows the datastore, in it's list of datastores, but there are no VM's, or hosts associated with it.

0 Kudos
MikeOD
Enthusiast
Enthusiast

I figured it out.  I was double checking on VM's on those datastores.  Under "related objects", there were no VM's or hosts, but there were two old templates that were still referenced by the original VCenter.  When I right clicked on the template and selected "remove from inventory", the data stores disappeared.

smynes
Contributor
Contributor

Didn't think to look for an old snapshot - that did the trick.  Thanks!

0 Kudos
UnicomClint
Contributor
Contributor

Thanks MikeD----This worked for me - - worked GREAT - Thank you - I had been fighting for over 6 hours

0 Kudos
AveryFreeman
Enthusiast
Enthusiast

Ugh thank god this finally worked for me too

What a nightmare this was

0 Kudos