mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/{left,right}_raid1
mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sdd1 /dev/sdc1 /dev/sdb1
You can create a RAID device with a missing drive by giving missing in place of the device
If you have a /etc/mdadm.conf file you can just
If you don't have an mdadm.conf file then you will need to specify the partitions
If a disk is partitioned, and you can't reboot use partprobe
Stop an array
Re Assemble a RAID device
mdadm -v -A /dev/md0 /dev/left_raid1 /dev/right_raid
Send a test message to make sure the monitoring is working
mdadm --monitor -t --scan -1
mdadm --detail --scan >> /etc/mdadm/mdadm.conf mdadm --examine --scan >> /etc/mdadm/mdadm.conf