Skip to content
  • Català: Aquesta pàgina no està traduida al català.
  • Castellano: Esta página no está traducida al castellano.

40. Raid

Raid allows for data to be sparsed over multiple disks and give security to your data as one (or more) disks can fail and data integrity will still remain.

40.1 Initialize disks

mdadm --zero-superblock /dev/sd[b-e]


wipefs -a /dev/sd[b-e]

40.2 Create raid

You can set level to get more performance or more redundancy

This command will create a raid level 10.

mdadm --create /dev/md0 --level=10 --raid-devices=4 /dev/sd[b-e] 

Check raid types and benefits here:

Save your newly created raid configuration for next reboots:

mdadm --detail --scan > /etc/mdadm/mdadm.conf

40.3 Utils

  • cat /proc/mdstat: shows raid status and progress

40.4 Considerations

mdadm software raid will trigger a complete check every sunday at 1am. Be aware of that as it will lower diks io speed a lot.