Pcornel
Linux · RAID

RAID 0

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

Back to the Topic

Answer

RAID 0 (striping) spreads data across disks for speed and full capacity, with no redundancy — one disk failure loses everything.

Remember

Use only for scratch or re-creatable data. Capacity = sum of disks. Never use for data you cannot lose without backups.

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

Verify in this order

disks → RAID 0 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=2770

Confirmation

Confirm action

Continue?