RAID Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=3936
Answer
Start with symptom/time and exact array state, then inventory logical drives, physical members, spares, controller/cache protection, transport paths and active background tasks. Map observed faults against the RAID level's actual failure tolerance. Make the smallest reversible change only after preserving state and confirming backups.
Remember
- Array degraded ≠ root cause.
- Disk missing ≠ disk physically failed; path, backplane, power or controller may be responsible.
- Controller reports optimal ≠ filesystem/application healthy.
- Temporary recovery after reseat/reboot ≠ durable fix.
First checks
cat /proc/mdstat; mdadm --detail /dev/md0— md statestorcli /c0 show all— controllersmartctl -a /dev/sdX— member health
Commands
mdadm --detail /dev/md0- Inspect Linux software RAID state. Focus fields: array state, RAID level, active/working/failed devices, member roles a…
mdadm --examine /dev/sdX1smartctl -a /dev/sdXmdadm --detail --scan
Verify in this order
symptom → array state → disk/controller → fix
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 → RAID Troubleshooting 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 | A RAID alarm or degraded state is an observation, not root cause. Root cause requires the first failed boundary plus successful verification after correction. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: all expected members and paths are stable, controller/cache protection is healthy, array returns to optimal/consistent state and the original workload plus data checks remain successful. | 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=3936