
Stands for Redundant Array of Inexpensive Disks or Redundant Array of Independent Disks. It uses multiple disks to increase performance and/or reduce the chances of data loss due to hardware failure.
Set partition type to 0xFD for auto detection of RAID devices (use option 't' in fdisk).
/etc/raidtab) See raidtab man page for an example.
Sample file:
### RAID 1 raiddev /dev/md0 raid-level 1 # Mirroring nr-raid-disks 3 # Number of disks to use nr-spare-disks 1 # Hot standby in case another fails persistent-superblock 1 # Required for auto detection chunk-size 32 # In KB device /dev/hda3 raid-disk 0 device /dev/hdb3 raid-disk 1 device /dev/hde5 raid-disk 2 device /dev/hdc4 spare-disk 0 ### RAID 5 raiddev /dev/md1 raid-level 5 # Data and parity striping nr-raid-disks 3 # Number of disks to use nr-spare-disks 1 # Hot standby in case another fails persistent-superblock 1 # Required for auto detection chunk-size 32 # In KB parity-algorithm right-symmetric device /dev/sda1 raid-disk 0 device /dev/sdb3 raid-disk 1 device /dev/sdc5 raid-disk 2 device /dev/sdd4 spare-disk 0
mkraid /dev/md0 mkraid /dev/md1NOTE: mkraid also causes necessary RAID modules to be loaded by kernel as if
raidstart had been executed.
mke2fs -b 4096 -R stride=8 /dev/md0 mke2fs -b 4096 -R stride=8 /dev/md1
"-R" is used to set RAID related options for the file system. Stride is the number of blocks per chunk. In the previous examples we are using a 32K chunk size with a 4K block size, so stride has to be 8 (4K * 8 = 32K).
Specify parity algorithm with the "parity-algorithm" option in
/etc/raidtab. Possible values are:
Left-symmetric offers the maximum performance on typical disks with rotating platters.
Requires:
/etc/raidtab
| ERROR!! |