Hi,

The System messages say

=====================================================================

raidlookup on device: /dev/wd2b failed!
vnode was NULL
vnode was NULL
RAIDFRAME: failed rf_ConfigureDisks with 2
vnode was NULL
vnode was NULL

==================================================================

But the raidctl man page say that if you use the -C option you can
force the configuration to suceed even if any of the component labels
are incorrect.

So where is the problem?
Could some one please point out?

Thankyou so much

Kind Regards

Siju


On 11/15/06, Siju George <[EMAIL PROTECTED]> wrote:
Hi,

Please look at my dmesg if that is useful.
And please let me know if I should provide any other info.

Thankyou so much

Kind Regards

Siju

DMESG
=====================================================================
# cat /var/run/dmesg.boot
OpenBSD 4.0 (GENERIC) #690: Sat Sep 16 20:26:25 MDT 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1039593472 (1015228K)
avail mem = 878694400 (858100K)
using 22937 buffers containing 104165376 bytes (101724K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfc650 (54 entries)
bios0: Acer Aspire Series
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2193.94 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "ATI RS480 Host" rev 0x10
ppb0 at pci0 dev 1 function 0 "ATI RS480 PCIE" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 "ATI Radeon XPRESS 200" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide0 at pci0 dev 17 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: <ST3120827AS>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: <ST3120827AS>
wd1: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
pciide1 at pci0 dev 18 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide1: using irq 5 for native-PCI interrupt
ohci0 at pci0 dev 19 function 0 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 19 function 1 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 19 function 2 "ATI IXP400 USB2" rev 0x80: irq 4
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
piixpm0 at pci0 dev 20 function 0 "ATI IXP400 SMBus" rev 0x81: SMI
iic0 at piixpm0
"unknown" at iic0 addr 0x2f not configured
pciide2 at pci0 dev 20 function 1 "ATI IXP400 IDE" rev 0x80: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia0 at pci0 dev 20 function 2 "ATI IXP450 HD Audio" rev 0x01: irq 5
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC880 (rev. 8.0), HDA version 1.0
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 "ATI IXP400 ISA" rev 0x80
ppb1 at pci0 dev 20 function 4 "ATI IXP400 PCI" rev 0x80
pci2 at ppb1 bus 2
re0 at pci2 dev 3 function 0 "Realtek 8169" rev 0x10: irq 5, address
00:16:17:20:2a:a6
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb4 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
lpt0 at isa0 port 0x378/4 irq 7
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
syncing disks...
OpenBSD 4.0 (GENERIC.RAID) #0: Wed Nov 15 08:04:56 IST 2006
    [EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.RAID
real mem = 1039593472 (1015228K)
avail mem = 878211072 (857628K)
using 22937 buffers containing 104165376 bytes (101724K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xfc650 (54 entries)
bios0: Acer Aspire Series
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon(tm) 64 Processor 3400+, 2193.92 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 32 4KB entries fully associative, 8 4MB entries fully associative
pci0 at mainbus0 bus 0: configuration mode 1
pchb0 at pci0 dev 0 function 0 "ATI RS480 Host" rev 0x10
ppb0 at pci0 dev 1 function 0 "ATI RS480 PCIE" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 5 function 0 "ATI Radeon XPRESS 200" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide0 at pci0 dev 17 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide0: port 0: device present, speed: 1.5Gb/s
wd0 at pciide0 channel 0 drive 0: <ST3120827AS>
wd0: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd0(pciide0:0:0): using BIOS timings, Ultra-DMA mode 6
pciide0: port 1: device present, speed: 1.5Gb/s
wd1 at pciide0 channel 1 drive 0: <ST3120827AS>
wd1: 16-sector PIO, LBA48, 114473MB, 234441648 sectors
wd1(pciide0:1:0): using BIOS timings, Ultra-DMA mode 6
pciide1 at pci0 dev 18 function 0 "ATI IXP400 SATA" rev 0x80: DMA
pciide1: using irq 5 for native-PCI interrupt
ohci0 at pci0 dev 19 function 0 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ohci1 at pci0 dev 19 function 1 "ATI IXP400 USB" rev 0x80: irq 4,
version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1uhub1: ATI OHCI root hub, rev 1.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 19 function 2 "ATI IXP400 USB2" rev 0x80: irq 4
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: ATI EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 8 ports with 8 removable, self powered
piixpm0 at pci0 dev 20 function 0 "ATI IXP400 SMBus" rev 0x81: SMI
iic0 at piixpm0
"unknown" at iic0 addr 0x2f not configured
pciide2 at pci0 dev 20 function 1 "ATI IXP400 IDE" rev 0x80: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
azalia0 at pci0 dev 20 function 2 "ATI IXP450 HD Audio" rev 0x01: irq 5
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC880 (rev. 8.0), HDA version 1.0
audio0 at azalia0
pcib0 at pci0 dev 20 function 3 "ATI IXP400 ISA" rev 0x80
ppb1 at pci0 dev 20 function 4 "ATI IXP400 PCI" rev 0x80
pci2 at ppb1 bus 2
re0 at pci2 dev 3 function 0 "Realtek 8169" rev 0x10: irq 5, address
00:16:17:20:2a:a6
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 2
pchb1 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb2 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb4 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
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
lpt0 at isa0 port 0x378/4 irq 7
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
Kernelized RAIDframe activated
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
#
======================================================================


On 11/15/06, Siju George <[EMAIL PROTECTED]> wrote:
> 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