Skip to main content

Michael Schmidt Michael Schmidt

Storage Rebuild After a Node Failure: What to Test on OpenShift

Oct 23, 2026  |  11 min read

Storage Rebuild After a Node Failure: What to Test on OpenShift

When a storage node fails in an erasure-coded cluster, running workloads keep their volumes. I/O moves to a failover path, and the cluster runs degraded until the node returns or you replace it. The storage rebuild after a node failure then restores full redundancy. Your VMs and databases feel a short I/O stall, a window with less fault tolerance, and rebuild traffic competing with their own I/O. A proof of concept (PoC) should measure each of them before you accept the storage.

The walk-through covers one storage node or one drive lost inside a single cluster on Red Hat® OpenShift®. The workloads are VMs on OpenShift Virtualization and databases on persistent volume claims (PVCs). Simplyblock 26.3 is the worked example at each step. Site loss and cross-site replication are a different failure; storage high availability for OpenShift covers that wider design.

Healthy baseline
Client I/O
1Node lost: I/O moves to a failover path
2Degraded until full protection returns
3Node returns or is replaced
Rebalancing (still degraded)
Client I/O
Rebuild
At most 20% (simplyblock 26.3)
4Rebalancing finished
Full protection
Client I/O
Figure 1: the four phases of a storage node failure

Phase 1: the path switch when the node drops

A workload first sees its I/O path disappear, and it stalls without losing data as long as a surviving path exists. In simplyblock, each volume is attached over NVMe over Fabrics (NVMe-oF) through a primary path and one or more failover paths. NVMe multipathing moves I/O to a path that still works.

In simplyblock 26.3, the number of failover paths follows the erasure coding scheme. Schemes with one parity chunk (1+1, 2+1, 4+1) get one secondary path, and schemes with two parity chunks (1+2, 2+2, 4+2) get two. On OpenShift, the simplyblock Container Storage Interface (CSI) node plugin re-establishes broken paths itself and needs no configuration.

The bigger risk sits in the application. A process that holds a file descriptor across a long path loss can be left with I/O errors that only a restart clears. For that case, the node plugin includes an optional guardian that restarts affected pods once the storage is healthy again. It is off by default, and you opt a workload in with simplyblock.io/auto-restart-on-pathloss: "true" on the pod, the PVC, or the StorageClass. In simplyblock 26.3, the guardian acts only when four conditions hold: the volume has been unusable for at least 30 seconds, the cluster reports itself active again, the pod has an owning controller that recreates it, and the pod is outside its 10-minute restart backoff. It checks these conditions every five minutes in 26.3, after a 90-second grace period. If you repeat a failure test within 10 minutes, the backoff can hold back a restart, so space the runs out. Wait at least one cycle after the cluster is active before you score a workload as needing a manual restart.

Phase 2: running degraded with less margin

Until full protection returns, every volume is still served, but the cluster has less fault tolerance left. The risk grows with the time this window lasts. A k+m erasure coding scheme survives the loss of m chunks per stripe. With one node gone, a 4+1 scheme (one failure to tolerate, FTT 1) has no tolerance left. A 4+2 scheme (FTT 2) still protects the data against a second node loss, but I/O can pause. Treat a second failure inside the degraded window as a possible outage, and keep it out of the test plan.

Performance can change in this window too, because reads of data that lived on the lost node are reconstructed from the surviving chunks. The simplyblock 26.3 docs say that a cluster with a storage node offline is degraded and that read and write performance can be impacted. They advise keeping nodes offline for as short a time as possible, and never shutting down or restarting a storage node while the cluster is degraded. So plan no maintenance inside a degraded window. A planned OpenShift worker drain needs no manual steps. The simplyblock operator shuts down the storage node on a cordoned worker and lets Kubernetes drain it. Once the worker is back, the operator restarts the node and waits until rebalancing is finished. In 26.3, spec.maxConcurrentWorkerRestarts on the StorageCluster (default 1) sets how many workers can drain at once, capped by the backend-reported status.maxFaultTolerance.

With failure domains enabled, simplyblock spreads the chunks of each stripe, the journal copies, and the failover paths across racks or zones you label. A failure confined to one domain keeps the cluster serving I/O in a degraded state. That holds only as long as the loss fits the parity budget for the scheme and domain count. In the 26.3 failure-domain table, 4+1 on five or more domains tolerates one whole domain. On three or four domains, 4+1 tolerates only one node in total. Failure domains are a deploy-time choice and cannot be switched on for an existing cluster, so decide before you build the PoC cluster.

What follows depends on whether the node comes back. A node that returns triggers rebalancing. On OpenShift, you bring an offline node back with a StorageNodeOps restart action, as described in restarting a storage node. A node that does not return keeps the cluster degraded until you act. On a failure-domain cluster, the 26.3 docs warn that a dead node left in place can also block later repairs.

The documented routes for a node that does not return are to relocate it or to retire and replace it. Relocate when the host is swapped and the node should keep its data: the node keeps its devices and volume assignments, so no volume data is copied between nodes. Retire and replace when the node itself is retired: you add the new node first, then drain and remove the old one, which moves its volumes across the cluster. Removing a node without draining it makes its volumes inaccessible. For a dead node, the degraded window therefore includes the time you take to decide and act.

Phase 3: the storage rebuild after a node failure

A rebuild restores full protection by recomputing lost chunks from parity and writing them to healthy devices. The reads, the parity math, and the writes compete with your workloads for drives, CPU, and network. A larger rebuild share shortens the degraded window, and a smaller share protects client latency.

Erasure coding rebuild performance is the result of that trade-off plus data volume, hardware, network, scheme, and foreground load. A rebuild time quoted without those conditions tells you little, so the PoC has to measure it on your hardware at your fill level. The erasure coding rebuild performance glossary entry covers the general tuning levers.

In simplyblock, the rebuild runs as rebalancing work. The 26.3 docs list rebalancing for failed devices and nodes, for nodes returning after an outage, and for cluster expansion. They set three rules for it. It tries to move the longest contiguous segments of data, which reduces random I/O. It uses no more than 20% of the cluster’s performance capacity in 26.3, enforced by internal quality of service (QoS). And it spreads the work across all devices to go as fast as possible within that 20%. Marking a device failed is final, and its data is then recovered to other devices in the cluster automatically.

The rest of the cluster’s performance goes to client I/O, divided by QoS service classes. Cluster-internal traffic such as rebalancing has its own class. The user classes receive relative weights, and a class that does not use its quota leaves it for the others. Weights are shares of what the cluster delivers at that moment: if total output drops, each class’s absolute amount drops with it, and the proportions stay the same. The design keeps the rebuild inside its own class. It is not a latency guarantee, and a class already running close to its share can still see latency rise. The multi-tenancy and QoS page covers how classes and caps fit together.

Two operations wait while the cluster rebalances. Under the 26.3 migration preconditions, a volume migration is admitted only while the cluster is active and not rebalancing. A node-removal drain also pauses while the cluster is rebalancing and retries every 60 seconds. When a node removal drives the rebuild, simplyblock 26.3.2 reports progress in the devicesMigrated and devicesTotal fields of the StorageNodeOps status.

Phase 4: back to full protection, and how to prove it

The failure is over when every volume has full redundancy again and the cluster has stopped moving data. For a simplyblock cluster on OpenShift, the docs define the end state after a node replacement: every storage node online and healthy, the expected node count, and rebalancing finished. Example command from the simplyblock 26.3 documentation that reads the cluster status and the rebalancing flag from the StorageCluster resource:

Terminal window
kubectl get storagecluster simplyblock-cluster -n simplyblock \
-o jsonpath='{.status.status}{" rebalancing="}{.status.rebalancing}{"\n"}'

Then confirm with kubectl get pv that every PersistentVolume is Bound and its consuming pod or VM is running. Finally, fail a node again: a cluster that is back to full protection has to pass the same test it passed the first time.

Acceptance tests for your proof of concept

A useful test starts from a recorded healthy baseline and runs under production-like load at production-like fill. It injects one failure at a time into a fully protected cluster. The rebuilt data has to fit on the surviving devices, so a half-empty PoC cluster tells you less than a full one. Fill in the last column with your own numbers before the test starts.

PhaseWhat to measureHowPass criterion you set
Path switchLongest I/O stall, I/O errors, workloads that needed a manual restartfio latency logs in a pod or VM; guest and application logs, read after one guardian cycleMaximum stall in seconds; no manual restarts
DegradedTime from failure to full protection, including the time to relocate or retire a node that does not return; latency change at normal loadcluster-status-degraded alert to rebalancing=falseMaximum time degraded at your fill level
Rebuildp99 latency per service class against the healthy baseline; rebuild durationfio histogram logs; StorageCluster statusMaximum p99 increase per class
Full protectionNode count and health, PV binding, tolerance of a second failurekubectl get storagenodes -n simplyblock -o wide, kubectl get pv, repeat the failureSame result as the first failure

Interval averages hide the spikes you are looking for. The fio documentation (fio 3.42) states that computing latency percentiles from averaged intervals is inaccurate. Log latency histograms with write_hist_log and log_hist_msec instead. Or write latency logs with write_lat_log and set log_window_value=max with log_avg_msec to keep the worst value of each window. An example job, not a tested profile, with a runtime longer than the expected rebuild:

[global]
ioengine=libaio
direct=1
time_based=1
runtime=7200
log_hist_msec=1000
write_hist_log=node-failure
[randrw]
filename=/data/testfile
size=20g
rw=randrw
rwmixread=70
bs=4k
iodepth=16

Run the tests in this order, and start every failure from a fully protected cluster:

  1. Record the baseline. Run the fio job on the healthy cluster for the same duration and keep its histogram log.
  2. Fail a drive with sbctl storage-node set-failed-device <DEVICE_ID>. Choose this first when you want to test the rebuild of one device’s data on its own. The failed state is final. sbctl storage-node new-device-from-failed <DEVICE_ID> adds the previously failed and migrated device back as a new, empty device.
  3. Power off a storage host out of band and leave it off, then relocate or retire its storage node with the documented procedure. Choose this to test all four phases, including the route for a node that does not return. Time each step, from the alert to rebalancing=false.
  4. Power off a host and bring it back within your maintenance window. Choose this to test the path switch, the degraded window, and the rebalancing after a temporary outage.

The storage reliability evaluation framework covers the data-integrity side of the same tests, and QoS on OpenShift storage covers how to design the service classes you measure here.

You may also like:

NVMe/TCP vs NVMe/RoCE for Kubernetes Storage: Choosing the Right Fabric
NVMe/TCP vs NVMe/RoCE for Kubernetes Storage: Choosing the Right Fabric

NVMe over Fabrics gives Kubernetes clusters low-latency block storage over the network. The transport you pick, TCP or RoCE, determines your latency floor, infrastructure cost, and operational complexity. Here is how to choose.

NVMe Storage Cost Optimization in 2026: Erasure Coding, Thin Provisioning, and Compute Efficiency
NVMe Storage Cost Optimization in 2026: Erasure Coding, Thin Provisioning, and Compute Efficiency

NVMe drives deliver the performance Kubernetes stateful workloads need, but triple replication and thick provisioning multiply their cost fast. Here is a practical breakdown of erasure coding economics, thin provisioning, and how sub-millisecond latency reduces compute waste.

Ephemeral Storage in Kubernetes: Why It Silently Breaks Stateful Workloads
Ephemeral Storage in Kubernetes: Why It Silently Breaks Stateful Workloads

emptyDir and other ephemeral storage look fast and simple, until a pod eviction or node failure erases the data. Here is what actually happens, and how NVMe/TCP persistent volumes give you the same latency without the risk.