π ~1 min read
Table of contents
Symptom & Impact
RAID redundancy is lost and data risk increases while rebuild remains stalled.
Environment & Reproduction
Occurs after member disk failure, metadata mismatch, or replacement workflow issues.
# Capture baseline
cat /proc/mdstat
mdadm --detail /dev/md0
lsblk -f
Root Cause Analysis
Array cannot resync due to failed members, missing superblock compatibility, or blocked rebuild state.
Quick Triage
Validate failed disk state and detect whether replacement is recognized.
# Quick triage
mdadm --examine /dev/ | head -n 80
dmesg | grep -Ei md|raid|error | tail -n 120
Step-by-Step Diagnosis
Inspect md metadata and kernel logs to determine why rebuild is not advancing.
# Detailed diagnosis
cat /proc/mdstat
mdadm --detail /dev/md0
udevadm info --query=all --name=/dev/ | head -n 80

Solution – Primary Fix
Fail and remove bad member, add validated replacement, and monitor rebuild progress.
Still having issues? Our Server Management team can diagnose and resolve this for you. Get in touch for a free consultation.
# Primary fix
sudo mdadm /dev/md0 --fail /dev/ --remove /dev/
sudo mdadm /dev/md0 --add /dev/
watch -n 5 cat /proc/mdstat

Solution – Alternative Approaches
Recreate array from backup metadata only if direct rebuild cannot proceed safely.
# Alternatives
sudo mdadm --assemble --scan
mdadm --examine --scan
Verification & Acceptance Criteria
Array returns to clean state and sync completes with no failed members.
# Verify
cat /proc/mdstat
mdadm --detail /dev/md0
Rollback Plan
Restore from backup or standby storage if array health remains unstable.
# Rollback
mdadm --stop /dev/md0
mdadm --assemble --scan
Prevention & Hardening
Monitor SMART and md events and maintain tested disk replacement runbooks.
# Hardening
cat /etc/mdadm/mdadm.conf
smartctl -H /dev/ 2>/dev/null || true
Related Errors & Cross-Refs
Related to mdadm cannot add disk, superblock mismatch, and degraded array warnings.
Related tutorial: View the step-by-step tutorial for Debian 9.
View all Debian 9 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
mdadm administration and Linux software RAID recovery documentation.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.