Table of Contents
< All Topics
Print

[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.
file

Handling Process

  1. The host went down on 8th July, so we need to check on the vmstate file of 7th July.

  2. Extract /sf/log/[date]/sfcfg.tar.gz
    file

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

  4. View the contents of the decompressed database.
    file
    sqlite3 config.db
    select * from tree where name=’vmpower.info’;
    file

  5. 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’.

  6. 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 host offline. So it will not failover to another host.

Suggestions

View the VM state before the node down, these information are 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.