unit-avoid-bad-node

Usage

avcli unit-avoid-bad-node true|false|reset

Description

By default, VMs automatically return to a node that has returned to service after the node has recovered from a recent failure or was in maintenance mode. In some situations, you may want to verify that the node is healthy before VMs return to it. To prevent VMs from automatically returning to such nodes, set the migration policy. To do so, use the unit-avoid-bad-node command or see Configuring the Migration Policy.
The unit-avoid-bad-node command enables or disables the ability of VMs to automatically return to a node that has recently failed or been in maintenance mode. If the node is healthy, issue unit-avoid-bad-node reset to re-enable VMs to automatically return to it.
If you issue this command with no option, the command checks if the setting is enabled or disabled, and displays yes or no values for Feature enabled, Keeping VMs on last good node, and Awaiting reset signal. The following output is an example:
Avoid automatically moving VMs back to a node that recovered after a failure:
-> Feature enabled : yes
-> Keeping VMs on last good node : yes
-> Awaiting reset signal : yes

Options

true Enables VMs to automatically return to a node that has returned to service. .
false Disables VMs from automatically returning to a node that has returned to service.

reset

Enables VMs held on the last good node to return to a healthy node recently returned to service.