RAID-5
/etc/raidtab file:
raiddev /dev/md0
raid-level
nr-raid-disks
nr-spare-disks
persistent-superblock
chunk-size
device
raid-disk
device
raid-disk
device
raid-disk
device
raid-disk
Command:
mdadm -Cv /dev/md0 --level=5 --raid-devices=4 /dev/hda1 /dev/hdb1
/dev/hdc1 /dev/hdd1
RAID-10
/etc/raidtab file:
raiddev /dev/md0
raid-level
nr-raid-disks
nr-spare-disks
chunk-size
device
raid-disk
device
raid-disk
raiddev /dev/md1
raid-level
nr-raid-disks
nr-spare-disks
chunk-size
device
raid-disk
device
raid-disk
raiddev /dev/md2
raid-level
nr-raid-disks
nr-spare-disks
chunk-size
device
raid-disk
device
raid-disk
Commands:
mdadm ñCv /dev/md0 --level=0 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm ñCv /dev/md1 --level=0 --raid-devices=2 /dev/sdc1 /dev/sdd1
mdadm ñCv /dev/md2 --level=1 --raid-devices=2 /dev/md0 /dev/md1
5
4
0
1
4
/dev/hda1
0
/dev/hdb1
1
/dev/hdc1
2
/dev/hdd1
3
0
2
0
4
/dev/sda1
0
/dev/sdb1
1
0
2
0
4
/dev/sdc1
0
/dev/sdd1
1
1
2
0
4
/dev/md0
0
/dev/md1
1
13