Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

RAID Rebuild

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

When to use this

Use it when the symptom is “RAID Rebuild”: work through the layers in order and stop at the first one that fails.

First 30 seconds

1. Rebuild slow: load, rebuild priority, disk speed.

2. Rebuild failing: another disk errors (URE).

3. Don't pull more disks.

4. Adjust rebuild rate.

5. Verify after completion.

Operational verification

rebuild → progress → optimal

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

Rebuild progress shows reconstruction work is occurring, but it does not show survivor health, final data integrity or acceptable application performance.

Suspicious evidence includes stalled percentage, declining rate, new media errors, repeated controller resets, target dropouts or severe application latency correlated with rebuild.

Platform / version applicability
Storage architecture and operations
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.

PlatformStorage architecture and operations
Scope / prerequisiteUse it when the symptom is “RAID Rebuild”: work through the layers in order and stop at the first one that fails.
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.

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

RAID degraded set → surviving reads → reconstruction engine/controller → target member writes → progress/error handling → optimal state → filesystem/application verification

Healthy evidence shows monotonically advancing rebuild with no uncorrectable survivor errors, restored optimal state and successful upper-layer verification.

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
  • 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.
Key checks
  • cat /proc/mdstat — progress
  • zpool status — resilver progress
  • storcli /c0/eall/sall show rebuild — hardware progress
ReferenceImportant terms & boundaries3 sections · depth on demand

Scope and what the checks show

Rebuild progress shows reconstruction work is occurring, but it does not show survivor health, final data integrity or acceptable application performance.

In depth

A Linux md rebuild, step by step

mdadm(8) describes the manage operations: the first device named is the array, the rest are members. An active member must be marked failed before it can be removed. --add either re-adds a recent member or adds a spare, which starts recovery when the array is degraded.

# mdadm --manage /dev/md0 --fail /dev/sdc1 --remove /dev/sdc1
# (replace the disk, copy the partition table)
# sfdisk -d /dev/sdb | sfdisk /dev/sdc
# mdadm --manage /dev/md0 --add /dev/sdc1
# cat /proc/mdstat
md0 : active raid6 sdc1[4] sdb1[1] sdd1[2] sde1[3]
      15627788288 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/3] [_UUU]
      [=>...................]  recovery =  6.3% (492155520/7813894144) finish=612.4min speed=199216K/sec

Re-add versus add

SituationUse
Same disk came back (cable, controller reset)--re-add — with a write-intent bitmap only changed regions are rebuilt
New disk--add — full recovery

During the rebuild

CheckCommand
Progress and speedcat /proc/mdstat
Array state, failed membersmdadm --detail /dev/md0
Health as exit codemdadm --detail --test /dev/md0 (0 normal, 1 failed device, 2 unusable)
Disk errors on remaining memberssmartctl -a, journalctl -k

Risk

During recovery the array has reduced redundancy and all remaining members are read in full. Unreadable sectors on a remaining disk are the classic cause of a failed RAID 5 rebuild. Keep backups current before starting, and keep mdadm --monitor alerts enabled so the next failure is noticed.

*The mdadm replacement sequence and recovery status demonstrate array maintenance, not a completed disk replacement.*

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

Method

During a RAID rebuild, the array is at reduced redundancy and under extra load. Checklist:

1. Confirm the right disk is rebuilding (slot, serial) and that the replacement is the correct model/firmware.

2. Check the other members' health (SMART pending/reallocated, media errors) — a weak disk may fail under rebuild load.

3. Verify the last backup and snapshot replication are current.

4. Estimate completion from the progress rate; adjust rebuild priority if production latency is unacceptable.

5. After completion, run a consistency check / scrub and clear the alert.

cat /proc/mdstat
storcli /c0/eall/sall show rebuild
zpool status -v
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 docStorage architecture and operations current

Authoritative/upstream documentation reviewed for bounded claims in Storage Troubleshooting → RAID Rebuild. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/block/index.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 rebuildrebuild stalledrebuild slowraid reconstruction
Embedded reference data

Quick lookup tables

Storage Troubleshooting → RAID Rebuild proof map

Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → RAID Rebuild.

Troubleshooting boundaryWhat to verifyProof limit
Scope / identityExact workload, object/device identity, affected hosts and incident windowSymptom naming alone is not root-cause proof
Dependency pathRAID degraded set → surviving reads → reconstruction engine/controller → target member writes → progress/error handling → optimal state → filesystem/application verificationHealthy adjacent layers do not prove end-to-end health
Failure boundaryRebuild 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
AcceptanceHealthy 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
Confirmation

Confirm action

Continue?