对于交流电源断电,我已制定了以下流程:
UPS emails an "On battery" message
UPS sends a power loss shutdown event to the host OS (hyper-V server 2012 R2)
Host OS sends SNMP messages (via UPS software) to all vm servers to shutdown immediately
Host OS shuts down after time delay allowing vm servers to gracefully shutdown
UPS turns off after time delay allowing Host OS to gracefully shut down
When AC is restored, the UPS auto-starts and the host BIOS boots automatically
Host OS then turns on all vm's using Hyper-V auto-start
Each server including the host uses Group Policy to send emails for shutdown/startup
系统完全按照预期运行,在每个关键点发送电子邮件。空调恢复后,整个系统正常唤醒。
我担心的是,如果这个过程没有继续到最后,因为空调在一切都关闭之前就恢复了,该如何处理这个过程。例如,如果主机永不关闭,那么 Hyper-V 将永远不会启动,也不会触发虚拟机启动。
在这种情况下,是否存在一些最佳实践/想法来确保系统自动重启?