Distributed spare
A distributed spare is replacement capacity spread across multiple devices rather than reserved on a single dedicated spare device.
It permits reconstruction writes to use multiple destinations; placement constraints and reserved capacity still apply.
Holland's illustrative RAID 5 layout reserves a spare unit per stripe; this is not a general rule for declustered arrays. Section 5.3 instead separates static space allocation from failure-dependent assignment and rejects excessive per-stripe reservation. A rebuilt unit must not share a disk with another unit from its stripe [3].
In a simulated 40-disk array at low declustering ratios, reconstruction took 34 s with distributed sparing against 215 s with a dedicated spare, a factor of 6.3, at up to about 10% worse user response time during the rebuild. At high declustering ratios the surviving disks limit the rebuild and the gain is small. [3] The inverse relationship between mean time to data loss and mean repair time is a fast-repair approximation for independent exponential disk lifetimes and exponential repairs in a single-erasure-correcting model, not a universal array law [7].
OpenZFS dRAID integrates distributed spares into its parity groups, rebuilds onto them with a sequential resilver whose speed scales with the number of disks per stripe width, and frees the spare space again once the failed drive is replaced. [1] [5] With 14 children and 2 spares, the spares take 14.3% of raw capacity. [6]
Relations
- related
- Parity declustering, RAID, Hot spare, RAID rebuild, dRAID (OpenZFS)
Advantages
- Every spindle serves requests in fault-free operation, so the spare's actuator is no longer idle. [3]
Limitations
- A distributed spare can be used only by the redundancy group it belongs to. [1]
- Large accesses can run slower in reconfigured mode, because the rebuilt layout no longer meets the large-access criterion. [3]
Citations
- OpenZFS dRAID how-to: Introduction and Rebuilding to a Distributed Spare.
- Holland. On-Line Data Reconstruction in Redundant Disk Arrays. PhD dissertation, Carnegie Mellon University, 1994, chapter 5.
- OpenZFS 2.3.0 zpoolconcepts(7), dRAID section.
- OpenZFS 2.3.0 module/zfs/vdev_draid.c, distributed spare vdev and asize calculation.
- Gibson and Patterson. Designing Disk Arrays for High Data Reliability. JPDC 17 (1993), pp. 4-27; section 4, equations 5-9.
Further reading
- Parity declustering: less load per disk, not fewer reads
- Holland and Gibson. Parity Declustering for Continuous Operation in Redundant Disk Arrays. ASPLOS 1992.
Sources & caveats
- The benefit numbers are simulation of early-1990s drives by one university research group, not measurements of current arrays or of OpenZFS dRAID, whose documentation publishes no rebuild times.
- The OpenZFS documentation and code come from the project that implements the feature.
- Arithmetic: 215 / 34 = 6.3; with parity stripes of 5 units in 40 disks, one spare per stripe would reserve 20% where 2.5% is needed; adding one idle disk to 40 gives at most 2.5% more throughput.
- Arithmetic: 2 / 14 = 14.3%; usable capacity is (14 - 2) x 8/9 = 10.7 child sizes, 76% of raw, for 8 data and 1 parity devices per group.