Skip to content

RAID

RAID distributes data across multiple disks to provide data security. If one or more disks fail, data integrity is maintained.

Initialize disks

mdadm --zero-superblock /dev/sd[b-e]
or
wipefs -a /dev/sd[b-e]

Create a RAID array

Select a RAID level to optimize for performance or redundancy.

The following command creates a RAID level 10 array.

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

For more information on RAID types and their benefits, see: http://www.raid-calculator.com/

Save the new RAID configuration to persist it across reboots:

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

Utilities

  • cat /proc/mdstat: Displays RAID status and progress.

Considerations

mdadm software RAID runs a full check every Sunday at 1:00 AM. Note that this significantly reduces disk I/O speed.