Pcornel
Storage · Storage Troubleshooting

RAID Rebuild

Cheat sheet · https://pcornel.dk/topic.php?topic=4385

Back to the Topic

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.

Remember

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

First checks

  • cat /proc/mdstat — progress
  • zpool status — resilver progress
  • storcli /c0/eall/sall show rebuild — hardware progress

Commands

mdadm --detail /dev/md0
mdadm --detail --test /dev/md0
smartctl -a
journalctl -k
mdadm --monitor

Verify in this order

rebuild → progress → optimal

Where it usually breaks

First mismatch in media/provider → controller/pool → logical object → path/protocol → filesystem/share/object namespace → consumer workload; preserve identity/pre-state before mutation.

Storage Troubleshooting → RAID Rebuild proof map

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4385

Confirmation

Confirm action

Continue?