On Monday 23 January 2012, Matt Behrens wrote: > Been playing with 5.1-beta (Jan. 21 build) in the interests of seeing > what I need to get together to set up my next system. I was hoping to > do it with three drives, booting from a softraid RAID 5 volume.
>From bioctl(8): CAVEATS Use of the CRYPTO & RAID 4/5 disciplines are currently considered experimental. (I probably should remove CRYPTO from that list though, since it is now pretty stable :) > When installed and rebooted, all works OK. What I've been running into > are panics when trying to run the softraid volume in degraded mode, > i.e. if I disconnect a drive and start the system. > > I've seen similar issues with a RAID 5 volume mounted on just /home > instead of on /. RAID 1 appears to work fine, though. > > Here's one example. Though the panic traces vary, they're all very easy > to reproduce--just set up a three-drive RAID 5 array, then bring up the > system with one drive missing. That particular trace suggests that your file system is hosed. However, RAID 5 is not ready for prime-time yet - as far as I know it will work correctly until you lose a disk, at which point it will support read-only access (e.g. you should be able to keep your data), however any attempts to write will result in a panic. Also, there is no support for scrubbing or rebuilding, which makes it non-ideal for production. > >> OpenBSD/i386 BOOT 3.17 > > boot> > booting hd0a:/bsd: 8230716+1088904 [61+369072+354699]=0x9941dc > entry point at 0x200120 > > [ using 724248 bytes of bsd ELF symbol table ] > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2012 OpenBSD. All rights reserved. > http://www.OpenBSD.org > > OpenBSD 5.1-beta (GENERIC) #140: Sat Jan 21 00:40:23 MST 2012 > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC > cpu0: Intel(R) Pentium(R) 4 CPU 2.80GHz ("GenuineIntel" 686-class) 2.79 GHz > cpu0: > FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CF > LUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID > real mem = 1341124608 (1278MB) > avail mem = 1309093888 (1248MB) > mainbus0 at root > bios0 at mainbus0: AT/286+ BIOS, date 10/22/02, BIOS32 rev. 0 @ 0xffe90, > SMBIOS rev. 2.3 @ 0xf0450 (90 entries) > bios0: vendor Dell Computer Corporation version "A01" date 10/22/2002 > bios0: Dell Computer Corporation Precision WorkStation 350 > acpi0 at bios0: rev 0 > acpi0: sleep states S0 S1 S3 S4 S5 > acpi0: tables DSDT FACP SSDT APIC BOOT ASF! > acpi0: wakeup devices VBTN(S4) PCI0(S5) PCI1(S5) USB0(S3) USB1(S3) USB2(S3) > USB3 (S3) KBD_(S3) > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: apic clock running at 132MHz > ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins > ioapic0: misconfigured as apic 0, remapped to apid 1 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 2 (PCI1) > acpicpu0 at acpi0 > acpibtn0 at acpi0: VBTN > bios0: ROM list: 0xc0000/0xa800 0xca800/0x1800 > pci0 at mainbus0 bus 0: configuration mode 1 (bios) > pchb0 at pci0 dev 0 function 0 "Intel 82850 Host" rev 0x04 > intelagp0 at pchb0 > agp0 at intelagp0: aperture at 0xf0000000, size 0x8000000 > ppb0 at pci0 dev 1 function 0 "Intel 82850/82860 AGP" rev 0x04 > pci1 at ppb0 bus 1 > vga1 at pci1 dev 0 function 0 "NVIDIA Vanta" rev 0x15 > wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) > wsdisplay0: screen 1-5 added (80x25, vt100 emulation) > ppb1 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x04 > pci2 at ppb1 bus 2 > uhci0 at pci2 dev 1 function 0 "VIA VT83C572 USB" rev 0x50: apic 1 int 19 > uhci1 at pci2 dev 1 function 1 "VIA VT83C572 USB" rev 0x50: apic 1 int 18 > ehci0 at pci2 dev 1 function 2 "VIA VT6202 USB" rev 0x51: apic 1 int 16 > usb0 at ehci0: USB revision 2.0 > uhub0 at usb0 "VIA EHCI root hub" rev 2.00/1.00 addr 1 > uhci2 at pci2 dev 2 function 0 "VIA VT83C572 USB" rev 0x50: apic 1 int 18 > uhci3 at pci2 dev 2 function 1 "VIA VT83C572 USB" rev 0x50: apic 1 int 17 > ehci1 at pci2 dev 2 function 2 "VIA VT6202 USB" rev 0x51: apic 1 int 19 > usb1 at ehci1: USB revision 2.0 > uhub1 at usb1 "VIA EHCI root hub" rev 2.00/1.00 addr 1 > dc0 at pci2 dev 9 function 0 "ADMtek AN983" rev 0x11: apic 1 int 18, > address 00:06:25:08:1c:04 ukphy0 at dc0 phy 1: Generic IEEE 802.3u media > interface, rev. 1: OUI 0x000749, model 0x0001 dc1 at pci2 dev 10 function 0 > "ADMtek AN983" rev 0x11: apic 1 int 19, address 00:04:5a:7e:34:56 ukphy1 at > dc1 phy 1: Generic IEEE 802.3u media interface, rev. 1: OUI 0x000749, model > 0x0001 em0 at pci2 dev 12 function 0 "Intel PRO/1000MT (82540EM)" rev 0x02: > apic 1 int 18, address 00:07:e9:85:5d:be usb2 at uhci0: USB revision 1.0 > uhub2 at usb2 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > usb3 at uhci1: USB revision 1.0 > uhub3 at usb3 "VIA UHCI root hub" rev 1.00/1.00 addr 1usb4 at uhci2: USB > revision 1.0 uhub4 at usb4 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > usb5 at uhci3: USB revision 1.0 > uhub5 at usb5 "VIA UHCI root hub" rev 1.00/1.00 addr 1 > ichpcib0 at pci0 dev 31 function 0 "Intel 82801BA LPC" rev 0x04 > pciide0 at pci0 dev 31 function 1 "Intel 82801BA IDE" rev 0x04: DMA, > channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at > pciide0 channel 0 drive 0: <WDC WD400BB-75DEA0> > wd0: 16-sector PIO, LBA, 38146MB, 78125000 sectors > wd1 at pciide0 channel 0 drive 1: <IC35L060AVER07-0> > wd1: 16-sector PIO, LBA, 58644MB, 120103200 sectors > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 > wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 5 > pciide0: channel 1 ignored (disabled) > ichiic0 at pci0 dev 31 function 3 "Intel 82801BA SMBus" rev 0x04: apic 1 > int 17 iic0 at ichiic0 > iic0: addr 0x2d 1e=00 1f=00 20=c0 21=7c 22=c3 23=c3 24=be 25=bf 26=1e 27=23 > 2b=cd 2c=b3 2d=8a 2e=61 2f=cd 30=b3 31=cd 32=b3 33=d8 34=a8 35=cd 36=b3 > 37=7f 38=80 39=7f 3a=80 3e=55 3f=20 40=09 41=00 42=00 47=60 49=80 4a=00 > 4b=12 4c=00 4d=00 4f=48 50=c4 51=c2 52=28 54=cd 55=b3 56=cd 57=b3 58=5f > 59=80 5a=00 5b=00 words 00=ffff 01=ffff 02=ffff 03=ffff 04=ffff 05=ffff > 06=ffff 07=ffff auich0 at pci0 dev 31 function 5 "Intel 82801BA AC97" rev > 0x04: apic 1 int 17, ICH2 AC97 ac97: codec id 0x41445372 (Analog Devices > AD1981A) > ac97: codec features headphone, 20 bit DAC, No 3D Stereo > audio0 at auich0 > isa0 at ichpcib0 > isadma0 at isa0 > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > com0: console > 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 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > lpt0 at isa0 port 0x378/4 irq 7 > npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 > fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 > fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec > mtrr: Pentium Pro MTRR support > vscsi0 at root > scsibus0 at vscsi0: 256 targets > softraid0 at root > scsibus1 at softraid0: 256 targets > softraid0: not all chunks were provided; attempting to bring volume 0 > online softraid0: trying to bring up sd0 degraded > sd0 at scsibus1 targ 1 lun 0: <OPENBSD, SR RAID 5, 005> SCSI2 0/direct > fixed sd0: 58392MB, 512 bytes/sector, 119586816 sectors > softraid0: roaming device wd2d -> wd1d > root on sd0a (4c0f335c11b2f718.a) swap on sd0b dump on sd0b > Disk 1 offline, regenerating buffer > Disk 1 offline, regenerating buffer > Disk 1 offline, regenerating buffer > Disk 1 offline, regenerating buffer > First bad > /: bad dir ino 2 at offset 0: mangled entry > panic: bad dir > Stopped at Debugger+0x4: popl %ebp > RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC! > DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION! > ddb> trace > Debugger(d08d6478,dcac9d08,d08cb68e,dcac9d08,d09bcd14) at Debugger+0x4 > panic(d08cb68e,d24294b8,2,0,d08cb6d9) at panic+0x5d > ufs_dirbad(d75a9000,0,d08cb6d9,0,dcac9db8) at ufs_dirbad+0x53 > ufs_lookup(dcac9de0,0,0,d75b0d68,dcac9ed8) at ufs_lookup+0x851 > VOP_LOOKUP(d75b0d68,dcac9ed8,dcac9eec,dcac9ed8,20) at VOP_LOOKUP+0x2f > vfs_lookup(dcac9ec4,d75a6000,400,dcac9ee0,d0ae09b4) at vfs_lookup+0x27b > namei(dcac9ec4,0,dcac9edc,d03e5057,d08b2a9d) at namei+0x221 > check_console(d75b6000,20,d08b2aaa,0,0) at check_console+0x3a > start_init(d75b6000) at start_init+0x58 > Bad frame pointer: 0xd0b96ea8 > ddb> ps > PID PPID PGRP UID S FLAGS WAIT COMMAND > 15 0 0 0 3 0x100200 aiodoned aiodoned > 14 0 0 0 3 0x100200 syncer update > 13 0 0 0 3 0x100200 cleaner cleaner > 12 0 0 0 3 0x100200 reaper reaper > 11 0 0 0 3 0x100200 pgdaemon pagedaemon > 10 0 0 0 3 0x100200 bored srdis > 9 0 0 0 3 0x100200 bored crypto > 8 0 0 0 3 0x100200 pftm pfpurge > 7 0 0 0 3 0x100200 usbtsk usbtask > 6 0 0 0 3 0x100200 usbatsk usbatsk > 5 0 0 0 3 0x100200 acpi0 acpi0 > 4 0 0 0 3 0x100200 bored syswq > 3 0 0 0 3 0x40100200 idle0 > 2 0 0 0 3 0x100200 kmalloc kmthread > * 1 0 0 0 7 0 swapper > 0 -1 0 0 3 0x200 scheduler swapper -- "Reason is not automatic. Those who deny it cannot be conquered by it. Do not count on them. Leave them alone." -- Ayn Rand