Use it when configuring, checking or troubleshooting Rebuild Time in RAID.
Rebuild Time
Rebuild duration depends on member capacity, amount of data actually reconstructed, surviving-member throughput, controller limits, rebuild priority, workload contention, error recovery and RAID level. Simple capacity ÷ throughput estimates are only lower-bound approximations.
1. Rebuild time grows with disk size and load.
2. Large HDDs can take days.
3. Raise priority for faster rebuild at the cost of app performance.
4. Double parity reduces risk during long rebuilds.
5. Measure for planning.
disk size + load + rate → rebuild time
Context & applicabilityCommon mistakes · platform/version boundaries
A rebuild ETA is an estimate under current conditions; it does not guarantee linear progress or successful completion.
Suspicious evidence: ETA grows, progress is non-linear/stalled, media retries reduce rate, workload contention is severe or exposure time exceeds the operational risk target.
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
rebuild work remaining → available reconstruction bandwidth → workload/error contention → progress rate → completion time → redundancy restored
Healthy evidence: progress rate is stable, ETA is consistent with measured throughput, surviving members remain healthy and workload objectives are maintained.
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.
- Large drive ≠ fixed rebuild time.
- Rebuild percentage ≠ linear time remaining.
- Faster rebuild ≠ always better if it destabilizes production workload.
- Estimated completion time ≠ proof of surviving-member health.
cat /proc/mdstat— speed and ETAcat /proc/sys/dev/raid/speed_limit_min— md rebuild speed limitsstorcli /c0 show rebuildrate— controller rate
ReferenceImportant terms & boundaries3 sections · depth on demand
Protection
A rebuild ETA is an estimate under current conditions; it does not guarantee linear progress or successful completion.
In depth
Rebuild time is mostly capacity ÷ rebuild speed
A recovery reads the surviving members and writes the replacement. For a 16 TB disk at 150 MB/s that is roughly 30 hours before any competing load is counted.
Kernel controls for md
The kernel md documentation describes per-array sync_speed_min and sync_speed_max in sysfs, which override the system-wide /proc/sys/dev/raid/speed_limit_min and speed_limit_max; writing system reverts to the global value.
$ cat /proc/sys/dev/raid/speed_limit_min /proc/sys/dev/raid/speed_limit_max
1000
200000
# cat /sys/block/md0/md/sync_action
recover
# cat /sys/block/md0/md/sync_speed_min
1000 (system)
# echo 50000 > /sys/block/md0/md/sync_speed_min # favour the rebuild over applications
# echo system > /sys/block/md0/md/sync_speed_min # back to the default
sync_action shows resync, recover, check, repair or idle. The minimum is what md tries to keep even under application load; raising it shortens the rebuild and slows applications.
What makes rebuilds slow
| Factor | Effect |
|---|---|
| Large HDDs | Time scales with capacity |
| Application I/O | md throttles towards the minimum |
| RAID 5/6 | Every stripe needs reads from all survivors |
| SMR disks | Very slow sustained writes |
| Weak remaining disk | Read retries stall the rebuild |
Planning
- Prefer RAID 6 / raidz2 or mirrors for large disks, so a second fault during a long rebuild is survivable.
- A write-intent bitmap lets a re-added member rebuild only changed regions.
- Measure one real rebuild and record it; use that number in recovery-time planning.
*The kernel synchronization limits and adjustment commands illustrate rebuild throttling, not a measured recovery duration.*
Worked example
A rough lower bound is disk capacity ÷ sustained rebuild rate. A 16 TB HDD at 150 MB/s needs about 30 hours (16 000 000 MB ÷ 150 MB/s ≈ 107 000 s); with production load the real rate is often half that, so 2–3 days is realistic.
| Disk | Rate (idle) | Approx. rebuild |
|---|---|---|
| 4 TB HDD | 150 MB/s | ~7.5 h |
| 16 TB HDD | 150 MB/s | ~30 h |
| 3.84 TB SSD | 1 GB/s | ~1 h |
Some systems rebuild only allocated data (ZFS resilver, many arrays), which shortens rebuilds on partly full pools. Long rebuilds are the main argument for double parity on large HDDs.
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 → Rebuild Time. 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 → Rebuild Time RAID map
Fast layout, protection, failure and verification boundaries for RAID → Rebuild Time.
| 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 rebuild ETA is an estimate under current conditions; it does not guarantee linear progress or successful completion. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: progress rate is stable, ETA is consistent with measured throughput, surviving members remain healthy and workload objectives are maintained. | Close only after the original workload/data check succeeds |