I deleted a datastore and rescanned all hosts and in vcenter the datastore is gone. but in powercli get-datacenter | get-datastore still shows the name there.
Now whenever I try to add a new datastore by the same name, it says the name exists.
any idea how to get rid of this old datastore name?
** Do you see the datastore name in VI client ( Switch to datastore view to Datastore view)
** From where you're trying to add the DS ? Powercli or VI client ? Try to add from Vclient and let see if that gives a joy !
yes i see it in the datastore view but the option to delete or unmount it is not there.
I think I've seen this before and I think what I had to do was select each host, go to configuration -> datastores and delete it from there. I think there is a lingering connection to one of your hosts.
can you try restarting vCenter Inventory Service and VirtualCenter server service?
Also try the following steps from the KB VMware KB: Datastore appears empty from the datastore browser
To resolve this issue, remove all the invalid references to the old datastore name. The following objects can reference the datastore:
To remove these references: