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.
More on Disk space, inodes and filesystems
Writes fail with `No space left on device`, but `df -h` shows the filesystem is only 40% used.Intermediate`df -h` shows `/` at 100%, but `du -sh /` only adds up to 12 GB on a 50 GB disk.Intermediate`du` and `df` disagree by 20 GB and `lsof +L1` shows nothing. What else could hide the space?AdvancedA cron job that runs `rm /var/spool/app/*` fails with `/bin/rm: Argument list too long`.Beginner`touch /data/test` returns `touch: cannot touch '/data/test': Read-only file system`.BeginnerAfter a power failure, mounting an XFS volume fails with `mount: /data: wrong fs type, bad option, bad superblock on /dev/sdb1`.Intermediate