Highlighted
Enthusiast
Enthusiast

while putting host in maintenance mode i get stuck at 2%

Jump to solution

while putting host in maintenance mode i get stuck at 2%

With the below message at 2% it get stuck.

"Waiting for all VMs to be powered off or migrated. In a DRS cluster check the Faults page on the DRS tab for troubleshooting. "

0 Kudos
1 Solution

Accepted Solutions
Highlighted
User Moderator
User Moderator

When you put a host into Maintenance Mode, the VM's will usually be migrated to other hosts automatically by DRS. There are some reasons why this might not work.

Some of them are:

  • You don't have DRS licensed (only included in Enterprise and Enterprise Plus)
  • DRS is set to manual
  • You have DRS, but the VM's have local resources connected (e.g. the CD-ROM drive, ...)
  • You have DRS, but there are not hosts available due to any configured Affinity/Anti-Affinity rules
  • No available resources on other hosts

In either case you will have to resolve the issue and either migrate the VMs to other hosts or shut down the VMs. As soon as there are no more powered on VMs on the host, it will enter Maintenance Mode.

André

View solution in original post

0 Kudos
5 Replies
Highlighted
Immortal
Immortal

you need to ensure that all the VMs there are powered off or moved out (if you have DRS).

Highlighted
Immortal
Immortal

As the message states vCenter will be trying to migrate all the Virtual machines to other Hosts. It will take time and depend on the number of VMs and resources on the other Hosts, activity etc.

-- David -- VMware Communities Moderator
Highlighted
User Moderator
User Moderator

When you put a host into Maintenance Mode, the VM's will usually be migrated to other hosts automatically by DRS. There are some reasons why this might not work.

Some of them are:

  • You don't have DRS licensed (only included in Enterprise and Enterprise Plus)
  • DRS is set to manual
  • You have DRS, but the VM's have local resources connected (e.g. the CD-ROM drive, ...)
  • You have DRS, but there are not hosts available due to any configured Affinity/Anti-Affinity rules
  • No available resources on other hosts

In either case you will have to resolve the issue and either migrate the VMs to other hosts or shut down the VMs. As soon as there are no more powered on VMs on the host, it will enter Maintenance Mode.

André

View solution in original post

0 Kudos
Highlighted
Expert
Expert

So, some VM(s) don't want to move off this host.  Here is how to figure out why:

- Set DRS mode to Manual

- Take host out of maintenance mode, you can'f perform operations on these VMs when the host is stuck at 2%.   Since you have set DRS to manual no VMs will be migrated back to this host  (good)

- For each remaining VM on the host manually vMotion them and you will find out why each one is failing.

- Fix issues

- Put host in maintenance mode

- Set cluster back to original DRS settings.

Ben

0 Kudos
Highlighted
Contributor
Contributor

I also encounter same issue, after try many ways, i found out the reason is High Availability (HA) strict admission control is enabled.

Solution:

  1. Right-click the cluster and click Edit Settings.
  2. Under Cluster Features, select VSphere HA.
  3. Under Admission Control, select Disable: Allow VM Power on operations that violate availability constraints.
  4. Click OK.


Good luck

0 Kudos