I'm having a bit of a hard time trying to set up a root on software
raid with raidctl with two external usb hard drives. The reason why I
am trying to configure this as root on raid is because I have a fast
notebook that is continually frying hard drives (I personally think
that it has a blown capacitor, but this is not the point) that I do
not want to go to waste. So basically what I wanted to do is to
configure it as a small vpn and file server to store my personal
photos, music, etc. and learn a little more about OpenBSD along the
way.

The problems that I am experiencing are appearing when I try to boot
off of the the second disk by issuing the following command at boot:
boot> boot sd1a:/bsd

In which case I get the following response:
booting sd1a:/bsd; open sd1a:/bsd: Invalid argument
failed(22). will try /obsd

I have also tried issuing "boot hd1a:/bsd" which gives me the same
result. What is strange is that at the boot prompt, it only sees hd0+,
and not the other disk.

I have also tried leaving only the disk with the install copied over
plugged in, in which case, OpenBSD starts booting, but then panics
since it does not find /dev/console and init.
Trace gives me:
Debugger(d076e864,8,e8900f1c,cf7ffff1,0) at Debugger+0x4
panic(d06b2948,e8900f64,e8900f44,0,0) at panic+0x63
start_init(d764a000) at start_init+0x16d
Bad frame pointer: 0xd0907ed8

I've issued the following commands when I copied over the install:
mount /dev/raid0a /mnt
cd /mnt
mkdir usr tmp home var
mount /dev/raid0d /mnt/tmp
mount /dev/raid0e /mnt/var
mount /dev/raid0g /mnt/usr
mount /dev/raid0h /mnt/home
cd /mnt
tar -Xcpf - / | tar -xvpf -

I've included below, copies of disklabel information, and my dmesg.
Thank you in advance for everyone's help.

device: /dev/sd1a
type: SCSI
disk: SCSI disk
label: MHV2080AH
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 76319
total bytes: 76319.1M
free bytes: 0.1M
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
 a:        512.0M          0.0M  4.2BSD   2048 16384  323 # Cyl     0*-   511
 c:      76319.1M          0.0M  unused      0     0      # Cyl     0 - 76319*
 d:      75807.0M        512.0M    RAID                   # Cyl   512 - 76318

device: /dev/rraid0c
type: RAID
disk: raid
label: fictitious
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 8
sectors/cylinder: 1024
cylinders: 151613
total bytes: 75806.9M
free bytes: 0.0M
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
 a:        300.0M          0.0M  4.2BSD   2048 16384  323 # Cyl     0 -   599
 b:        512.0M        300.0M    swap                   # Cyl   600 -  1623
 c:      75806.9M          0.0M  unused      0     0      # Cyl     0 -151613*
 d:        300.0M        812.0M  4.2BSD   2048 16384  323 # Cyl  1624 -  2223
 e:        200.0M       1112.0M  4.2BSD   2048 16384  323 # Cyl  2224 -  2623
 g:       6144.0M       1312.0M  4.2BSD   2048 16384  323 # Cyl  2624 - 14911
 h:      68350.9M       7456.0M  4.2BSD   2048 16384  323 # Cyl 14912 -151613*

OpenBSD 4.0 (GENERIC.RAID) #0: Sun Apr 22 09:50:48 PDT 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC.RAID
cpu0: Intel(R) Pentium(R) M processor 1400MHz ("GenuineIntel"
686-class) 1.40 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
cpu0: Enhanced SpeedStep 1400 MHz (1484 mV): speeds: 1400, 1200, 1000,
800, 600 MHz
real mem  = 795308032 (776668K)
avail mem = 716533760 (699740K)
using 4256 buffers containing 39866368 bytes (38932K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(ce) BIOS, date 05/21/04, BIOS32 rev. 0 @
0xfd750, SMBIOS rev. 2.31 @ 0xd8010 (20 entries)
bios0: Gateway Gateway 200ARC
pcibios0 at bios0: rev 2.1 @ 0xfd750/0x8b0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xce00 0xcd000/0x1000 0xce000/0x1000
0xd8000/0x4000! 0xdc000/0x4000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82852GM Hub-PCI" rev 0x02
"Intel 82852GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
"Intel 82852GM Configuration" rev 0x02 at pci0 dev 0 function 3 not configured
vga1 at pci0 dev 2 function 0 "Intel 82852GM AGP" rev 0x02: aperture
at 0xe8000000, size 0x8000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82852GM AGP" rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x01: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x01: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x01: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x01: irq 10
usb3 at ehci0: USB revision 2.0
uhub3 at usb3
uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x81
pci1 at ppb0 bus 1
cbb0 at pci1 dev 3 function 0 "Ricoh 5C476 CardBus" rev
0xacpci_intr_map: no mapping for pin A
: couldn't map interrupt
cbb1 at pci1 dev 3 function 1 "Ricoh 5C476 CardBus" rev
0xacpci_intr_map: no mapping for pin B
: couldn't map interrupt
"Ricoh 5C552 Firewire" rev 0x04 at pci1 dev 3 function 2 not configured
ipw0 at pci1 dev 7 function 0 "Intel PRO/Wireless 2100" rev 0x04: irq
5, address 00:04:23:64:66:55
fxp0 at pci1 dev 8 function 0 "Intel PRO/100 VE" rev 0x81, i82562: irq
5, address 00:00:00:60:09:ef
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x01
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x01: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
pciide0: channel 0 ignored (disabled)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <SAMSUNG, CDRW/DVD SN-324F, U200> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x01: irq 10
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x01: irq
10, ICH4 AC97
ac97: codec id 0x83847652 (SigmaTel STAC9752/53)
ac97: codec features headphone, 20 bit DAC, 20 bit ADC, SigmaTel 3D
audio0 at auich0
isa0 at ichpcib0
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, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
pcic0 at isa0 port 0x3e0/2 iomem 0xd0000/16384
pcic0 controller 0: <Intel 82365SL rev 1> has sockets A and B
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
pcic0: irq 3, polling enabled
biomask efd5 netmask eff5 ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
Kernelized RAIDframe activated
cd0(atapiscsi0:0:0): Check Condition (error 0x70) on opcode 0x0
   SENSE KEY: Not Ready
    ASC/ASCQ: Medium Not Present - Tray Closed
umass0 at uhub3 port 1 configuration 1 interface 0
umass0: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets
sd0 at scsibus1 targ 1 lun 0: <FUJITSU, MHV2080AH, 0000> SCSI0 0/direct fixed
sd0: 76319MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sec, 156301488 sec total
umass1 at uhub3 port 2 configuration 1 interface 0
umass1: Prolific Technology Inc. Mass Storage Device, rev 2.00/1.00, addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets
sd1 at scsibus2 targ 1 lun 0: <FUJITSU, MHV2080AH, 0000> SCSI0 0/direct fixed
sd1: 76319MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sec, 156301488 sec total
dkcsum: sd0 matches BIOS drive 0x80
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
raidlookup on device: /dev/sd2d failed !
Hosed component: /dev/sd1d.
Hosed component: /dev/sd2d.
raid0: Component /dev/sd2d being configured at row: 0 col: 0
        Row: 0 Column: 0 Num Rows: 0 Num Columns: 0
        Version: 0 Serial Number: 0 Mod Counter: 0
        Clean: No Status: 0
/dev/sd2d has a different modfication count: 27269796 0.
Number of rows do not match for: /dev/sd2d.
Number of columns do not match for: /dev/sd2d.
/dev/sd2d is not clean !
raid0: Component /dev/sd1d being configured at row: 0 col: 1
        Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
        Version: 2 Serial Number: 2304070 Mod Counter: 27269796
        Clean: No Status: 0
/dev/sd1d has a different serial number: 0 2304070.
/dev/sd1d is not clean !
raid0: There were fatal errors
vnode was NULL
RAIDFRAME: failed rf_ConfigureDisks with 22.
vnode was NULL
vnode was NULL

Reply via email to