Storage · Storage Troubleshooting
RAID Rebuild
Cheat sheet · https://pcornel.dk/topic.php?topic=4385
Answer
Rebuild reads surviving redundancy and writes reconstructed blocks to a replacement/member. Progress depends on member health, controller policy, workload contention, capacity and error handling.
Remember
- Rebuild started ≠ rebuild will complete.
- Rebuild 100% ≠ filesystem or application data integrity proven.
- Slow rebuild ≠ faulty replacement automatically; workload and controller throttling matter.
- Increasing rebuild priority can improve completion time while harming foreground latency.
First checks
cat /proc/mdstat— progresszpool status— resilver progressstorcli /c0/eall/sall show rebuild— hardware progress
Commands
mdadm --detail /dev/md0mdadm --detail --test /dev/md0smartctl -ajournalctl -kmdadm --monitor
Verify in this order
rebuild → progress → optimal
Where it usually breaks
First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.
Storage Troubleshooting → RAID Rebuild proof map
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | RAID degraded set → surviving reads → reconstruction engine/controller → target member writes → progress/error handling → optimal state → filesystem/application verification | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | Rebuild progress proves reconstruction work is occurring; it does not prove survivor health, final data integrity or acceptable application performance. | Correlate evidence for the same operation and timestamps |
| Acceptance | Healthy evidence shows monotonically advancing rebuild with no uncorrectable survivor errors, restored optimal state and successful upper-layer verification. | Close only after the original workload/recovery test and regression check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4385