In data centers and enterprise networks, one of the reasons for using virtualization technologies, HA setups, or High Availability, FT or Fault Tolerance. If once you have worked as virtualization expert in organizations that have HA and FT at the virtual level, you know that in such an infrastructure, sometimes for PM and maintenance hosts, it is necessary that a host of the cluster be temporarily exited To be For this reason, they need to be placed on the Maintenance Mode.
If this action is not taken, if there is a problem with other hosts during PM or Maintenance, other virtual machines from other servers will be forced to run DRS or Fault on the host that is being repaired or PM. To prevent such situations, you can easily move it to the Maintenance Mode by right-clicking on the host icon in the Cluster. But sometimes there may not be access to vSphere Client or Web Client in the DataCenter environment. In this article, we'll tell you how to transfer the host through a console.
Transferring ESXi host to ESP Maintenance Mode via ESXCLI
In the ESXi administration console, press Alt and F1 combination keys to enter the Command Line environment.
Enter Root user info now.
Here is enough to enter the following command:
Vim-cmd hostsvc / maintenance_mode_enter
Now you can rest assured that the ESXi host has been logged in and will not migrate to these hosts in case of Fault in the virtual machine cluster. So feel free to upgrade and upgrade your hosting.