Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

RAID Troubleshooting

Direct 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.

When to use this

Use it as the entry point when something on RAID fails and you need to find the failing layer.

First 30 seconds

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.

Operational verification

symptom → array state → disk/controller → fix

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Failure and recovery traps

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.

Platform / version applicability
RAID storage
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformRAID storage · Linux / mdadm
Key commandmdadm --detail /dev/md0
Scope / prerequisiteUse it as the entry point when something on RAID fails and you need to find the failing layer.
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • cat /proc/mdstat; mdadm --detail /dev/md0 — md state
  • storcli /c0 show all — controller
  • smartctl -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

StepCommandLooks for
Overviewcat /proc/mdstatActive/inactive, [UU_] pattern, recovery progress
Array detailmdadm --detail /dev/md0State, failed and spare devices
Member metadatamdadm --examine /dev/sdX1Event counts, array UUID, role
Kernel errorsjournalctl -k | grep -E 'md/|ata|I/O error'Which device failed and why
Disk healthsmartctl -a /dev/sdXPending or reallocated sectors, CRC errors
Consistencyecho check > /sys/block/md0/md/sync_actionmismatch_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

SymptomCause
Array renamed md127 after rebootNot listed in mdadm.conf or initramfs not updated
Boot fails when the first disk diesBootloader installed on one disk only
Slow rebuildSpeed limits or application load; see sync_speed_min
Member keeps droppingCable, backplane or controller, not the disk

After changes, update mdadm.conf (mdadm --detail --scan) and rebuild the initramfs.

Illustrative example (not a system capture).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
SymptomCheck
Slow arrayRebuild/patrol read running, cache in write-through, one slow disk
Disk flaps offline/onlineCable, backplane, firmware, SMART 199/188
Foreign configuration after moveImport, do not clear
md array not assembled at bootmdadm.conf ARRAY lines, initramfs update
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docRAID storage current

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%
Terminology layer

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.

Aliases that resolve here
raid troubleshootingtroubleshoot raidarray troubleshooting
Embedded reference data

Quick lookup tables

RAID → RAID Troubleshooting RAID map

Fast layout, protection, failure and verification boundaries for RAID → RAID Troubleshooting.

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 boundaryA 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?