ESXi host takes longer time to shutdown if ESXi host has been placed into Maintenance mode immediately after VMs were powered off on vSAN Datastore
book
Article ID: 319914
calendar_today
Updated On:
Products
VMware vSAN
Issue/Introduction
Symptoms:
In a vSAN environment, it takes a long time (10 minutes or more) to shut down an ESXi host after being put into Maintenance mode immediately after running VMs were powered off.
Once the host enters maintenance mode, all the namespace objects across all the hosts become absent and a message is displayed, "Waiting for timed out HB:"
Cause
After the VMs are powered off, the respective namespace volumes take around 5 seconds or less before they auto-close.
The namespace objects must be auto-closed before putting the host into maintenance mode. If the ESXi host is put into maintenance mode immediately after the VMs are powered off, it might cause the vSAN objects of the namespace to become inaccessible, and quorum to be lost.
The VMFS heartbeats on the namespace volumes fail, causing "Waiting for timed out HB."
It takes a long time to shutdown ESXi host in this state as it checks for liveness of all namespace objects and waits until the time out of each object.
Resolution
After the shutdown of the VMs in the vSAN cluster, wait for ten seconds or more before putting the ESXi host in maintenance mode.