Use it as the entry point when something on RAID fails and you need to find the failing layer.
RAID Troubleshooting
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.
1. Check array state, member health, controller events.
2. Identify disks by serial before pulling.
3. Check cables/backplane for CRC errors.
4. Check cache/BBU.
5. Verify after fix.
symptom → array state → disk/controller → fix
Context & applicabilityCommon mistakes · platform/version boundaries
A RAID alarm or degraded state is an observation, not root cause. Root cause requires the first failing step plus successful verification after correction.
Suspicious evidence: evidence from different times is mixed, member identity is uncertain, multiple changes are made at once, rebuild begins with unverified surviving media, or an optimal array state is accepted without workload/data verification.
Operational reference
Fast context before you go deeper.
mdadm --detail /dev/md0Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
symptom/time → array/logical-drive state → member identity/health → controller/cache/path → RAID failure-tolerance map → minimal change/rebuild → optimal state → original workload/data verification → regression check
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.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
cat /proc/mdstat; mdadm --detail /dev/md0— md statestorcli /c0 show all— controllersmartctl -a /dev/sdX— member health
ReferenceImportant terms & boundaries3 sections · depth on demand
Protection
A RAID alarm or degraded state is an observation, not root cause. Root cause requires the first failing step plus successful verification after correction.
In depth
A structured pass over a Linux md array
| Step | Command | Looks for |
|---|---|---|
| Overview | cat /proc/mdstat | Active/inactive, [UU_] pattern, recovery progress |
| Array detail | mdadm --detail /dev/md0 | State, failed and spare devices |
| Member metadata | mdadm --examine /dev/sdX1 | Event counts, array UUID, role |
| Kernel errors | journalctl -k | grep -E 'md/|ata|I/O error' | Which device failed and why |
| Disk health | smartctl -a /dev/sdX | Pending or reallocated sectors, CRC errors |
| Consistency | echo check > /sys/block/md0/md/sync_action | mismatch_cnt afterwards |
# mdadm --detail /dev/md0 | grep -E 'State|Devices|Failed|Spare'
State : clean, degraded, recovering
Active Devices : 3
Working Devices : 4
Failed Devices : 1
Spare Devices : 1
# mdadm --monitor --scan --oneshot
Monitoring
mdadm(8) describes --monitor. It polls redundant arrays (every 60 seconds by default) and reports events such as Fail, DegradedArray, RebuildStarted and SpareActive by mail, by running a program, or on stdout. -1 checks once, which suits cron. Make sure MAILADDR or PROGRAM is set in mdadm.conf and that the service is running.
Common issues
| Symptom | Cause |
|---|---|
Array renamed md127 after reboot | Not listed in mdadm.conf or initramfs not updated |
| Boot fails when the first disk dies | Bootloader installed on one disk only |
| Slow rebuild | Speed limits or application load; see sync_speed_min |
| Member keeps dropping | Cable, backplane or controller, not the disk |
After changes, update mdadm.conf (mdadm --detail --scan) and rebuild the initramfs.
Illustrative example (not a system capture).
Method
Collect state before changing anything:
cat /proc/mdstat; mdadm --detail /dev/md0; mdadm --examine /dev/sd[a-h]1
storcli /c0 show all; storcli /c0/eall/sall show; storcli /c0 show events
ssacli ctrl all show config detail
smartctl -a -d megaraid,N /dev/sda # disks behind a MegaRAID controller
| Symptom | Check |
|---|---|
| Slow array | Rebuild/patrol read running, cache in write-through, one slow disk |
| Disk flaps offline/online | Cable, backplane, firmware, SMART 199/188 |
| Foreign configuration after move | Import, do not clear |
| md array not assembled at boot | mdadm.conf ARRAY lines, initramfs update |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in RAID → RAID Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/admin-guide/md.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
RAID → RAID Troubleshooting RAID map
Fast layout, protection, failure and verification boundaries for RAID → RAID Troubleshooting.
| 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 |