{"id":756,"date":"2022-09-24T12:58:25","date_gmt":"2022-09-24T12:58:25","guid":{"rendered":"https:\/\/robinplomp.com\/?p=756"},"modified":"2022-11-21T15:13:46","modified_gmt":"2022-11-21T15:13:46","slug":"how-to-place-a-vmware-vsphere-esxi-host-on-nutanix-in-maintenance-mode","status":"publish","type":"post","link":"https:\/\/robinplomp.com\/?p=756","title":{"rendered":"How to place a VMware vSphere ESXi host on Nutanix in maintenance mode"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" width=\"157\" height=\"105\" align=\"left\" style=\"float: left; display: inline;\" alt=\"Download Nutanix Logo in SVG Vector or PNG File Format - Logo.wine\" src=\"https:\/\/www.logo.wine\/a\/logo\/Nutanix\/Nutanix-Logo.wine.svg\">Placing a VMware vSphere ESXi host in maintenance mode works the same whether the VMs run on vSAN or other types of attached storage. But if the VMs are running on vSphere on a Nutanix cluster the process of placing a host into maintenance mode does work a little different. This is because of the way Nutanix is working together with VMware vSphere ESXi. On every VMware vSphere ESXi host on Nutanix, there is a VM called Controller Virtual Machine (CVM). This VM controls and managed the storage usage. All the storage IO for a host goes through that CVM VM.<!--more--><img decoding=\"async\" alt=\"The Nutanix Bible\" src=\"https:\/\/www.nutanixbible.com\/imagesv2\/prism_services3.png\"><\/p>\n<p>In the above image (taken from \u201cThe Nutanix Bible\u201d) we can see how the CVM VMs are working together to service access to the Nutanix management tool called Prism. There is some form of an election where is determined which CVM is acting as Prism Leader. So when I want to place the VMware vSphere ESXi host in maintenance mode I have to inform the CVM\/Prism cluster that one node is no longer available. If that node happens to be the current Prism Leader a new election has to occur, otherwise the Prism leader has to be aware that this specific node is no longer available.<\/p>\n<p>As of AOS version 6.5.1 (available since 26 September 2022) it is possible to place the CVM into maintenance mode in the Prism web gui. Nutanix advices it\u2019s customers to use the web gui.<\/p>\n<p><a href=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/11\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"193\" title=\"image\" style=\"display: inline; background-image: none;\" alt=\"image\" src=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/11\/image_thumb.png\" border=\"0\"><\/a><\/p>\n<p>This functionality is available for both ESXi and AVH. <\/p>\n<p>If you are an advanced user and familiar with the command line interface, or if you use automate your maintenance jobs, you can also use the below method.<\/p>\n<p><a href=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/09\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"343\" title=\"image\" style=\"margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" alt=\"image\" src=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/09\/image_thumb.png\" border=\"0\"><\/a><\/p>\n<p>Logon to the Nutanix CVM using your SSH client of choice. I logon using the default Nutanix account.<\/p>\n<p><a href=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/09\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"544\" height=\"177\" title=\"image\" style=\"margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;\" alt=\"image\" src=\"https:\/\/robinplomp.com\/wp-content\/uploads\/2022\/09\/image_thumb-1.png\" border=\"0\"><\/a><\/p>\n<p>Enter the following account to place the CVM VM in maintenance mode:<br \/>\n<strong><span style=\"font-family: courier new;\">cvm_shutdown \u2013P now<\/span><br \/>\n<\/strong>Now you can place the vSphere ESXi host in maintenance mode the usually way.<\/p>\n<p><strong><span style=\"font-family: courier new;\">esxcli system maintenanceMode set &#8211;enable-true<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Placing a VMware vSphere ESXi host in maintenance mode works the same whether the VMs run on vSAN or other types of attached storage. But if the VMs are running on vSphere on a Nutanix cluster the process of placing a host into maintenance mode does work a little different. This is because of the &hellip; <a href=\"https:\/\/robinplomp.com\/?p=756\" class=\"more-link\">Lees verder <span class=\"screen-reader-text\">How to place a VMware vSphere ESXi host on Nutanix in maintenance mode<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,63,22],"tags":[64,65],"class_list":["post-756","post","type-post","status-publish","format-standard","hentry","category-esxi","category-nutanix","category-vmware","tag-esxi","tag-nutanix"],"_links":{"self":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/756","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=756"}],"version-history":[{"count":3,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/756\/revisions"}],"predecessor-version":[{"id":784,"href":"https:\/\/robinplomp.com\/index.php?rest_route=\/wp\/v2\/posts\/756\/revisions\/784"}],"wp:attachment":[{"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=756"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=756"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robinplomp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=756"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}