RAID 5
Cheat sheet · https://pcornel.dk/topic.php?topic=2772
Answer
RAID 5 stripes data with one parity block per stripe across at least three disks; it survives one disk failure. Capacity = (n−1) disks.
Remember
Rebuilds of large disks take long and stress the others — a second failure or read error during rebuild loses the array. Prefer RAID 6 or 10 for large disks. Writes are slower (read-modify-write).
First checks
cat /proc/mdstat— md arrays and sync statusmdadm --detail /dev/md<n>— array state and membersmdadm --examine /dev/<dev>— member superblocksmartctl -H /dev/<disk>— disk health
Commands
mdadm --grow
Verify in this order
disks → RAID 5 layout → array device → filesystem
Where it usually breaks
First mismatch in hardware/block device → kernel driver/mapper/RAID/LVM → filesystem → mount namespace/options → path permissions/MAC → consumer I/O; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2772