This is the second part of the instructions for setting up a software RAID in OpenBSD. If you haven't enabled RAID in your kernel (and recompiled it) yet, please read the previous post before proceeding.
First, we need to create the raid configuration file, /etc/raid0.conf (that's a zero, not a vowel). This file is broken into four parts: the array definition, the member disks, the array configuration, and I/O limits.
Here is an example file that configures three SCSI disks into RAID 5 with no spare:
START array
1 3 0
START disks
/dev/sd1a
/dev/sd2a
/dev/sd3a
START layout
128 1 1 5
START queue
fifo 100
Next, we need to create disk labels on each of the component disks, in this case sd1, sd2, and sd3:
First, we need to create the raid configuration file, /etc/raid0.conf (that's a zero, not a vowel). This file is broken into four parts: the array definition, the member disks, the array configuration, and I/O limits.
Here is an example file that configures three SCSI disks into RAID 5 with no spare:
START array
1 3 0
START disks
/dev/sd1a
/dev/sd2a
/dev/sd3a
START layout
128 1 1 5
START queue
fifo 100
Next, we need to create disk labels on each of the component disks, in this case sd1, sd2, and sd3:
Continue reading Software RAID in OpenBSD 3.9: Configuring the RAID.
