Pcornel
Linux · RAID

RAID 10

Cheat sheet · https://pcornel.dk/topic.php?topic=2774

Back to the Topic

Answer

RAID 10 stripes across mirrored pairs (at least four disks): good performance and survives one failure per mirror pair. Capacity = half the disks.

Remember

Best choice for databases and write-heavy workloads. Rebuilds are fast (copy from the mirror). Losing both disks of one pair loses the array.

First checks

  • cat /proc/mdstat — md arrays and sync status
  • mdadm --detail /dev/md<n> — array state and members
  • mdadm --examine /dev/<dev> — member superblock
  • smartctl -H /dev/<disk> — disk health

Commands

mdadm --detail

Verify in this order

disks → RAID 10 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=2774

Confirmation

Confirm action

Continue?