Software Raid
Create raid:
Raid levels can be changed with: --level=1 // --level=0 // --level=5
Raid 1
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sdbsdX2//dev/sdcsdX
Raid 5
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sdasdX /dev/sdbsdX /dev/sdcsdX
Raid 6
mdadm --create --verbose /dev/md0 --level=6 --raid-devices=4 /dev/sda /dev/sdbsdX /dev/sdcsdX /dev/sddsdX
Raid 10
mdadm --create --verbose /dev/md0 --level=10 --layout=o3 --raid-devices=4 /dev/sdasdX /dev/sdbsdX /dev/sdcsdX /dev/sddsdX
Stop raid:
mdadm --stop /dev/md0
Assemble raid:
mdadm -A /dev/md0mdX /dev/sda1sdaX --run