Interview Prep/Linux/Disk space, inodes and filesystems

A RAID 1 array reports `[U_]` in `/proc/mdstat` and the server is slow.

AdvancedTroubleshootingDisk space, inodes and filesystems
Answer

Likely causes → One mirror member failed or dropped out; the array may also be resyncing, which consumes I/O.

Diagnose →

cat /proc/mdstat
sudo mdadm --detail /dev/md0
dmesg -T | grep -Ei 'md0|raid1|sd[a-z]'
sudo smartctl -a /dev/sdb

Fix → Replace the failed disk and mdadm /dev/md0 --add /dev/sdX. If a member just dropped out but is healthy, re-add it: mdadm /dev/md0 --re-add /dev/sdb1. Limit resync impact with echo 50000 > /proc/sys/dev/raid/speed_limit_max.

Prevent → mdmonitor with email alerts; a write-intent bitmap (mdadm --grow --bitmap=internal /dev/md0) for faster resyncs.

All Linux questions Roadmap: Linux

More on Disk space, inodes and filesystems