To create a RAID1/Mirror set on Linux, enter the command:
$ mdadm
--create /dev/md0 --level=1 --raid-devices=2 /dev/fioa /dev/fiob
to create a mirrored set using the two ioDrives fioa and fiob. (Use the fio-status utility to view your specific names.)
Start
up the RAID1 mirror
To
start the RAID1 mirrored set and mount it as md0, enter the command:
mdadm –assemble /dev/md0
/dev/fioa /dev/fiob
Stop
the RAID1 mirror
To
stop the RAID1 set, enter the command:
mdadm –stop /dev/md0
Make the mirror persistent (exists after a reboot)
Use the following commands to have
your RAID1 mirror will appear after a reboot.
$ sudo sh –c 'echo "DEVICE /dev/fioa
/dev/fiob" >/etc/mdadm.conf'
$ sudo sh –c 'mdadm --detail --scan
>>/etc/mdadm.conf'
Note: On some
versions of Unix, the configuration file is in /etc/mdadm/mdadm.conf, not
/etc/mdadm.conf.
On most systems, the RAID1 mirror will
be created automatically upon reboot. However, if you have problems accessing
/dev/md0 after a reboot, run this command:
$ sudo mdadm --assemble –-scan