{"id":1341,"date":"2022-03-31T15:26:53","date_gmt":"2022-03-31T20:26:53","guid":{"rendered":"https:\/\/zewwy.ca\/?p=1341"},"modified":"2022-03-31T15:27:01","modified_gmt":"2022-03-31T20:27:01","slug":"failed-to-create-vmfs-datastore-cannot-change-host-configuration","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2022\/03\/31\/failed-to-create-vmfs-datastore-cannot-change-host-configuration\/","title":{"rendered":"Failed to create VMFS datastore. Cannot change host configuration."},"content":{"rendered":"<p>Quick one here. Create a new logical disk via RAID5, after an old logical unit failed from only a single bad disk.<\/p>\n<p>No issues deleting the old logical disk, and <a href=\"https:\/\/zewwy.ca\/index.php\/2020\/09\/01\/managing-hpe-storage-controllers-on-vmware-esxi\/\">creating a new one via HP storage controller commands.<\/a><\/p>\n<p>However was greeted with this nice error.<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/mhVFA7i.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/mhVFA7i.png\" alt=\"\" width=\"1857\" height=\"226\" \/><\/a><\/p>\n<p><a href=\"https:\/\/communities.vmware.com\/t5\/VMware-vSphere-Discussions\/Cannot-create-VMFS-Datastore-on-newly-installed-ESX-6-5-Licensed\/td-p\/2241691\">From here, by Cookies04<\/a>: &#8221;<\/p>\n<p>I had the same problem and in order to fix it I had to run three commands through an SSH connection. From what I have seen and found this error comes from having disks that were part of different arrays and contain some data on them. When I ran the commands I was then able to connect the data stores with no issues.<\/p>\n<p>1. Show connected disks.<\/p>\n<p>ls -lha \/vmfs\/devices\/disks\/<\/p>\n<p>(Verify the disk is seen. You will probably see your disk ID then :1. This is a partition on the disk. We only need to work about the main disk ID.)<\/p>\n<p>2. Show the error on disk.<\/p>\n<p>partedUtil getptbl \/vmfs\/devices\/disks\/(disk ID)<\/p>\n<p>(It will probably indicate that the GPT is located beyond the end of the disk.)<\/p>\n<p>3. Wipe disk and rewrite with a basic MSDOS partion.<\/p>\n<p>partedUtil setptbl \/vmfs\/devices\/disks\/(disk ID) msdos<\/p>\n<p>(The output from this should be similar to msdos and the next line will be o o o o)<\/p>\n<p>I hope this helps you out.&#8221;<\/p>\n<p><a href=\"https:\/\/i.imgur.com\/pdtHxAE.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/pdtHxAE.png\" alt=\"\" width=\"1662\" height=\"273\" \/><\/a><\/p>\n<p>Looks like it worked&#8230; Thanks Cookie04!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quick one here. Create a new logical disk via RAID5, after an old logical unit failed from only a single bad disk. No issues deleting the old logical disk, and creating a new one via HP storage controller commands. However was greeted with this nice error. From here, by Cookies04: &#8221; I had the same &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2022\/03\/31\/failed-to-create-vmfs-datastore-cannot-change-host-configuration\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Failed to create VMFS datastore. Cannot change host configuration.&#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":[405,39,404],"class_list":["post-1341","post","type-post","status-publish","format-standard","hentry","category-hypervisors","category-server-administration","tag-create","tag-failed","tag-vmfs"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1341","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=1341"}],"version-history":[{"count":2,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1341\/revisions"}],"predecessor-version":[{"id":1343,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/1341\/revisions\/1343"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=1341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=1341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=1341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}