[VDI] VM Did Not Failover During Host Down
Issue Description
VM has configured HA, but during the host offline it did not failover to another host.

Handling Process
-
The host went down on 8th July, so we need to check on the vmstate file of 7th July.
-
Extract /sf/log/[date]/sfcfg.tar.gz

-
The contents of the /cfs directory will be saved into the database /sf/cfg/vtp-cluster/config.db in real time.
-
View the contents of the decompressed database.

sqlite3 config.db
select * from tree where name=’vmpower.info’; -
We can see that before the host goes down, the power state of the virtual machine saved in the vmpower.info file is ‘vmid=off’.
-
When the VM is in powered-off state, it will not trigger HA.
Root Cause
The power state of the Virtual Machine is in powered off state prior to the host offline. So it will not failover to another host.
Suggestions
View the VM state before the node is down, these information is stored under the following directory.
sf/log/cfs/nodes/cluster/vmpower.info
sf/log/cfs/nodes/cluster/vmstatus.info
VMP will back up the /sf/cfg directory to /sf/log/[date]/sfcfg.tar.gz every day.