Login into the individual host and rename the datastore. Then add it.------------------------------------------------------------------------------------------------------------------------------------
If you find this or any other answer useful please mark the answer as correct or helpful.
| Blog : http://vpirate.in | Twitter : @abhilashhb |
I actually thought to try that already, but didn't include that troubleshooting step in my original post. I get the same error ("Datastore 'test' conflicts with an existing datastore in the datacenter that has the same URL").
Do you have any VMs running on the new host yet? If so, bring them down, then bring them up on the other host. Disconnect the datastores, and then add the host to the vCenter server. Once added, you can then re-add the datastore to the host.
I have all my Virtual Machines on the host that is already attached to vCenter Server. The one I removed from vCenter doesn't have any VMs on it. The problem is I am not able to unmount the datastore on this disconnected host. I get the aforementioned error message that the filesystem is in use when I try. What exactly did you mean by "disconnect the datastores"?
Good thing that you already moved the VMs over. As far as "disconnect" goes, "unmount" or "delete" could work just the same. You may need to put the host into maintenance mode or even reboot the host before you can unmount the datastores. In an extreme case, I have even had to clean off the host and completely rebuild it from the hypervisor install on up. It isn't that hard or doesn't take that long to reinstall, so don't be sheepish about it. A clean reinstall might even save you time compared to removing datastores.
I thought about reinstalling vCenter Server to resolve the issue, but I don't think that would help with the shared datastore problem, since the hosts are what is connected to the datastore. I like your idea of reinstalling the hypervisor on the host that won't reconnect to vCenter. I could connect it to vCenter Server, then add the datastore. I will mark your reply as "Correct Answer" if that resolves the issue.
Reinstalling ESXi 5.5 on the host was the only thing I tried that resolved the issue. ESXi had gotten hosed up at some point, because I couldn't even get a keyboard hooked up to the concole to work. After reinstalling ESXi, I was able to add the host to vCenter Server and mount the existing datastore. Thank you for the suggestion, dangingerich.
Yes this issue very simply can be resolved.
If you are getting below issue
Click on the storage view in the web client
You can see a red color bang which is the datastore of disconnected and removed host from the vCenter. You are going to add the same host again to the data center bearing same data store id.
Click on the red flag datastore and click on the related objects . you can see some VM’s there
Click on the VM , in my case only one VM , which is vUpdate , check the summary of the VM , data store part
You can see two datastore there , In that one will surely the red bang one.
Go to VM edit settings , you can see that red bang datastore I have used to mout the ISO in the DVD Drive. I don’t need that , just select host in that and save.
Now you check the summary of the VM , there should be only one data store or the red flag data store won’t be there.
Continue this process till red flag goes , since I have only one VM , I just remove that that from VM edit settings and now that particular data store is not visible at all.
--> Add the host now , It will work I am sure
Please find the attached snapshot for more clarity.
HariRajan's solution worked perfectly for me. Reinstalling isn't an option in many cases, and this was certainly faster.
HariRajan... you sir, are a genius.
HariRajan's answer worked for me too. I had 4 VMs which had been migrated to a new host, but still referenced the ISO images on the old host.
Removing the reference to the ISO images from each VM then resulted in the Inactive datastore disappearing from the inventory as expected.
HariRajanHariRajan you are the best!
Hari, you sir are a genious.
Many thanks. This was bugging me for some time now.
In my case there no bang sign on datastore, but still i get the same reported error. Any clue or suggestion?