Planned reboot and return of a node
For the cluster, a node reboot is the same as a failure: the neighboring nodes fence it, and its pools and virtual machines (VMs) fail over as they do after a failure. Therefore, a node is put into maintenance mode before a reboot: Center moves its VMs and pools to other nodes in advance, the pools only run without one disk, and the VMs are not interrupted. A node that returns adds its disks back to the pools on its own, and the pools and VMs return to it when the node is taken out of maintenance, if this is specified at that time.
How it works
- The node goes offline. During a reboot, the OS terminates all node services at once, and the cluster manager — the vStack OS service that distributes pools among nodes — handles the node going offline as a failure. Therefore, put the node into maintenance mode before a reboot — Put a node into maintenance mode.
- Fencing. The cluster notices that the node does not respond and fences it, as in a failure: the running nodes disconnect from its disks and stop serving their own disks to it — Fencing and quorum.
- One disk fewer in each pool. A pool is built from the disks of all nodes, so all pools run without the disk of this node — Storage redundancy and disk recovery.
- The pools that remained on the node are opened by the cluster on other nodes, as after a failure — Pool failover to another node.
- The VMs that ran on the node power off together with it; data that existed only in their memory is lost, as are the last seconds of disk writes that the node did not flush. Center starts them again with recovery tasks, as after a failure — Node failure. VMs on other nodes whose pool is failing over lose their disks for the duration of the failover. If the node is in maintenance mode, none of this happens: it has no pools or running VMs, and its reboot does not count as a failure.
- The node is back. The neighboring nodes connect to its disks again and return them to the pools; the node that owns the pool returns a disk that appears later. The pool applies the changes made while the node was offline — recovery (resilver) runs.
- Pools and VMs stay where they are. The cluster manager distributes only pools without a node, so nothing moves to the returned node automatically. A node in maintenance mode stays disabled in the cluster until it is taken out of maintenance.
| Node in maintenance mode | Pools and VMs on the node | Node failure | |
|---|---|---|---|
| Node fencing | yes | yes | yes |
| Node pools | moved in advance | fail over, as in a failure | fail over |
| Node VMs | moved in advance | Center starts them again | Center starts them again |
| Recovery tasks | no | yes | yes |
| VM downtime during the reboot | none | minutes | minutes |
| Cluster pools | without one disk until the node returns | same | same |
Duration
| What | Time |
|---|---|
| The cluster detects that the node is offline | about 12 s; if the node was the cluster leader, about 25–30 s |
| A pool of a node with workload fails over to another node | about 1–2 minutes — Node failure |
| Server reboot | several minutes, depends on the hardware |
| Recovery after the return | only the changes are copied; the time depends on the amount of writes while the node was offline |
| The web interface learns the pool state | Current node — once a minute, Health and usage — once every 2 min |
While recovery runs, the disk latency of VMs increases; after recovery ends, latency returns to normal — VMs run slowly.
What you see
- The node on the Resources tab of the cluster page (Provider Data Center → cluster name): Node health shows Critical while the node is not reachable, and Warning if it is closed for VM placement.
- A node in maintenance: in the Server Nodes table, Maintenance shows In Maintenance Mode.
- Pools in the Pools table (Provider Data Center → cluster name → Storage Resources): Health is Warning while the pool lacks the disk of the node. After the return, Resilvering is Yes, then No, and Health is Normal.
- On the node, the view command
zpool status | grep -E 'pool:|state:|scan:'shows the end of recovery: on nodes with pools —state: ONLINE, withoutresilver in progress— View the cluster state on a node.
How to bring the workload back
Wait until recovery ends on all pools, then take the node out of maintenance with Return VMs and pools: Center returns the pools, VMs and their disks that it moved when the node entered maintenance mode — Put a node into maintenance mode. If this option is not selected, or if the node was rebooted not in maintenance mode, bring the workload back manually:
- Pools: bring them back by transfer — Start, stop, suspend and transfer a pool. Each transfer interrupts the VMs of the pool — Manual pool transfer. vStack support transfers the pool with the management VM.
- VMs: bring them back by live migration, without stopping them — Move a running VM to another node.
- VMs in the Offline status that should be running: start them — Start, stop and restart a VM: Center does not start VMs that a pool transfer powered off.
- The VM workload between nodes can be balanced by DRS — DRS.
Limitations
- Unstable disk. If a disk of the node disappears and returns more than 3 times in 30 minutes, the node stops returning it on its own. vStack support handles further analysis.
- A suspended pool does not resume on its own after a reboot, and its VMs do not start — Pool does not start after a node reboot.
What not to do
- Do not reboot a node with pools and running VMs. For them this is a failure: minutes of downtime, loss of VM memory and of the last seconds of disk writes. Put the node into maintenance mode first — Put a node into maintenance mode.
- Do not reboot the next node, or two nodes at once, while any pool has Resilvering set to Yes or Health set to Warning: the pool loses a second disk, and with redundancy 1 this is a pool failure.
- Do not return disks to the pool or clear pool errors with commands on the node: the node does this on its own.
- Do not reboot the node again if a pool did not start after the return: each pool loses the disk of the node again, and vStack support investigates the cause — Pool does not start after a node reboot.