ESXcli command to force a host out of maintenance mode ?

I have and ESXi host that is not showing in maintenance mode but when I attempt to move a running VM off of the host it says it is in maintenance mode

how can I force this host to get out of maintenance mode ?
LVL 1
NAMEWITHELD12Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Andrew Hancock (VMware vExpert / EE MVE^2)Connect With a Mentor VMware and Virtualization ConsultantCommented:
If the host is in maintenance mode, then this is the reason why VMs could not be moved, However there are other times, when the Host is not in maintenance mode, and VMs are flagged in the SQL Database do not move me!

Sometimes, VMs are flagged in the database DO NOT MOVE!

This often occurs, if you are using backup products which flag the VM, "do not move me" whilst backups of the VM are taking place.

The only way is to remove the VM flag from the SQL tables. (or remove VM from Inventory) - which cannot be done, if the VM is powered ON!
0
 
gheistCommented:
You need to call vmware support. There is some more runaway vm that you dont see.
Can you move out a VM that is powered off?
0
 
NAMEWITHELD12Author Commented:
I connected to the WEBclient and was able to "exit maintenance mode"
0
 
gheistCommented:
The question is - can you vmotion the machine out of it?
0
 
bhanukir7Commented:
Have you tried to restart the management agents to verify if this was due to failed communication between the vcenter and the esxi host.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.