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. "
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:
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é
you need to ensure that all the VMs there are powered off or moved out (if you have DRS).
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.
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:
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é
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
I also encounter same issue, after try many ways, i found out the reason is High Availability (HA) strict admission control is enabled.
Solution:
Good luck