> Documentation index for agents: /hcp/3.3/en/llms.txt

# Node failure

When a node stops responding, the cluster disconnects it from the disks on its own and opens its pools on other nodes, and Center starts the virtual machines (VMs) of these pools again. The cluster handles the failure of one node without administrator involvement: the VMs in the node's pools are unavailable for several minutes. The cluster often cannot resolve the failure of two nodes in a row on its own — vStack support is required.

## How it works

The cluster manager, a vStack OS service on every node, makes the decisions. The nodes elect a leader among themselves, and the leader decides. The cluster manager does not handle VMs: Center starts them.

[![Node failure: a node does not respond, all running nodes fence it, its pools are assigned to other nodes, the new node opens the pool, Center starts the VMs; if not all nodes confirmed fencing, the pools do not fail over](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDQwIDMzMCIgd2lkdGg9IjEwNDAiIGhlaWdodD0iMzMwIiBmb250LWZhbWlseT0iSW50ZXIsIHN5c3RlbS11aSwgLWFwcGxlLXN5c3RlbSwgJ1NlZ29lIFVJJywgUm9ib3RvLCBzYW5zLXNlcmlmIiByb2xlPSJpbWciIGFyaWEtbGFiZWxsZWRieT0idCBkIj4KPHRpdGxlIGlkPSJ0Ij5Ob2RlIGZhaWx1cmU8L3RpdGxlPjxkZXNjIGlkPSJkIj5UaGUgbm9kZSBkb2VzIG5vdCByZXNwb25kIGZvciA0IHNlY29uZHMgcGx1cyBhbiA4LXNlY29uZCB3YWl0LiBUaGVuIGFsbCBydW5uaW5nIG5vZGVzIGZlbmNlIGl0IG9mZiBmcm9tIHRoZWlyIGRpc2tzLiBJZiBhbGwgb2YgdGhlbSBjb25maXJtIHRoZSBmZW5jaW5nLCB0aGUgcG9vbHMgb2YgdGhlIG5vZGUgYXJlIGFzc2lnbmVkIHRvIG90aGVyIG5vZGVzLCB0aGUgbmV3IG5vZGUgb3BlbnMgdGhlIHBvb2wsIGFuZCBDZW50ZXIgc3RhcnRzIHRoZSBWTXMgb2YgdGhlIHBvb2wuIElmIGF0IGxlYXN0IG9uZSBub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rZS13aWR0aD0iMS4yIi8+Cjx0ZXh0IHg9IjMyMC4wIiB5PSIyNDQuMCIgZm9udC1zaXplPSIxMyIgZm9udC13ZWlnaHQ9IjYwMCIgZmlsbD0iI2YyYjQ1YSIgdGV4dC1hbmNob3I9Im1pZGRsZSI+UG9vbHMgZG8gbm90IGZhaWwgb3ZlcjwvdGV4dD4KPHRleHQgeD0iMzIwLjAiIHk9IjI2Mi4wIiBmb250LXNpemU9IjExLjUiIGZvbnQtd2VpZ2h0PSI0MDAiIGZpbGw9IiM5Y2EzYjciIHRleHQtYW5jaG9yPSJtaWRkbGUiPmNvbnRhY3QgdlN0YWNrIHN1cHBvcnQ8L3RleHQ+CjxwYXRoIGQ9Ik0zMjAuMCAxMzggTDMyMC4wIDIwNiIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjJiNDVhIiBzdHJva2Utd2lkdGg9IjEuNiIgIG1hcmtlci1lbmQ9InVybCgjYXJ3KSIvPgo8dGV4dCB4PSIzMzAuMCIgeT0iMTc4IiBmb250LXNpemU9IjExIiBmb250LXdlaWdodD0iNjAwIiBmaWxsPSIjZjJiNDVhIiB0ZXh0LWFuY2hvcj0ic3RhcnQiPmF0IGxlYXN0IG9uZSBmYWlsZWQ8L3RleHQ+Cjwvc3ZnPg==)](/hcp/3.3/en/img/diagrams/en/node-failure-dark.svg)

1. **The failure is detected.** The leader gets no response from the node for 4 seconds and waits 8 more, in case of a brief network interruption.
2. **Fencing.** Each running node stops serving its disks to the failed node and disconnects from the failed node's disks. The pools fail over only when all running nodes have confirmed fencing — [Fencing and quorum](/hcp/3.3/en/mechanics/fencing-and-quorum/index.md).
3. **Pool failover.** The leader assigns a new node to each pool of the failed node: the preferred node from the cluster settings, or the node with the fewest pools. The new node opens the pool — [Pool failover to another node](/hcp/3.3/en/mechanics/pool-failover/index.md).
4. **Management VM.** If the pool had the management VM — the VM that runs Center — the new node starts it on its own, right after it opens the pool — [Management VM failure](/hcp/3.3/en/mechanics/management-vm-failover/index.md).
5. **Pool VMs are started.** When Center learns that the pool has failed over, it opens the **Start VMs after pool failover** task for the pool and starts the pool VMs that should be running as soon as the pool is ready to accept VM commands.
6. **VMs of other pools are started.** Center starts the VMs that ran on the failed node while their pool is on another node on other nodes with the **Node failure recovery** task. Center opens it not earlier than 120 seconds after it noticed the failure: by this time, the failed node has definitely lost its connections to the disks of these VMs, and starting them on another node is safe.

The task makes up to 5 attempts to start each VM. If a VM has not started within 30 minutes of the task opening, its start counts as failed. If auto-restart is off on the cluster, the task closes immediately with the **Auto-restart is off** reason, and the VMs are started manually — [VM auto-restart after a failure](/hcp/3.3/en/mechanics/vm-auto-restart/index.md).

If the leader itself failed, the nodes first elect a new one: 5–6 seconds without a signal from the leader, then a vote, then the new leader waits 10 seconds and goes through the same steps.

## Duration

| Stage | Time |
| - | - |
| The cluster detects the failure | about 12 s; if the leader failed, about 25–30 s |
| Fencing | seconds; on error, up to 5 attempts with a 2 s pause |
| The pool opens on the new node | about 1–2 minutes |
| Center begins starting the pool VMs | when the pool is ready to accept VM commands; attempts about once a minute |
| Center starts VMs of other pools | not earlier than 120 s after it noticed the failure |
| The recovery task waits for VMs | up to 30 minutes |
| The management VM boots | several minutes after its pool opens |

A node that hangs but still responds over the network can delay fencing: each attempt waits up to 5 minutes for its response.

## What you see

**In the Center web interface:**

- On the cluster page (**Provider Data Center** → cluster name → **Resources**), the node shows **Critical** in **Node health**: the node is not reachable.
- The VMs of the failed node have **Unreachable** in **Health**. The status stays **Started** until Center learns about the VM from the nodes. Then the VMs go through **Offline** → **Starting** → **Started**, and the **Node** field may change — [VM statuses](/hcp/3.3/en/reference/vm-statuses/index.md).
- Next to the node name on its page, there is **Failover in progress**, and on the pool page too. The VM start progress is in **Actions** → **Recovery Progress** on the node or pool page: VMs on the **Started**, **Starting**, **Waiting for retry** and **Failed** tabs, with the number of attempts. The tasks themselves are in the **Tasks** section — [View tasks and terminate a stuck one](/hcp/3.3/en/observability/operations/index.md).
- For the node's pools in the **Pools** table, **Current node** changes right after the pool opens or within a minute: Center checks the pool owner once a minute, and the node sends **Health** and usage once every two minutes. **Health** can become **Warning**: the pool is open without the failed node's disks.
- If the node had the management VM, the web interface is unavailable for several minutes.

**For external clients:** the VMs that ran on the failed node reboot from disk. Data that existed only in VM memory is lost, as are the last seconds of disk writes that the node did not flush.

**When the node returns,** its neighbors serve their disks to it again and return its disks to the pools, and the pools restore redundancy. Pools and VMs do not move back to the returned node automatically.

## Failure of two nodes

- **Quorum.** While at least half of the nodes, counting the leader, are reachable, the cluster has a leader. In a cluster of 4 nodes, after three nodes fail there is no leader: pools do not fail over, and you cannot manage pools. The table is in [Fencing and quorum](/hcp/3.3/en/mechanics/fencing-and-quorum/index.md).
- **Fencing fails.** If a second node fails while the cluster is fencing the first one, the second node does not confirm fencing. Then the pools of the first node do not fail over and stay with it. Such pools wait until the failed node returns or vStack support starts them.
- **Not enough disks.** A pool built from the disks of all nodes loses the disks of two nodes at once. If the pool's redundancy is not enough for this, the pool cannot be opened anywhere.

## When failover does not happen

The pools of the failed node stay unavailable, and you need vStack support, if:

- at least one running node has not confirmed fencing;
- the cluster has no quorum;
- the pool cannot be assembled from the remaining disks — the cluster makes 5 attempts with a 100-second pause and stops;
- there is no other node that is reachable and open for placement;
- the pool opened but the VMs did not start, although the pool status is **Normal** — [Pool failover to another node](/hcp/3.3/en/mechanics/pool-failover/index.md).

## Limitations

- **Node memory is not taken into account for the pool.** The cluster manager picks a node for a pool by the number of pools, not by free memory. VMs start on any node with enough memory, but if memory is insufficient in the whole cluster, some VMs will not start — [Cluster RAM has been depleted](/hcp/3.3/en/troubleshooting/cluster-ram-depleted/index.md). To ensure that memory is available after a failure, Center keeps a reserve — [Memory reserve for node failures](/hcp/3.3/en/mechanics/failover-reserve/index.md).
- **A planned reboot of a node not in maintenance mode is handled as a failure.** The cluster fences the node, the pools fail over to neighboring nodes, and Center starts the VMs again — with minutes of downtime and the loss of whatever was only in VM memory. Put the node into maintenance mode in advance — [Put a node into maintenance mode](/hcp/3.3/en/cluster/node-maintenance/index.md); for details, see [Planned reboot and return of a node](/hcp/3.3/en/mechanics/node-reboot-return/index.md).
- **A node in maintenance mode** does not count as failed for Center: the **Node failure recovery** task does not open for it.
- **The cluster does not power off the node.** Fencing goes through the storage network, not through the remote management controller (BMC).

## What not to do

- **Do not reboot or power on the failed node without approval from support.** A hard reboot of a hung node erases its memory dump, which is used to find the cause. A node returned without analysis may fail again.
- **Do not restart the cluster manager on running nodes.** A restart moves the pools of that node to other nodes, and stopped VMs are added to the existing failure.
- **Do not import the pool manually.** If the failed node is still running and holds the pool, two nodes start writing to it — the pool data gets corrupted.
- **Do not close or exclude nodes with the cluster utility during a failure.** This changes the quorum and the pool layout.
- **Do not start the VMs of the failed node on other nodes manually** until the node is powered off or has returned. If it only lost connectivity, a VM may still be running on it — [VM double-start protection](/hcp/3.3/en/mechanics/double-start-protection/index.md).
- **Do not transfer pools from the web interface during failover.** The transfer stops the pool once more.
- **Do not terminate the recovery task unless necessary.** Terminating it stops the start of all its VMs — they will have to be started manually.

## See also

- [Node is unavailable](/hcp/3.3/en/troubleshooting/node-offline/index.md)
- [Two nodes failed](/hcp/3.3/en/troubleshooting/two-nodes-failed/index.md)
- [VMs did not start after a node failure](/hcp/3.3/en/troubleshooting/vms-not-up-after-failure/index.md)
- [Cluster manager](/hcp/3.3/en/architecture/cluster-manager/index.md)
