Hello hendersp3,
The behaviors are different depending of the configuration of the cluster where the host is located when HA/DRS are enabled/disabled. Also, anytime you try to reboot or shutdown an ESXi that is not in Maintenance Mode you will get this message:
So vCenter is warning you beforehand of what could happen if you click "OK". So the virtual machines will be stopped unsafely and there might be data loss on the vmdks.
However, there are a few things that could assist us: HA and DRS.
When the ESXi is not in Maintenance Mode and you execute a shutdown/reboot on the host:
- If the cluster has HA enabled with Host Monitoring enabled: After the host is shutdown or rebooted and the HA heartbeats are lost to this host, HA will boot the VMs in another host after a few seconds. If Host Monitoring is disabled the VMs that are powered on at the moment of the shutdown/reboot process of the ESxi are hardly powered off and will remain that way on this host until an administrator powers them on manually. DRS can kick in and decide in which hosts the VMs can be powered on but HA is the one taking the first action to boot the VMs in other hosts.
- DRS will not trigger here even in Fully Automated mode.
When the ESXi is entering Maintenance Mode:
- If the cluster has DRS enabled in Fully Automated: DRS will vMotion the powered on VMs to another host automatically (you can choose to also migrate the powered off VMs).
- If the cluster has DRS enabled in Partially Automated: You have to go to the Cluster's tab "Monitor" and then "vSphere DRS" and "Apply Recommendations" so DRS can migrate the powered on VMs to the recommended hosts and then the host can enter into Maintenance mode. This has to be done manually and that's why DRS is better in Fully Automated for cases like this.
- If the cluster has DRS enabled in Manual: Same as with Partially Automated.
Then you can shutdown/reboot the host safely once all the powered on VMs are running in other hosts.
Hope this information helps you out. Let me know if you have any more questions.
Regards.