Hot Spare
Cheat sheet · https://pcornel.dk/topic.php?topic=3929
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— sparesstorcli /c0 show | grep -i hsp— hot spareszpool 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 boundary | What to verify | Proof limit |
|---|---|---|
| Layout / topology | RAID level, member grouping, effective member size and stripe/mirror/parity structure | The label alone does not prove current member health or exact failure tolerance |
| Protection state | Array state, members, spares, cache protection and active rebuild/consistency work | Optimal/online state does not prove backup or application integrity |
| Failure boundary | An 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 |
| Acceptance | Healthy 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