RAID 6
Cheat sheet · https://pcornel.dk/topic.php?topic=2773
Answer
RAID 6 uses two parity blocks per stripe across at least four disks; it survives two disk failures. Capacity = (n−2) disks.
Remember
Safer than RAID 5 for large disks and long rebuilds. Write performance is lower. Still not a backup.
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 --growmdadm --grow /dev/md0 --level=6 --raid-devices=5 --backup-file=/root/md0.bak
Verify in this order
disks → RAID 6 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=2773