Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

RAID Troubleshooting

Direct answer

RAID troubleshooting covers degraded or failed arrays, arrays that do not assemble at boot, slow rebuilds and mismatched or stale members.

When to use this

Use it when an array is degraded, missing or inconsistent.

First 30 seconds

1. cat /proc/mdstat and mdadm --detail — state?

2. Not assembled → mdadm --assemble --scan; check mdadm.conf and initramfs.

3. mdadm --examine each member — event counts and roles.

4. Disk errors → dmesg, smartctl.

5. Replace/rebuild; restore from backup if the array is lost.

Operational verification

members found → superblocks agree → assembled → clean or degraded → rebuilt

Evidence · next step

For RAID → RAID Troubleshooting, continue with the first unproven Topic check: Pin exact symptom/time, expected array UUID/name/level/member count and recent disk, kernel, boot, cabling, VM or configuration changes. If that boundary is healthy, advance to the adjacent check: Capture /proc/mdstat, md detail and md examine for every candidate member before force, create, zero-superblock or replacement operations. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
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.

Platformlinux
Key commandsmartctl -a /dev/sdb
Scope / prerequisiteUse it when an array is degraded, missing or inconsistent.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

5 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 Operational evidence path Verify boundary

symptom/time → expected array identity/layout → component discovery + superblocks/events → kernel assembly/member state → media/path errors → recovery/check state → LVM/filesystem → original workload → minimal change + retest

Healthy evidence: the intended UUID/layout/member generation is coherent, root cause is isolated, the smallest repair restores expected array state and the original workload remains healthy after regression checks.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Pin exact symptom/time, expected array UUID/name/level/member count and recent disk, kernel, boot, cabling, VM or configuration changes.

  • Capture /proc/mdstat, md detail and md examine for every candidate member before force, create, zero-superblock or replacement operations.
  • Correlate member events/errors with dmesg/device/path evidence and identify the first failing step: discovery, metadata, assembly, member I/O, recovery or upper consumer.
  • Make one minimal reversible change where possible, then repeat array-state checks and the original filesystem/application workload plus regression checks.

Verification chain. symptom/time → expected array identity/layout → component discovery + superblocks/events → kernel assembly/member state → media/path errors → recovery/check state → LVM/filesystem → original workload → minimal change + retest

Step 3 Commands Verify boundary
cat /proc/mdstat
mdadm --detail /dev/md0
smartctl -a /dev/sdb
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: operators mutate metadata before capture, infer a failed disk from degraded state alone, force stale assembly or stop when /dev/md* reappears without proving redundancy and workload correctness.

Step 5 Common mistakes Narrow the fault
  • Ignoring a degraded array.
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

Do not recreate an array over existing members — assemble it. Compare event counts with mdadm --examine. A stale member must be re-added, not forced. Get help before using --force on a failed array.

Key checks
  • cat /proc/mdstat — md arrays and sync status
  • mdadm --detail /dev/md<n> — array state and members
  • mdadm --examine /dev/<dev> — member superblock
  • smartctl -H /dev/<disk> — disk health
ReferenceWhat it is1 section · depth on demand

Core model

Start from symptom, exact time and array UUID rather than from a guessed failed disk. Preserve md and component metadata before mutation; map member identity/role/event state, lower media/path evidence, current assembly/degradation/recovery state and upper LVM/filesystem/workload symptoms. Change only the first confirmed failing step and retest the original operation.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

RAID troubleshooting is resolved only when the first failing step is explained, the intended array state is stable and redundant as designed, and the original upper-layer workload succeeds; visibility or temporary assembly alone is insufficient.

In depth

State of the array and of each member

# mdadm --detail /dev/md0
        Raid Level : raid5
      Raid Devices : 4
             State : clean, degraded
    Active Devices : 3
    Failed Devices : 1
    Number   Major   Minor   RaidDevice State
       0       8       17        0      active sync   /dev/sdb1
       -       0        0        1      removed
       2       8       49        2      active sync   /dev/sdd1
       3       8       65        3      active sync   /dev/sde1
       1       8       33        -      faulty   /dev/sdc1
# mdadm --examine /dev/sdc1 | grep -E 'Events|Update Time|Device Role|Array State'

The mdadm manual contrasts --detail (whole active array) with --examine (metadata on one member), and documents --assemble --scan, --re-add (return a previously removed device to its slot) and --replace (rebuild onto a spare while the old device stays in service).

Event counts decide what is safe

--examine shows an Events counter per member. Members with the same or very close counts belong together; a member far behind has stale data and must be rebuilt, not forced in.

Typical situations

SituationAction
Degraded, failed diskmdadm /dev/md0 --remove /dev/sdc1, replace disk, --add /dev/sdX1
Disk dropped briefly (cable, timeout), bitmap presentmdadm /dev/md0 --re-add /dev/sdc1 — resyncs only changed regions
Array not assembled at bootmdadm --assemble --scan; check mdadm.conf and initramfs (update-initramfs -u / dracut -f)
Array inactiveNot enough members found — --examine all disks before any --force
Two disks failed in RAID5Stop. Image the disks; forced assembly only with expert analysis

Monitoring

mdadm --monitor --scan --daemonise --mail=ops@example.com
cat /sys/block/md0/md/mismatch_cnt
smartctl -a /dev/sdc | grep -E 'Reallocated|Pending|Uncorrectable'

Degraded arrays that nobody notices are the real risk; make sure mdmonitor (or equivalent) runs and alerts.

Never

Do not run mdadm --create on existing member disks to "recover" an array unless you know the exact original layout — it overwrites metadata and can destroy data. Capture --examine output for every disk first.

*The degraded mdadm array listing is a constructed example rather than a report from physical RAID members.*

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

How it works at runtime

RAID Troubleshooting is part of RAID → RAID Troubleshooting. RAID Troubleshooting is the Linux md failure-isolation workflow for missing arrays, degraded membership, stale metadata, failed assembly, unexpected recovery, recurring member faults, performance symptoms and upper-layer failures without destroying recoverability.

Topic-specific state model. RAID Troubleshooting is the Linux md failure-isolation workflow for missing arrays, degraded membership, stale metadata, failed assembly, unexpected recovery, recurring member faults, performance symptoms and upper-layer failures without destroying recoverability.

Interpretation rule. - Missing /dev/md* ≠ member data is gone; array may be unassembled, renamed, blocked by initramfs/policy or missing only one dependency.

  • Degraded flag ≠ identifies root cause; the member may have failed because of media, cabling/path, power, timeout or administrative removal.
  • Force assembly can make data visible ≠ it selected a coherent latest generation; forcing stale members can destroy evidence and worsen corruption.
  • Array clean ≠ filesystem/application healthy; md only shows its own block-layout state.

Method

md RAID troubleshooting:

SymptomAction
Array degraded ([U_])Identify failed disk by serial, replace, re-add
Array not assembled at bootmdadm.conf ARRAY lines, initramfs rebuild
inactive arraymdadm --assemble --scan; check event counts with --examine
Rebuild very slowProduction I/O, speed limits, slow/failing member
mismatch_cnt > 0 after checkInvestigate (normal small values on RAID1 with swap)
mdadm --examine /dev/sd[b-e]1 | grep -E 'Events|Update Time|State'
mdadm --assemble --force /dev/md0 /dev/sd[b-e]1      # only after checking event counts — expert step
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. RAID troubleshooting is resolved only when the first failing step is explained, the intended array state is stable and redundant as designed, and the original upper-layer workload succeeds; visibility or temporary assembly alone is insufficient.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. RAID Troubleshooting owns cross-md fault isolation. Continue to Disks/Hardware, Boot/initramfs, LVM, Filesystems, Performance or Backup & Restore once the first failing step is identified.

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 doclinux 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%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
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
linux raid troubleshootingmdadm troubleshootingmd degradedmd array not assembling
Embedded reference data

Quick lookup tables

RAID Troubleshooting operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for RAID Troubleshooting.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateRAID Troubleshooting is the Linux md failure-isolation workflow for missing arrays, degraded membership, stale metadata, failed assembly, unexpected recovery, recurring member faults, performance symptoms and upper-layer failures without destroying recoverability.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact host + array UUID/name → capture /proc/mdstat + md detail → examine every candidate member superblock/role/event count → prove lower device/path health → identify clean/degraded/recovery/reshape state → change one demonstrated cause → verify expected active membership/redundancy → read back LVM/filesystem → repeat original workload and regression.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainsymptom/time → expected array identity/layout → component discovery + superblocks/events → kernel assembly/member state → media/path errors → recovery/check state → LVM/filesystem → original workload → minimal change + retestTrace requested/configured state through effective state to the observed workload result.
Failure boundaryRAID troubleshooting closes only when the first failed boundary is explained, the intended array state is stable and redundant as designed, and the original upper-layer workload succeeds; visibility or temporary assembly alone is insufficient.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux RAID evidence can establish this proof path: symptom/time → expected array identity/layout → component discovery + superblocks/events → kernel assembly/member state → media/path errors → recovery/check state → LVM/filesystem → original workload → minimal change + retestUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host/VM, array UUID, metadata generation, member set, device/path health, recovery window, upper filesystem/LVM, time or workload scope. RAID troubleshooting closes only when the first failed boundary is explained, the intended array state is stable and redundant as designed, and the original upper-layer workload succeeds; visibility or temporary assembly alone is insufficient.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven RAID boundary: capture exact member metadata and downstream state, preserve recoverability, change only the demonstrated cause, verify stable array membership/redundancy, then repeat the original upper-layer workload and adjacent regression checks.Continue to the next unresolved boundary while preserving the original test condition.

RAID Troubleshooting · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryRAID Troubleshooting
Topic pathRAID → RAID Troubleshooting
Runtime stateRAID Troubleshooting is the Linux md failure-isolation workflow for missing arrays, degraded membership, stale metadata, failed assembly, unexpected recovery, recurring member faults, performance symptoms and upper-layer failures without destroying recoverability.
Fast checks- Pin exact symptom/time, expected array UUID/name/level/member count and recent disk, kernel, boot, cabling, VM or configuration changes. - Capture /proc/mdstat, md detail and md examine for every candidate member before force, create, zero-superblock or replacement operations. - Correlate member events/errors with dmesg/device/path evidence and identify the first failed boundary: discovery, metadata, assembly, member I/O, recovery or upper consumer. - Make one minimal reversible change where possible, then repeat array-state checks and the original filesystem/application workload plus regression checks.
Verification chainsymptom/time → expected array identity/layout → component discovery + superblocks/events → kernel assembly/member state → media/path errors → recovery/check state → LVM/filesystem → original workload → minimal change + retest Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryRAID troubleshooting closes only when the first failed boundary is explained, the intended array state is stable and redundant as designed, and the original upper-layer workload succeeds; visibility or temporary assembly alone is insufficient. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?