Edit detail for softraid revision 4 of 13

1 2 3 4 5 6 7 8 9 10 11 12 13
Editor: rgouveia
Time: 2010/05/13 16:19:44 GMT+2
Note:

added:


added:


added:


added:


# make two partitions on two disks, type RAID
disklabel -E sd0
disklabel -E sd1
# will result on this
  h:        398460195         79762725    RAID

# now make a softraid device with RAID 1 (mirror)
bioctl -c 1 -l /dev/sd0h,/dev/sd1h softraid0
# will get you this
sd2 at scsibus3 targ 0 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
sd2: 194560MB, 512 bytes/sec, 398459605 sec total

# using this new device, define a RAID partition too
disklabel -E sd2
# will result on this
  a:        398459605                0    RAID

# another softraid device now with cryto on top of RAID 1 (will ask for passphrase)
bioctl -c C -l /dev/sd2a softraid0
# finally you have your device
sd3 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
sd3: 194560MB, 512 bytes/sec, 398459078 sec total

# make a normal parition on it (sd3)
  a:        398459078                0  4.2BSD   4096 32768    1
# newfs it as usual and mount it
newfs /dev/rsd3a 
mount /dev/sd3a/ /crypto


# next boot bring up the crypto volume (will ask for passphrase)
bioctl -c C -l /dev/sd2a softraid0
# mount it as usual
mount /dev/sd3a/ /crypto