Dear misc --
I'm attempting to get a root partition on raid 1 RaidFrame
configuration working with OpenBSD 4.2. I have a Soekris 4801 with a
compact flash card, a USB 2.0 PCI card and 2 identical external usb
hard drives.
I built a new kernel configured with the pseudo-device raid 4 and
option RAID_AUTOCONFIG.
I installed OpenBSD on the compact flash, created and initialized
the raid array, set the raid device to autoconfigure and set the root
flag, changed fstab on the raid disks to point root to raid0a instead
of wd0a and rebooted. When the system rebooted wd0a was mounted as
root.
Attached is dmesg, mount, raid0.conf, disklables. raidctl -sv output.
If someone can point me in the direction of what to look at or give
me any ideas of what could be going wrong.
Thanks
--- dmesg ---
OpenBSD 4.2-stable (RAID) #3: Mon Jan 7 17:45:05 PST 2008
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/RAID
cpu0: Geode(TM) Integrated Processor by National Semi ("Geode by NSC"
586-class) 267 MHz
cpu0: FPU,TSC,MSR,CX8,CMOV,MMX
cpu0: TSC disabled
real mem = 268005376 (255MB)
avail mem = 251072512 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/70/08, BIOS32 rev. 0 @ 0xf7840
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0x9000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Cyrix GXm PCI" rev 0x00
sis0 at pci0 dev 6 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:e4:38
nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1
sis1 at pci0 dev 7 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:e4:39
nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1
sis2 at pci0 dev 8 function 0 "NS DP83815 10/100" rev 0x00, DP83816A:
irq 10, address 00:00:24:c7:e4:3a
nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1
ohci0 at pci0 dev 10 function 0 "NEC USB" rev 0x43: irq 11, version
1.0, legacy support
ohci1 at pci0 dev 10 function 1 "NEC USB" rev 0x43: irq 5, version
1.0, legacy support
ehci0 at pci0 dev 10 function 2 "NEC USB" rev 0x04: irq 11
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: NEC EHCI root hub, rev 2.00/1.00, addr 1
gscpcib0 at pci0 dev 18 function 0 "NS SC1100 ISA" rev 0x00
gpio0 at gscpcib0: 64 pins
"NS SC1100 SMI" rev 0x00 at pci0 dev 18 function 1 not configured
pciide0 at pci0 dev 18 function 2 "NS SCx200 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFH-2048>
wd0: 4-sector PIO, LBA, 1953MB, 4001760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
geodesc0 at pci0 dev 18 function 5 "NS SC1100 X-Bus" rev 0x00: iid 6
revision 3 wdstatus 0
ohci2 at pci0 dev 19 function 0 "Compaq USB OpenHost" rev 0x08: irq
5, version 1.0, legacy support
usb1 at ohci0: USB revision 1.0
uhub1 at usb1: NEC OHCI root hub, rev 1.00/1.00, addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2: NEC OHCI root hub, rev 1.00/1.00, addr 1
isa0 at gscpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1:
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom0: console
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
usb3 at ohci2: USB revision 1.0
uhub3 at usb3: Compaq OHCI root hub, rev 1.00/1.00, addr 1
biomask fbe5 netmask ffe5 ttymask ffe7
pctr: no performance counters in CPU
Kernelized RAIDframe activated
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Seagate USB Mass Storage, rev 2.00/0.02, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: <ST910082, 4A, 0000> SCSI0 0/direct fixed
sd0: 95396MB, 12161 cyl, 255 head, 63 sec, 512 bytes/sec, 195371568
sec total
umass1 at uhub0 port 3 configuration 1 interface 0
umass1: Seagate USB Mass Storage, rev 2.00/0.02, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets
sd1 at scsibus1 targ 1 lun 0: <ST910082, 3A, 0000> SCSI0 0/direct fixed
sd1: 95396MB, 12161 cyl, 255 head, 63 sec, 512 bytes/sec, 195371568
sec total
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
raid0: Component /dev/sd0a being configured at row: 0 col: 0
Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
Version: 2 Serial Number: 123456 Mod Counter: 638
Clean: Yes Status: 0
raid0: Component /dev/sd1a being configured at row: 0 col: 1
Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
Version: 2 Serial Number: 123456 Mod Counter: 638
Clean: Yes Status: 0
raid0 at root
--- dmesg ---
--- mount output ---
# mount
/dev/wd0a on / type ffs (local)
--- mount ---
--- disklabel /dev/rwd0c ---
# disklabel /dev/rwd0c
# Inside MBR partition 3: type A6 start 63 size 3999681
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: SanDisk SDCFH-20
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3970
total sectors: 4001760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 4001696 63 4.2BSD 2048 16384 1
b: 1 4001759 swap
c: 4001760 0 unused 0 0
--- disklabel /dev/rwd0c ---
--- disklabel /dev/rsd0c ---
# disklabel /dev/rsd0c
# Inside MBR partition 3: type A6 start 32 size 195370976
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 4A
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 95396
total sectors: 195371568
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 195370976 32 RAID
c: 195371568 0 unused 0 0
--- disklabel /dev/rsd0c ---
--- disklabel /dev/rsd1c ---
# disklabel /dev/rsd1c
# Inside MBR partition 3: type A6 start 32 size 195370976
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: 3A
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 95396
total sectors: 195371568
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 195370976 32 RAID
c: 195371568 0 unused 0 0
--- disklabel /dev/rsd1c ---
--- disklabel /dev/rraid0c ---
# disklabel /dev/rraid0c
# /dev/rraid0c:
type: RAID
disk: raid
label: fictitious
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 190791
total sectors: 195370880
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 195370880 0 4.2BSD 2048 16384 1
c: 195370880 0 4.2BSD 2048 16384 1
--- disklabel /dev/rraid0c ---
--- raidctl -sv raid0 ---
# raidctl -sv raid0
raid0 Components:
/dev/sd0a: optimal
/dev/sd1a: optimal
No spares.
Component label for /dev/sd0a:
Row: 0, Column: 0, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 123456, Mod Counter: 660
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 195370880
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Component label for /dev/sd1a:
Row: 0, Column: 1, Num Rows: 1, Num Columns: 2
Version: 2, Serial Number: 123456, Mod Counter: 660
Clean: No, Status: 0
sectPerSU: 128, SUsPerPU: 1, SUsPerRU: 1
Queue size: 100, blocksize: 512, numBlocks: 195370880
RAID Level: 1
Autoconfig: Yes
Root partition: Yes
Last configured as: raid0
Parity status: clean
Reconstruction is 100% complete.
Parity Re-write is 100% complete.
Copyback is 100% complete.
--- raidctl -sv raid0 ---
--- /etc/raid0.conf ---
# cat /etc/raid0.conf
START array
# numRow numCol numSpare
1 2 0
START disks
/dev/sd0a
/dev/sd1a
START layout
# sectPerSU SUsPerParityUnit SUsPerReconUnit RAID_level_1
128 1 1 1
START queue
fifo 100
#
--- /etc/raid0.conf ---