Hi,

I have been trying to configure software RAID using resources at

http://www.openbsd.org/faq/faq14.html#RAID

and

http://www.openbsd.org/faq/faq14.html#RAID

I did get the error

# raidctl -C /root/raid0.conf raid0
raidctl: ioctl (RAIDFRAME_CONFIGURE) failed

The raid configuration file entries are

=======================================================
# cat /root/raid0.conf
START array
# numRow numCol numSpare
1 2 0

START disks
/dev/wd2b # the fake device
/dev/wd1b

START layout
128 1 1 1

START queue
fifo 100
================================================

Could some one help me trouble shoot this please?
I did recompile the kernel with the following options and am booting that kernel
=================================================
# cat /usr/src/sys/arch/amd64/conf/GENERIC.RAID
include "arch/amd64/conf/GENERIC" # include GENERIC configuration
option RAID_AUTOCONFIG # automatically configure RAIDframe arrays on boot
pseudo-device raid 4 # RAIDframe disk driver
# uname -a
OpenBSD xxx.yyy.local 4.0 GENERIC.RAID#0 amd64
#
==========================================================

# disklabel -E wd1
# Inside MBR partition 3: type A6 start 63 size 234436482

Treating sectors 63-234436545 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
p m
device: /dev/rwd1c
type: ESDI
disk: ESDI/IDE disk
label: ST3120827AS
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total bytes: 114473.5M
free bytes: 114470.9M
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
 c:     114473.5M          0.0M  unused      0     0      # Cyl     0 -232580
a a
offset: [63]
size: [234436482] 1024m
Rounding to nearest cylinder: 2097585
FS type: [4.2BSD]
a b
offset: [2097648]
size: [232338897] RAID
Invalid entry
size: [232338897]
FS type: [swap] RAID
p m
device: /dev/rwd1c
type: ESDI
disk: ESDI/IDE disk
label: ST3120827AS
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total bytes: 114473.5M
free bytes: 0.0M
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
 a:       1024.2M          0.0M  4.2BSD   2048 16384   16 # Cyl     0*-  2080
 b:     113446.7M       1024.2M    RAID                   # Cyl  2081 -232575*
 c:     114473.5M          0.0M  unused      0     0      # Cyl     0 -232580
q
Write new label?: [y]
# newfs wd1a
Warning: 64 sector(s) in last cylinder unallocated
/dev/rwd1a:     2097584 sectors in 2081 cylinders of 16 tracks, 63 sectors
       1024.2MB in 7 cyl groups (328 c/g, 161.44MB/g, 20608 i/g)
super-block backups (for fsck -b #) at:
32, 330720, 661408, 992096, 1322784, 1653472, 1984160,
# mount /dev/wd1a /mnt
# cp /bsd /usr/mdec/boot /mnt
# /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot wd1
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rwd1c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 63; inode block 24, offset 936
using MBR partition 3: type 166 (0xa6) offset 63 (0x3f)
# cat >> /root/raid0.conf << EOF
START array
# numRow numCol numSpare
1 2 0

START disks
/dev/wd2b # the fake device
/dev/wd1b

START layout
128 1 1 1

START queue
fifo 100
EOF
# raidctl -C /root/raid0.conf raid0
raidctl: ioctl (RAIDFRAME_CONFIGURE) failed

Reply via email to