{
  "slug": "distributed-spare",
  "term": "Distributed spare",
  "aliases": [
    "distributed hot spare"
  ],
  "definition": "A distributed spare is replacement capacity spread across multiple devices rather than reserved on a single dedicated spare device.",
  "note": "It permits reconstruction writes to use multiple destinations; placement constraints and reserved capacity still apply.\n\nHolland'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 [thesis1994].\n\nIn 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. [thesis1994] 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 [gibson1993].\n\nOpenZFS 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. [openzfs] [zpoolconcepts] With 14 children and 2 spares, the spares take 14.3% of raw capacity. [zfsdraid]",
  "related": [
    "parity-declustering",
    "raid",
    "hot-spare",
    "raid-rebuild",
    "draid"
  ],
  "citations": [
    {
      "id": "openzfs",
      "title": "OpenZFS dRAID how-to: Introduction and Rebuilding to a Distributed Spare.",
      "url": "https://openzfs.github.io/openzfs-docs/Basic%20Concepts/Pool%20Structure/dRAID%20Howto.html",
      "accessed": "2026-10-13"
    },
    {
      "id": "hesela-declustering",
      "title": "Parity declustering: less load per disk, not fewer reads",
      "url": "https://hesela.com/analyses/parity-declustering-rebuild-load/",
      "accessed": "2026-10-13"
    },
    {
      "id": "thesis1994",
      "title": "Holland. On-Line Data Reconstruction in Redundant Disk Arrays. PhD dissertation, Carnegie Mellon University, 1994, chapter 5.",
      "url": "https://www.pdl.cmu.edu/PDL-FTP/Declustering/Thesis.pdf",
      "accessed": "2026-11-02"
    },
    {
      "id": "holland1992",
      "title": "Holland and Gibson. Parity Declustering for Continuous Operation in Redundant Disk Arrays. ASPLOS 1992.",
      "url": "https://www.cs.cmu.edu/~riedel/ftp/Declustering/ASPLOS.pdf",
      "accessed": "2026-10-16"
    },
    {
      "id": "zpoolconcepts",
      "title": "OpenZFS 2.3.0 zpoolconcepts(7), dRAID section.",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/man/man7/zpoolconcepts.7",
      "accessed": "2026-10-16"
    },
    {
      "id": "zfsdraid",
      "title": "OpenZFS 2.3.0 module/zfs/vdev_draid.c, distributed spare vdev and asize calculation.",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/module/zfs/vdev_draid.c",
      "accessed": "2026-10-16"
    },
    {
      "id": "gibson1993",
      "title": "Gibson and Patterson. Designing Disk Arrays for High Data Reliability. JPDC 17 (1993), pp. 4-27; section 4, equations 5-9.",
      "url": "https://www.pdl.cmu.edu/PDL-FTP/RAID/JPDC.pdf",
      "accessed": "2026-11-02"
    }
  ],
  "status": "shipping",
  "advantages": [
    {
      "text": "Every spindle serves requests in fault-free operation, so the spare's actuator is no longer idle.",
      "citationIds": [
        "thesis1994"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A distributed spare can be used only by the redundancy group it belongs to.",
      "citationIds": [
        "openzfs"
      ]
    },
    {
      "text": "Large accesses can run slower in reconfigured mode, because the rebuilt layout no longer meets the large-access criterion.",
      "citationIds": [
        "thesis1994"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-09",
  "provenance": [
    "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."
  ]
}
