Pcornel
Storage · RAID

Hot Spare

Cheat sheet · https://pcornel.dk/topic.php?topic=3929

Back to the Topic

Answer

A hot spare does not normally contain a complete active copy before failure. When policy selects it, the array reconstructs or copies data onto the spare and incorporates it as a replacement member. Spare compatibility, size and scope determine whether activation is possible.

Remember

  • Hot spare ≠ active redundancy before rebuild.
  • Hot spare ≠ backup.
  • Spare present ≠ eligible for every array.
  • Automatic spare activation ≠ successful rebuild.

First checks

  • mdadm --detail /dev/md0 | grep spare — spares
  • storcli /c0 show | grep -i hsp — hot spares
  • zpool status — spares section

Verify in this order

disk fails → spare activates → rebuild

Where it usually breaks

First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.

RAID → Hot Spare RAID map

RAID boundaryWhat to verifyProof limit
Layout / topologyRAID level, member grouping, effective member size and stripe/mirror/parity structureThe label alone does not prove current member health or exact failure tolerance
Protection stateArray state, members, spares, cache protection and active rebuild/consistency workOptimal/online state does not prove backup or application integrity
Failure boundaryAn available hot spare can reduce time spent waiting for a replacement, but it does not increase active failure tolerance until data is reconstructed onto it.Failure tolerance must be evaluated against the exact layout and failure pattern
AcceptanceHealthy evidence: spare is online, compatible and eligible, activation policy is known and test/rebuild history shows it can be incorporated successfully.Close only after the original workload/data check succeeds

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3929

Confirmation

Confirm action

Continue?