Solved

ESXcli command to force a host out of maintenance mode ?

Posted on 2014-04-25
5
651 Views
Last Modified: 2014-05-01
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 ?
0
Comment
Question by:NAMEWITHELD12
5 Comments
 
LVL 61

Expert Comment

by:gheist
ID: 40024157
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
 
LVL 1

Author Comment

by:NAMEWITHELD12
ID: 40024160
I connected to the WEBclient and was able to "exit maintenance mode"
0
 
LVL 61

Expert Comment

by:gheist
ID: 40024244
The question is - can you vmotion the machine out of it?
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 40024393
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
 
LVL 23

Expert Comment

by:bhanukir7
ID: 40026710
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

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now