Skip to main content

Storage redundancy and disk recovery

Each storage pool is built as RAID-Z from one disk of each cluster node. The RAID-Z level equals the cluster redundancy, which is set once during installation: from 1 to 3. A pool works while the number of failed disks does not exceed this number. The node returns or replaces a failed disk on its own and restores the data (resilver); meanwhile, the virtual machines (VMs) of the pool may run slower.

How redundancy works​

  • One disk per node. Each pool has as many disks as there are nodes. A node connects its own disks directly and gets the disks of other nodes over the network.
  • A node failure removes one disk from every pool. All pools of the cluster lose redundancy margin at the same time.
  • The level does not change. It is set when the nodes are installed. Center does not create pools and does not change their layout.
NodesLevelCan failUsed for parity
41 (RAID-Z1)1 disk or node1/4 of raw capacity
42 (RAID-Z2)2half
5222/5
9222/9

For level 2, we recommend 5 or more nodes: on 4 nodes, parity takes half of the capacity. On 4 nodes, choose level 1 — Fencing and quorum. Level 2 keeps the data when two nodes fail, but does not guarantee that the VMs start automatically.

The memory reserve that Center keeps for node failures also depends on the level: Center counts how many nodes the cluster can lose by the lowest level of the pools — Memory reserve for node failures.

How it works​

  1. A disk failed or became unavailable together with its node. The pool goes into the DEGRADED state and keeps working on the remaining redundancy. The VMs of the pool keep running.
  2. The node tries to return the disk. The fault may have been on the bus, so the node first clears the errors and returns the device to the pool. If the same disk fails again within an hour, the node considers it faulty.
  3. The node replaces the faulty disk with a spare disk if the cluster has one. If there is no spare disk, the disk is replaced manually — Replace a disk.
  4. The pool restores the data to the returned or new disk. When the recovery is finished, the pool is ONLINE again.
  5. The node returned after a failure or reboot. When its disks are visible over the network again, the nodes that serve the pools return these disks to the pools on their own. Only the changes made while the node was unavailable are restored.
  6. Pools do not move back to the returned node on their own. They are transferred manually — Manual pool transfer — or returned by taking the node out of maintenance mode with Return VMs and pools — Put a node into maintenance mode.

If a disk of one node becomes unavailable and returns more than three times in 30 minutes, the node stops returning it on its own and reports an unstable connection. vStack support performs further diagnostics.

Duration​

  • Node return: only the changes are restored. After a short absence of the node, this takes seconds.
  • Disk replacement: the whole disk is restored. The time depends on the disk size and the load.
  • VM speed: while the recovery runs, VMs may respond with delays. When the recovery ends, the delays stop.
  • Data delay in the web interface: Center checks the pool owner once a minute, and the node sends Health and pool usage once every 2 minutes.

What you see​

  • The Pools table (Provider Data Center → the cluster → Storage Resources): the Health column shows Normal, Warning (the pool is degraded), Critical (the node reported that the pool is OFFLINE) or a dash (the pool is not started). The Resilvering column shows Yes while the recovery runs.
  • Pool page: the Properties → Disks section shows Redundancy.
  • Node page: in the Disks section, the Status of the failed disk is Error if physical disk management is enabled on the cluster.

Normal means that the node has not reported a fault. If the VMs of the pool do not respond, check the pool on its node: zpool status <pool> — View the cluster state on a node.

Limitations​

  • A pool cannot withstand more failures than its redundancy level: the VMs of the pool are unavailable — Two nodes failed.
  • Redundancy does not protect against the pool filling up. If the pool is more than 80% full, writes slow down. Closer to 100%, writes in VMs start to fail — Pool space has run out: writes in VMs fail.
  • Redundancy is not a backup. It does not bring back data that the guest deleted or corrupted.

What not to do​

  • Do not reboot the next node while recovery runs on any pool: the pool loses one more disk, and at level 1 this means a pool failure.
  • Do not return a disk to the pool or clear pool errors with commands on the node. The node returns the disk on its own, and the repeated load may cause an unhealthy disk to fail completely.
  • Do not replace a disk that has not yet returned to the pool: instead of a short resynchronization of changes, a full recovery starts.
  • Do not reboot the node or restart storage services to repair the pool: this can make the failure worse. vStack support performs these actions.
  • Do not start the VMs of a pool in Critical until vStack support has determined the cause of the failure.

See also​