When you want to perform maintenance on a host or datastore in your VMware vSphere cluster, it is important to use their maintenance mode.
Maintenance may be necessary in several cases that you will see in this tutorial.
In business, you will need to put a host under maintenance to:
The advantage of putting a host under maintenance is that it will no longer be able to run virtual machines.
Which will then allow you to turn it off or restart it without this causing any problems.
This also temporarily excludes it from automatic actions carried out by DRS (which otherwise could have migrated VMs to it in the meantime).
For the example, we are going to put our host "esxi2" into maintenance.
However, as you can see, at the moment it contains a "Win 10 x64 v2004" VM.
To put a host in maintenance mode, select the host, then click: Actions -> Maintenance Mode -> Enter Maintenance Mode.
As this message tells you, no virtual machines are running on a host in maintenance mode.
If this host contains powered-on virtual machines, they will need to be migrated to another host in the cluster before maintenance mode is enabled.
Important : if vSphere DRS is enabled on your cluster, the option "Move powered-off and suspended virtual machines to other hosts in the cluster" will appear.
Check this box and click OK.
If vSphere DRS is not enabled on your cluster, this option will not appear and you will therefore have to manually migrate the virtual machines from this host to other hosts in your cluster.
To enable vSphere DRS, select your cluster and go to: Configure -> Services -> vSphere DRS.
Next, click "Edit" to enable vSphere DRS.
The "Enter maintenance mode" task appears and the VMs on your host are migrated to other hosts in the cluster, if you were able to check the "Move powered-off and suspended virtual machines ..." box previously.
Once the VMs are migrated and the host is put into maintenance, the "Enter Maintenance Mode" task will be completed and the host status will be "Maintenance Mode".
As expected, there are no more virtual machines on our host in maintenance mode.
As expected, our virtual machine that was on this host was migrated to another host.
In our case, vSphere HA tells us that failover resources are insufficient.
In fact, only one functional and available host remains. If it fails, vSphere HA will not be able to restart our virtual machines on another host in the cluster.
But, this is not the subject of this tutorial and this will not happen to you if you have enough hosts.
To exit a host from maintenance mode, simply select your host and click: Actions -> Maintenance Mode -> Exit Maintenance Mode.
The "Exit Maintenance Mode" task appears.
If warnings appear on your cluster, simply wait up to 1 minute for them to disappear.
A little later, these messages will disappear automatically.
VMware 6/29/2022
VMware 10/12/2022
VMware 1/20/2023
VMware 12/18/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment