Use it when the symptom is “RAID Rebuild”: work through the layers in order and stop at the first one that fails.
RAID Rebuild
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.
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.
rebuild → progress → optimal
Context & applicabilityCommon mistakes · platform/version boundaries
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.
Operational reference
Fast context before you go deeper.
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
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 · 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.
- 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.
cat /proc/mdstat— progresszpool status— resilver progressstorcli /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
| Situation | Use |
|---|---|
| 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
| Check | Command |
|---|---|
| Progress and speed | cat /proc/mdstat |
| Array state, failed members | mdadm --detail /dev/md0 |
| Health as exit code | mdadm --detail --test /dev/md0 (0 normal, 1 failed device, 2 unusable) |
| Disk errors on remaining members | smartctl -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.*
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
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 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%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
Storage Troubleshooting → RAID Rebuild proof map
Fast scope, dependency, failure-boundary and acceptance checks for Storage Troubleshooting → RAID Rebuild.
| Troubleshooting boundary | What to verify | Proof limit |
|---|---|---|
| Scope / identity | Exact workload, object/device identity, affected hosts and incident window | Symptom naming alone is not root-cause proof |
| Dependency path | RAID degraded set → surviving reads → reconstruction engine/controller → target member writes → progress/error handling → optimal state → filesystem/application verification | Healthy adjacent layers do not prove end-to-end health |
| Failure boundary | Rebuild 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 |
| Acceptance | Healthy 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 |