Rebuild
Cheat sheet · https://pcornel.dk/topic.php?topic=3932
Answer
During rebuild, the array reads surviving data/parity or mirror copies and writes reconstructed content to a replacement member. This increases I/O load and may reduce remaining fault tolerance. Rebuild success depends on readable surviving members, correct metadata, replacement compatibility and sufficient time/resources.
Remember
- Rebuild started ≠ rebuild will complete.
- Rebuild complete ≠ filesystem/application integrity proven.
- Rebuild ≠ backup restore.
- More aggressive rebuild priority can reduce exposure time but may hurt workload latency.
First checks
cat /proc/mdstat— rebuild progressstorcli /c0/e<e>/s<s> show rebuild— hardware rebuild progresszpool status— resilver progress
Verify in this order
failed disk replaced → reconstruct → optimal
Where it usually breaks
First mismatch in member media → metadata/layout → allocation/placement → redundancy/recovery → logical object → consumer; preserve identity/pre-state before mutation.
RAID → Rebuild RAID map
| 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 | Rebuild restores RAID redundancy only if reconstruction completes successfully; it does not independently validate filesystem/application correctness or replace restore testing. | Failure tolerance must be evaluated against the exact layout and failure pattern |
| Acceptance | Healthy evidence: rebuild advances consistently, surviving members show no uncorrectable errors, workload remains controlled and final array state is optimal/consistent. | Close only after the original workload/data check succeeds |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3932