If one of the nodes in a cluster with network storage connected fails, you can resume the operation of its virtual machines (VMs) on another node using the disaster recovery function.
The possibility of disaster recovery doesn't depend on high availability configuration of the cluster.
How to recover all the VMs in the node
To move all VMs from the failed node, go to Nodes → select the node → VM disaster recovery → Recover. All VMs from this node will be moved to other nodes of the cluster. Read more about the logic of nodes selection in Selecting a cluster node for the virtual machine .
How to recover individual VMs
You can move individual VMs from a failed node via an API request:
-
Get an authorization token:
curl -k -X POST -H "accept: application/json" -H "Content-Type: application/json" 'https://domain.com/auth/v4/public/token' -d '{"email": "admin_email", "password": "admin_pass"}'
Comments to the commandIn response, you will get the message in the form:
Example of response in JSON{ "confirmed": true, "expires_at": null, "id": "6", "token": "4-e9726dd9-61d9-2940-add3-914851d2cb8a" }
Save the received token value.
-
Move the required VMs using the received session id:
curl --insecure -X POST 'https://domain.com/vm/v3/host/<vm_id>/relocate' -H 'x-xsrf-token: <token>' -d '{"node": <node_id>}'
Comments to the command