{"id":2405,"date":"2025-01-16T10:35:03","date_gmt":"2025-01-16T09:35:03","guid":{"rendered":"https:\/\/kdslabs.fr\/?p=2405"},"modified":"2025-01-16T10:35:05","modified_gmt":"2025-01-16T09:35:05","slug":"vsan-vsan-witness-incorrect-information-displayed-in-vcenter","status":"publish","type":"post","link":"https:\/\/kdslabs.fr\/index.php\/2025\/01\/16\/vsan-vsan-witness-incorrect-information-displayed-in-vcenter\/","title":{"rendered":"[VSAN] vSAN Witness incorrect information displayed in vCenter"},"content":{"rendered":"\n<h4 class=\"wp-block-heading has-colibri-color-1-color has-text-color has-link-color wp-elements-aba354450d82eb3b45921ba507e1b59a\">[VSAN] vSAN Witness incorrect information displayed in vCenter<\/h4>\n\n\n\n<p style=\"font-size:14px\"><span style=\"text-decoration: underline;\"><strong>N.B: <\/strong><\/span>First of all, all screenshots and tests are provided in VMware HOL because I didn\u2019t think initially to write an article.<\/p>\n\n\n\n<p style=\"font-size:14px\">The other day, my colleague told me he had a misconfiguration in vSAN. He \u201cdisconnected\u201d and \u201cRemoved from inventory\u201d the witness. So, the symptom is clear, vCenter <strong>UI<\/strong> believes vSAN Cluster is not in Stretched Cluster mode, so all configuration through vCenter was impossible.<\/p>\n\n\n\n<p style=\"font-size:14px\">Directly when he asked me to help him, I had multiple solutions in my head for repairing this error. But I was surprised to see that only one worked in my production case:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:14px\">Obviously, my first thought was to reconnect the witness => it did not worked<\/li>\n\n\n\n<li style=\"font-size:14px\">Click on \u201cCONFIGURE STRETCHED CLUSTER\u201d => it worked only in VMware HOL<\/li>\n\n\n\n<li style=\"font-size:14px\">Simple PowerCLI command to configure cluster => it worked only in VMware HOL<\/li>\n\n\n\n<li style=\"font-size:14px\">Directly on ESXi\/Witness host through => it did not worked<\/li>\n\n\n\n<li style=\"font-size:14px\">RVC Command => <strong>Worked in all situations<\/strong><\/li>\n<\/ul>\n\n\n\n<p style=\"font-size:14px\">For more information, the two situations didn\u2019t work in my production case but only in VMware HOL because :<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li style=\"font-size:14px\">In vCenter UI, I tried to click anyway on \u201cCONFIGURE STRETCHED CLUSTER\u201d to try to force reconfiguration of the vSAN Witness. In production case, I got a message saying that \u201cvSAN was already in Stretched Cluster\u201d<\/li>\n\n\n\n<li style=\"font-size:14px\">In PowerCLI, removing vSAN Stretched Cluster through PowerCLI cmmd worked in the VMware HOLD with the possibility to reconfigure the VSAN Witness again through vCenter UI. However, in my production case, it didn\u2019t change anything. The configurations displayed below are always same with PowerCLI or \u201cCONFIGURE STRETCHED CLUSTER\u201d:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2520\" height=\"780\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated\" class=\"wp-image-2406\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica.png 2520w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-300x93.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1024x317.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-768x238.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1536x475.png 1536w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2048x634.png 2048w\" sizes=\"auto, (max-width: 2520px) 100vw, 2520px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:14px\">For you, and before starting, you can find the normal VMware HOL vSAN configuration below: <img loading=\"lazy\" decoding=\"async\" width=\"2013\" height=\"681\" class=\"wp-image-2407\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1.png 2013w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1-300x101.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1-1024x346.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1-768x260.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-1-1536x520.png 1536w\" sizes=\"auto, (max-width: 2013px) 100vw, 2013px\" \/><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:14px\">All rest of this article is focused on my production case, so I won\u2019t explain in details why some cases (vCenter UI and PowerCLI) worked on my VMware HOL test, and why not it didn\u2019t in my production case.<\/p>\n\n\n\n<p style=\"font-size:14px\">So, first I thought PowerCLI would help me in this situation because it was only UI display bug..<\/p>\n\n\n\n<p style=\"font-size:14px\">The first test was to reconfigure vSAN Witness with the same host, obviously didn\u2019t worked because the cluster was considered as already configured.<\/p>\n\n\n\n<p style=\"font-size:14px\"><strong>Syntaxt of this command is:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code>Set-VsanClusterConfiguration -Configuration (Get-VsanClusterConfiguration \u201cmgmt-cluster-01) -StretchedClusterEnabled $true -PreferredFaultDomain \u201cPreferred\u201d -WitnessHost \u201cesx-11.vcf.sddc.lab\u201d<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1899\" height=\"299\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a.png\" alt=\"A screen shot of a computer program\n\nDescription automatically generated\" class=\"wp-image-2408\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a.png 1899w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-300x47.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1024x161.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-768x121.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1536x242.png 1536w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:14px\">The second test is the same than the one above, and I had the same error.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1912\" height=\"360\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1.png\" alt=\"A screen shot of a computer program\n\nDescription automatically generated\" class=\"wp-image-2409\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1.png 1912w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1-300x56.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1-1024x193.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1-768x145.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screen-shot-of-a-computer-program-description-a-1-1536x289.png 1536w\" sizes=\"auto, (max-width: 1912px) 100vw, 1912px\" \/><\/figure>\n\n\n\n<p style=\"font-size:14px\"><strong><em>N.B:<\/em><\/strong><em> Only worked in VMware HOL<\/em><\/p>\n\n\n\n<p style=\"font-size:14px\">I tried as well to remove the Stretched Cluster to re-add the witness:<\/p>\n\n\n\n<p style=\"font-size:14px\">When I put this command, I had the possibility to reconfigure the witness again in vCenter UI (CONFIGURE STRETCHED CLUSTER button worked), or directly with another PowerCLI command. In my production case, this command didn\u2019t change anything because I had the same displayed page than the first screenshot of this article. \u201cAlready in stretched cluster\u201d<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1896\" height=\"225\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5.png\" alt=\"\" class=\"wp-image-2410\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5.png 1896w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5-300x36.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5-1024x122.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5-768x91.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/word-image-2405-5-1536x182.png 1536w\" sizes=\"auto, (max-width: 1896px) 100vw, 1896px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2520\" height=\"780\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated\" class=\"wp-image-2411\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2.png 2520w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2-300x93.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2-1024x317.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2-768x238.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2-1536x475.png 1536w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-2-2048x634.png 2048w\" sizes=\"auto, (max-width: 2520px) 100vw, 2520px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:14px\">vSAN has a lot of possibilities to configure witness, and the best option in my production case was the <strong>RVC Command <\/strong>because it was the only way I could solve the problem.<\/p>\n\n\n\n<p style=\"font-size:14px\">So, I tried to get the cluster information to know if the vSAN Witness was really configured or no. And without surprise, the cluster was correctly configured. After that, I had two possibilities: either remove the witness directly or replace it.<\/p>\n\n\n\n<p style=\"font-size:14px\">The replace command is a little bit simpler because the only argument mandatory is the path of the cluster, whereas the remove command asked path of cluster, path of witness host, and name of preferred site.<br>Obviously, I tried the two options, and both worked as I will explain you below.<\/p>\n\n\n\n<p style=\"font-size:14px\">For removing the witness, the command is the following one, and when it was OK I had the possibility to configure again the witness through vCenter UI (production and VMware HOL case worked for me).<\/p>\n\n\n\n<p style=\"font-size:14px\"><strong>Code:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code><em>vsan.stretchedcluster.remove_witness pathofyourcluster<\/em><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1755\" height=\"508\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri.png\" alt=\"A computer screen with white and blue text\n\nDescription automatically generated\" class=\"wp-image-2412\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri.png 1755w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri-300x87.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri-1024x296.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri-768x222.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-and-blue-text-descri-1536x445.png 1536w\" sizes=\"auto, (max-width: 1755px) 100vw, 1755px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2013\" height=\"681\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated\" class=\"wp-image-2413\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3.png 2013w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3-300x101.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3-1024x346.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3-768x260.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-3-1536x520.png 1536w\" sizes=\"auto, (max-width: 2013px) 100vw, 2013px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"font-size:14px\">Below is the screenshot for replacing the witness host:<\/p>\n\n\n\n<p style=\"font-size:14px\"><strong>Code:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\" style=\"font-size:14px\"><code><em>vsan.stretchedcluster.config_witness pathofyourcluster pathofyourwitnesshost nameofyourpreferedsite<\/em><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1962\" height=\"342\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut.png\" alt=\"A computer screen with white text\n\nDescription automatically generated\" class=\"wp-image-2414\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut.png 1962w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut-300x52.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut-1024x178.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut-768x134.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-computer-screen-with-white-text-description-aut-1536x268.png 1536w\" sizes=\"auto, (max-width: 1962px) 100vw, 1962px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"2013\" height=\"681\" src=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4.png\" alt=\"A screenshot of a computer\n\nDescription automatically generated\" class=\"wp-image-2415\" srcset=\"https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4.png 2013w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4-300x101.png 300w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4-1024x346.png 1024w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4-768x260.png 768w, https:\/\/kdslabs.fr\/wp-content\/uploads\/2025\/01\/a-screenshot-of-a-computer-description-automatica-4-1536x520.png 1536w\" sizes=\"auto, (max-width: 2013px) 100vw, 2013px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[VSAN] vSAN Witness incorrect information displayed in vCenter N.B: First of all, all screenshots and tests are provided in VMware HOL because I didn\u2019t think initially to write an article. The other day, my colleague told me he had a misconfiguration in vSAN. He \u201cdisconnected\u201d and \u201cRemoved from inventory\u201d the witness. So, the symptom is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,15,47],"tags":[23,21],"class_list":["post-2405","post","type-post","status-publish","format-standard","hentry","category-7-0","category-vmware","category-vsan","tag-guide","tag-vmware"],"_links":{"self":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/2405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/comments?post=2405"}],"version-history":[{"count":0,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/posts\/2405\/revisions"}],"wp:attachment":[{"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/media?parent=2405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/categories?post=2405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kdslabs.fr\/index.php\/wp-json\/wp\/v2\/tags?post=2405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}