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

# 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.

| Nodes | Level | Can fail | Used for parity |
| - | - | - | - |
| 4 | 1 (RAID-Z1) | 1 disk or node | 1/4 of raw capacity |
| 4 | 2 (RAID-Z2) | 2 | half |
| 5 | 2 | 2 | 2/5 |
| 9 | 2 | 2 | 2/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](/hcp/3.3/en/mechanics/fencing-and-quorum/index.md). 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](/hcp/3.3/en/mechanics/failover-reserve/index.md).

## 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](/hcp/3.3/en/guides/replace-disk/index.md).
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](/hcp/3.3/en/mechanics/pool-transfer/index.md) — or returned by taking the node out of maintenance mode with **Return VMs and pools** — [Put a node into maintenance mode](/hcp/3.3/en/cluster/node-maintenance/index.md#exit).

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](/hcp/3.3/en/os-cluster/cluster-state/index.md).

## Limitations

- **A pool cannot withstand more failures than its redundancy level:** the VMs of the pool are unavailable — [Two nodes failed](/hcp/3.3/en/troubleshooting/two-nodes-failed/index.md).
- **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](/hcp/3.3/en/troubleshooting/pool-full/index.md).
- **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

- [Pool health — Warning](/hcp/3.3/en/troubleshooting/pool-health-warning/index.md)
- [Pool health — Critical](/hcp/3.3/en/troubleshooting/pool-health-critical/index.md)
- [VMs run slowly](/hcp/3.3/en/troubleshooting/vms-slow/index.md)
- [Replace a disk](/hcp/3.3/en/guides/replace-disk/index.md)
- [Node failure](/hcp/3.3/en/mechanics/node-failure/index.md)
- [Cluster storage (SDS)](/hcp/3.3/en/architecture/storage/index.md)
- [Hardware and network requirements](/hcp/3.3/en/os-install/requirements/index.md)
