{"id":686,"date":"2019-09-23T21:07:29","date_gmt":"2019-09-24T02:07:29","guid":{"rendered":"http:\/\/zewwy.ca\/?p=686"},"modified":"2019-09-23T21:07:29","modified_gmt":"2019-09-24T02:07:29","slug":"remove-inaccessable-datastore-from-vcsa","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2019\/09\/23\/remove-inaccessable-datastore-from-vcsa\/","title":{"rendered":"Remove &#8220;inaccessable&#8221; datastore from VCSA"},"content":{"rendered":"<p>In my previous post I mentioned restoring my ESXi after a bad upgrade. Today when I attempted to add it back into vCenter, it complained stating a Datastore with the same name exists. I was a bit stumped when I saw it showing up under the datastore area as inaccessible, when there should be nothing referencing it. Googling led me to <a href=\"https:\/\/communities.vmware.com\/thread\/552590\">this gem<\/a> where MikeOD states:<\/p>\n<p>&#8220;I figured it out.  I was double checking on VM&#8217;s on those datastores.  Under &#8220;related objects&#8221;, there were no VM&#8217;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 &#8220;remove from inventory&#8221;, the data stores disappeared.&#8221;<\/p>\n<p>mhmmm, looking at the associated VM, I checked one of it&#8217;s settings and sure enough, an old ISO was mounted on it:<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/57iCxxD.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/57iCxxD.png\" alt=\"\" width=\"1396\" height=\"948\" \/><\/a><\/p>\n<p>just as Mike said, as soon as I removed the association, by changing the VM to client device, the inaccessible datastore went away.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/974VtqT.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/974VtqT.png\" alt=\"\" width=\"442\" height=\"247\" \/><\/a><\/p>\n<p>You can also check for templates, snapshots, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In my previous post I mentioned restoring my ESXi after a bad upgrade. Today when I attempted to add it back into vCenter, it complained stating a Datastore with the same name exists. I was a bit stumped when I saw it showing up under the datastore area as inaccessible, when there should be nothing &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2019\/09\/23\/remove-inaccessable-datastore-from-vcsa\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Remove &#8220;inaccessable&#8221; datastore from VCSA&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[5,8],"tags":[234,232,233,16],"class_list":["post-686","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","tag-datastore","tag-inaccessible","tag-remove","tag-vcenter"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=686"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/686\/revisions"}],"predecessor-version":[{"id":687,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/686\/revisions\/687"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}