Skip to main content

Rob Pankow Rob Pankow

Rack Failure Domains and Erasure Coding: How Many Racks Each Scheme Needs

Oct 25, 2026  |  11 min read

Last edited: Oct 26, 2026

Rack Failure Domains and Erasure Coding: How Many Racks Each Scheme Needs

With rack failure domains in simplyblock 26.3, erasure coding survives the loss of one whole rack on three racks with the 1+1 or 2+1 scheme, on four racks with 4+2, and on five racks with 4+1. Surviving two whole racks at once takes four racks with 1+2 or 2+2, or six racks with 4+2.

The guide is for architects laying out storage for a Red Hat® OpenShift® cluster that runs VMs on OpenShift Virtualization next to containers, spread across racks, rooms or zones. A failure domain is a group of hosts that share an infrastructure dependency and fail together: a rack, a cabinet, a power distribution unit or an availability zone. The scope is one storage cluster. Losing an entire site needs a different design, covered in two-site synchronous storage.

Make the choice before the cluster exists. In simplyblock 26.3, failure domains are a deploy-time setting: you cannot switch them on or off for a running cluster, and adding them later means redeploying.

Rack failure domains and erasure coding: what each layout survives

What a cluster absorbs depends on two numbers, the failure domain count and the erasure coding scheme. The simplyblock 26.3 failure domains documentation gives this table for the supported schemes.

Failure domains1+12+14+11+22+24+2
Two or fewerCannot activateCannot activateCannot activateCannot activateCannot activateCannot activate
ThreeOne domainOne domainOne node in totalCannot activateCannot activateCannot activate
FourOne domainOne domainOne node in totalTwo domainsTwo domainsOne domain
FiveOne domainOne domainOne domainTwo domainsTwo domainsOne domain
Six or moreOne domainOne domainOne domainTwo domainsTwo domainsTwo domains

“One domain” means every node in one domain can go down at once, whatever its size, and the cluster stays available. “One node in total” means a single node anywhere in the cluster, not a domain’s worth.

The cannot-activate cells come from the activation rule. A cluster with failure domains enabled needs at least its parity chunk count plus two domains: three for the one-parity schemes, four for the two-parity schemes. Two domains are never enough, at any parity count, and below the minimum simplyblock refuses to activate. The extra domain keeps a spare host available. With only parity plus one domains, the next node addition or removal would strand a failover path with nowhere valid to go.

Why the chunk spread decides what a rack loss costs

A rack outage is survivable when the chunks that rack holds fit inside the scheme’s parity budget. Each erasure coding stripe is made of data chunks plus parity chunks, and simplyblock spreads them across the domains as evenly as the domain count allows.

With at least as many domains as a stripe has chunks, each domain holds at most one chunk of it, and the cluster tolerates the loss of as many whole domains as the scheme has parity chunks. With fewer domains, at least one domain holds more than one chunk of the same stripe. A 4+2 stripe has six chunks, four data and two parity. On four racks, two racks hold two chunks each and two hold one. Losing either of the two-chunk racks spends the whole parity budget of two, so four racks survive one rack loss and nothing more. On six racks, each rack holds one chunk, and any two racks can be lost.

4+2 on four racks
Chunk
Chunk
Chunk
Chunk
Chunk
Chunk
Losing a two-chunk rack spends the whole parity budget
4+2 on six racks
Chunk
Chunk
Chunk
Chunk
Chunk
Chunk
Any two racks can be lost
Each box is one rack, each blue block one chunk of the stripeRack lost
Figure 1: one 4+2 stripe spread over four racks and over six racks

The same arithmetic catches 4+1. A 4+1 cluster on three or four racks activates and looks protected, yet it survives only one node failure in the whole cluster. Five chunks over four racks puts two chunks in one rack, more than one parity chunk can cover, so no rack loss is safe. Adding racks raises rack tolerance. Adding hosts to the same racks does not.

Chunk placement is one of four things simplyblock bases on the domain assignment. The other three keep your VMs and pods attached to their volumes through a rack outage that fits the budget:

  • Journal copies. A failure-domain cluster needs at least four copies of the high-availability write journal instead of the default three (you set this in step 4 below). The copies are balanced across domains with a cap per domain, so losing a whole domain still leaves enough copies for the journal quorum.
  • Failover paths. Every logical volume store keeps at least one failover path in a different domain from its primary node. The secondary path and, with two parity chunks, the tertiary path go to other domains wherever the topology allows.
  • Cluster health. Any mix of node and device outages confined to one domain keeps the cluster serving I/O in a degraded state instead of suspending it, as long as that domain’s share fits the parity budget.

Simplyblock makes these placements itself from the domain each host is assigned. It does not detect racks, so the assignment has to match the physical layout. On OpenShift the assignment is an integer group index per worker; the architecture docs call it the domain label.

Choosing a layout by rack count

Start from the number of racks or zones you can actually build, then take the erasure coding scheme that survives a rack on that count at the overhead you can afford. Overheads in the table are the simplyblock 26.3 data protection overhead per scheme, before any operating reserves.

RacksSchemeProtection overheadHosts at two per rackHosts at three per rackMargin left after one rack is lost
Three2+150%SixNineNone until the rack returns
Four4+250%Eight12None until the rack returns
Four2+2100%Eight12One more rack
Five4+125%1015None until the rack returns
Six or more4+250%1218One more rack
  • Choose 2+1 on three racks when three racks or rooms is all you have. It is the lowest-overhead scheme that survives a whole domain on three.
  • Choose 4+2 on four racks when you want 4+2’s 50% overhead with one-rack tolerance and plan to add racks later. A rack loss uses the entire parity budget, so treat it as an incident to close fast.
  • Choose 2+2 on four racks when the cluster must survive a second rack outage before the first is fixed, and you accept double raw capacity for it.
  • Choose 4+1 on five racks when raw capacity drives the decision. At 25%, 4+1 has the lowest overhead of the protected schemes in the 26.3 table, and after a rack loss it has no margin left.
  • Choose 4+2 on six or more racks when you want two whole racks of tolerance at 50%.

The 1+1 and 1+2 schemes survive the same rack counts as 2+1 and 2+2, at 100% and 200% overhead. They fit only when fast recovery matters more than capacity.

Two hosts per rack is the floor: every domain must keep at least two once the cluster holds data. At that size a dead host cannot be removed, because its rack would drop below two, so you add a replacement in that rack first. Three hosts per rack is the smallest size at which you can remove a dead host directly under the ±1 balance rule.

Buy hosts in whole rounds, one per rack at a time, since activation requires the same host count in every domain. Count physical hosts, not storage nodes. A multi-socket host running two storage nodes counts as one host, and both nodes carry the same domain. Dedicated secondary nodes do not count toward the balance. Every host count in the table also clears the scheme’s own minimum in 26.3: six storage nodes for 4+1 and eight for 4+2. For capacity figures with reserves, use the erasure coding calculator and the overhead analysis.

An estate with only two rooms cannot activate failure domains. Plan it as two sites, with replication between clusters.

Setting up OpenShift storage failure domains

You set OpenShift storage failure domains through two simplyblock Operator resources: the StorageCluster turns the mode on, and the StorageNodeSet assigns each worker to a domain. The steps follow the 26.3 Managing Failure Domains page.

  1. Number your racks from 1. A domain is a non-negative integer group index. The schema accepts 0, but the Operator drops that value from its request, so a worker with index 0 behaves as unassigned.
  2. Create the StorageCluster with spec.enableFailureDomains: true and your scheme in spec.stripe. The field is immutable.
  3. Assign every worker in spec.nodeFailureDomains on the StorageNodeSet. Workers in the same rack share an index. spec.nodeConfigs[<worker>].failureDomain sets one worker and takes precedence. If your nodes already carry rack or zone labels for pod scheduling, use the same grouping for the index so storage and workload placement agree (see fault domains versus availability zones).
  4. Set spec.journalManager.count to 4. The default is three copies.
  5. Check the result with kubectl get storagenodes -n simplyblock -o wide and read the FD column.

These example manifests come from the simplyblock 26.3 documentation. They are an excerpt to merge into your existing manifests, not complete files: the fabricType, maxSubsystemCount and vcpuCount lines are removed. They describe a 2+1 cluster with six workers in three domains, the three-rack path:

apiVersion: storage.simplyblock.io/v1alpha1
kind: StorageCluster
metadata:
name: simplyblock-cluster
namespace: simplyblock
spec:
enableFailureDomains: true
stripe:
dataChunks: 2
parityChunks: 1
---
apiVersion: storage.simplyblock.io/v1alpha1
kind: StorageNodeSet
metadata:
name: simplyblock-node
namespace: simplyblock
spec:
clusterName: simplyblock-cluster
journalManager:
count: 4
workerNodes:
- worker-1.example.com
- worker-2.example.com
- worker-3.example.com
- worker-4.example.com
- worker-5.example.com
- worker-6.example.com
nodeFailureDomains:
worker-1.example.com: 1
worker-2.example.com: 1
worker-3.example.com: 2
worker-4.example.com: 2
worker-5.example.com: 3
worker-6.example.com: 3

Example output from the simplyblock Managing Failure Domains documentation (26.3), which lists one node per domain:

NAME WORKER SOCKET NODEIDX FD UUID STATUS HEALTH AGE
simplyblock-node-mejue8 worker-1.example.com 0 0 1 82198a36-fcbb-43e3-949c-0260bf40f0ac online true 43h
simplyblock-node-o6x20i worker-3.example.com 0 0 2 707dd443-5d0e-470f-bdde-92f1238c4b01 online true 43h
simplyblock-node-v92jx7 worker-5.example.com 0 0 3 114899a6-d708-499e-8051-bc9ca9713cf8 online true 43h

A worker without an index is not provisioned on a failure-domain cluster. The Operator holds the node, emits a FailureDomainMissing warning event that names the worker and the field to set, and retries every 60 seconds until you add the assignment.

Day-two rules for a failure-domain cluster

Once a failure-domain cluster holds data, simplyblock 26.3 admits a topology change only while the domains stay balanced, and it refuses a change that breaks the rules before any data moves. Plan growth, moves and repairs around four rules.

  • Grow in rounds. The host count per domain may never differ by more than one, and no domain may drop below two hosts. On a balanced cluster, one new worker can go to any domain, and the next one must go to a different domain. Adding another storage node on a host that is already a member is always allowed.
  • Move hosts by removal. A host’s domain cannot change while it is in the cluster. To move it, drain and remove the node, restore the balance, and add it again with the new index.
  • Clear dead hosts promptly. A failed host still counts toward its domain’s total while serving nothing, so the cluster stays degraded. With three or more hosts per domain, remove it, then add a replacement in the same domain or remove hosts from the other domains until all are within one host of each other. With two hosts per domain, add the replacement in that domain first, then remove the dead host. If a second host in the same domain fails before the first is removed, removal alone can no longer repair the cluster, and you have to add hosts first.
  • Expect a parallel return. When a whole domain comes back, for example after a rack power loss, simplyblock restarts its nodes in parallel instead of one by one, which shortens recovery for large domains.

Removal has further preconditions, listed in the failure domains documentation. For what to measure while a cluster runs degraded and rebuilds, see storage rebuild after a node failure on OpenShift. For the wider availability design, see storage high availability for OpenShift.

You may also like:

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.

Replacing vSAN Storage When Moving to OpenShift or Kubernetes
Replacing vSAN Storage When Moving to OpenShift or Kubernetes

Most VMware migration guides focus on the compute layer — but vSAN is the storage layer, and it does not migrate. Here is what platform teams need to plan when replacing vSAN as part of an OpenShift or Kubernetes transition.

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.