Research notes / Archival storage
Sleeping disks: one readable block is not a recoverable array
Published 17 October 2026 / Updated 9 November 2026 / Paper review and exhaustive algebraic check
A read can succeed without waking its disk even when the active disks cannot reconstruct all data. The distinction is exact, testable and easy to lose behind a count of parity disks.
On this page8 sections
Treat sleep as temporary unavailability
Greenan and colleagues proposed using redundancy to avoid disk activation. Their HotDep 2008 paper studies flat codes, with one symbol per disk. It presents analytical examples, not a modern fleet energy benchmark; CPU and network energy are outside its accounting. [1]
The five-data/three-parity construction is:
s5 = s0 XOR s1 XOR s2
s6 = s0 XOR s1 XOR s3
s7 = s0 XOR s2 XOR s3 XOR s4With disks 0, 5, 6 and 7 active, XOR cancels the repeated inputs:
s4 = s0 XOR s5 XOR s6 XOR s7
- s0Active
- s1Sleeping, ambiguous
- s2Sleeping, ambiguous
- s3Sleeping, ambiguous
- s4Sleeping, derivable
- s5Active
- s6Active
- s7Active
Check every input, not one convenient value
Hesela enumerates all 32 binary input words for this code and all 16 for the paper's four-data/four-parity example. For each of 256 active-disk subsets, it groups codewords by their visible symbols. A target is recoverable only if every codeword with the same observation agrees on that target. Since XOR operates independently on each bit, the conclusion extends to equal-length blocks under these equations.
A second test enumerates XOR combinations of the available coefficient vectors. Agreement between both checks guards against confusing a readable target with a uniquely decodable full input.
| Code | Full-data recovery | Non-recoverable pairs |
|---|---|---|
| 5 data + 3 parity | 27 / 28 | s4 and s7 |
| 4 data + 4 parity | 28 / 28 | None |
If s4 and s7 are unavailable in the first construction, changing only input s4 changes no visible symbol. Two different data words therefore fit the same observation. No decoder can resolve that ambiguity without additional information.
These are finite combinatorial counts, not 27/28 and 28/28 field reliability probabilities. No distribution over failures or sleep states is assumed. The second code also stores fewer data symbols in the same eight disks. Neither row alone establishes a better storage system.
Fewer wakeups can require more reads
Recoverability answers whether the requested data can be obtained. It does not choose the cheapest way to obtain them. Greenan et al. search for the smallest activation set; they also note that waking a disk can sometimes use less energy than reconstruction. [1, sections 3.2 and 4.3]
Our extension enumerates every physical read set and retains the trade-offs between two counts: newly activated disks and distinct equal-size blocks read. A row is retained when no other plan is at least as good on both counts and strictly better on one. These are exact operation counts, not watts, joules or predicted response times.
| Code / requested blocks | New activations | Blocks read |
|---|---|---|
| 5+3 / s4 | 0 | 4 |
| 5+3 / s4 | 1 | 1 |
| 5+3 / s2, s3 | 1 | 3 |
| 5+3 / s2, s3 | 2 | 2 |
| 4+4 / s1, s3 | 0 | 3 |
| 4+4 / s1, s3 | 2 | 2 |
For s4, avoiding its wakeup requires four reads; waking disk 4 permits one direct read. For s2 and s3 together, wake disk 2 and read s2, s5 and s6: s3 = s2 XOR s5 XOR s6. Waking both requested disks reduces this to two direct reads. Neither plan dominates the other on both counts.
The 4+4 case exposes a different accounting trap. Recover s1 from s0 and s6, and s3 from s0 and s5. Counting each reconstruction separately gives four block reads; reusing s0 within the request gives three. One extra activation cannot reduce that count. Two extra activations allow the two direct reads.
Keep the request and the measurement boundary explicit
The model assumes an active disk still needs a read: its block is not already cached. A selected block is read once and can serve multiple targets in this single codeword. All eight disks are healthy, and sleeping ones can wake. Writes, permanent failures, queues, cache hits and later requests are outside this calculation. Arbitrary active sets are mathematical inputs, not approved write groups.
Independent tests check all 256 active sets against every nonempty data request: 31 requests for the five-data code and 15 for the four-data code, giving 11,776 state/request pairs. The production check groups complete codewords by observations; the test oracle instead spans XOR coefficients. Both must return every nondominated plan, including tied alternatives.
For deployment, measure transition energy, how long disks remain awake, read concurrency and deadlines before choosing a plan. Minimizing wakeups alone does not settle that decision. MAID's trace-driven study separately illustrates why fewer participating disks can increase contention for large transfers. [2, section 5]
Inspect the exact plans and assumptions, enumerator, exhaustive tests and generation receipt. The enumerator imports the original power-aware-coding.mjs module linked below. Run node --test power-aware-read-plans.test.mjs with all three modules in the same directory. Original availability results remain unchanged.
MAID results need their workload attached
Colarelli and Grunwald's 2002 MAID study used trace-driven simulation, calibrated with drive measurements. Its reported archival workload had little locality: adding cache drives worsened response time. Figure 5 reports roughly 15-16% of baseline drive energy, not a datacenter-wide saving. The abstract's 1/15 wording conflicts with that figure; do not silently equate them. [2, sections 2-5]
That historical result does not select an idle timer for a present deployment. A useful evaluation must include request deadlines, transition energy, maintenance reads, parity freshness, failure recovery and total-system power. A nearline HDD product label specifies none of that policy.
Keep writes away from sleeping disks
Write off-loading changes placement instead of reconstructing reads. Narayanan, Donnelly and Rowstron's FAST 2008 study traced 36 volumes for one week, then replayed selected days on a hardware testbed. Its controller driver lacked spin-down support: software emulated power states and associated delays. Energy was modeled, not measured at the wall. [3, sections 2 and 4.1]
Separate longevity assumptions too. Pergamum's simulation charged 10 hours of disk life per spin-up, explicitly described as potentially pessimistic. That is not a measured lifetime decrement. Do not convert a proposed timer into a field failure forecast using that constant. [4, section 5.2]
| Decision | Question to resolve |
|---|---|
| Availability | Which object and version must be recoverable? |
| Recovery | Which machines and persistent records are needed after a restart? |
| Energy | What is measured, what is modeled, and which components are excluded? |
| Lifetime | Is the per-cycle cost observed or assumed? |
A smaller active set can mean more target I/O
Staggered reconstruction limits concurrent source activity. Pergamum describes sequential source visits that fold contributions into the replacement disk. Its prototype evaluation excludes scrubbing and consistency checking; a design description is not evidence that every maintenance mechanism was benchmarked. [4, sections 4.3.2 and 5.3]
An explicit schedule, not an energy forecast
Hesela's synthetic example reconstructs one missing XOR region from four correct, current source regions, each 1 GiB. Process complete batches of b sources, using a small RAM buffer for corresponding chunks. Write the partial result to the target after each batch. Before every later batch, read that result back. Do not retain a whole-region accumulator between batches. The target stays active; completed source batches turn off before the next batch starts.
There are p = ceil(4 / b) passes. Source reads total 4 GiB; target reads total p - 1 GiB and target writes total p GiB. The initial zero accumulator requires no target read. These are logical data transfers in the defined schedule, not physical media traffic.
| Sources per batch | Peak active disks | Target reads (GiB) | Target writes (GiB) | All reads + writes (GiB) |
|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 11 |
| 2 | 3 | 1 | 2 | 7 |
| 3 | 4 | 1 | 2 | 7 |
| 4 | 5 | 0 | 1 | 5 |
One-source batches need only two active disks but transfer 11 GiB in total. Four-source batches need five active disks and transfer 5 GiB. A width of three still needs two passes, so it has the same byte total as width two while requiring another active disk. This plateau follows from rounding up the number of batches, not from a measured performance result.
All four schedules visit every source. Fewer concurrent disks do not mean fewer source activations. Nor do bytes determine joules, completion time or reliability: spin-up costs, concurrency, caches, CPU work and the time spent rebuilding remain unmodeled. Retaining the entire accumulator in RAM would change these counts. This example provides no crash-recovery protocol, stable-storage guarantee or recommendation for a real array.
The JSON result and assumptions, MIT-licensed accounting module and tests are downloadable. Run node --test staggered-rebuild.test.mjs beside the module. Tests independently replay 6,240 traffic cases and 3,586 binary-word/batch cases. This is an original finite accounting example, not a reproduction of Pergamum's implementation or energy study.
Reproduce and keep the boundary explicit
Download the MIT-licensed JavaScript module, complete JSON result and tests. Run the tests with Node.js; call buildResults() for all 512 states. The generator receipt records the runtime and source hash. This is an algebraic reproduction, not a recreation of either paper's energy experiments.
Every available symbol is assumed correct, current and part of the same completed codeword. Stale parity, undetected corruption, interrupted updates, spin-up failures and overlapping requests are outside the model. A sleeping disk can return; a permanently lost disk cannot. Treating both as unavailable for one observation does not make their durability consequences equal.
Corpus: MAID and power-aware coding. Related: local repair costs.
Primary sources
- Kevin M. Greenan, Darrell D. E. Long, Ethan L. Miller, Thomas J. E. Schwarz and Jay J. Wylie. A Spin-Up Saved is Energy Earned: Achieving Power-Efficient, Erasure-Coded Storage. HotDep 2008, sections 2-6.
- Dennis Colarelli and Dirk Grunwald. Massive Arrays of Idle Disks For Storage Archives. SC 2002, July 26 manuscript, sections 2-5 and 7.
- Dushyanth Narayanan, Austin Donnelly and Antony Rowstron. Write Off-Loading: Practical Power Management for Enterprise Storage. FAST 2008, sections 2-4 and 6.
- Mark W. Storer, Kevin M. Greenan, Ethan L. Miller and Kaladhar Voruganti. Pergamum: Replacing Tape with Energy Efficient, Reliable, Disk-Based Archival Storage. FAST 2008, sections 4.3.2, 5.2 and 5.3.