On Wed, Jan 23, 2013 at 02:33:16AM +1100, Joel Sing wrote: > On Thu, 3 Jan 2013, Eivind Evensen wrote: > > On Mon, Dec 31, 2012 at 07:21:08PM +1100, Joel Sing wrote: > > > On Mon, 31 Dec 2012, Eivind Evensen wrote: > > > > Hello. > > > > > > > > Trying to play around a bit with softraid using vnd reliably results > > > > in a panic when assembling the raid volume. I think the first time I > > > > tried this was around 4.9 so it's not something new. > > > > ... > > > > FWIW this should now be rectified in -current.
I tried a snapshot downloaded on 21.th (OpenBSD 5.2-current (GENERIC) #17: Fri Jan 18 19:42:57 MST 2013) which produced the same results. I waited a few days in case the snapshot was too old and built from sources from yesterday, still giving the same results. I don't need such a setup so it's not a big deal, but here's output and dmesg in case it may be helpful: root:skoeske> dd if=/dev/zero of=disk1 bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 2.875 secs (36462177 bytes/sec) root:skoeske> r disk1=disk2 dd if=/dev/zero of=disk2 bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 3.219 secs (32567739 bytes/sec) root:skoeske> r disk2=disk3 dd if=/dev/zero of=disk3 bs=1m count=100 100+0 records in 100+0 records out 104857600 bytes transferred in 3.569 secs (29378164 bytes/sec) root:skoeske> vnconfig vnd0 disk1 root:skoeske> vnconfig vnd1 disk2 root:skoeske> vnconfig vnd2 disk3 root:skoeske> fdisk -iy vnd0 Warning CHS values out of bounds only saving LBA values Writing MBR at offset 0. root:skoeske> fdisk -iy vnd1 Warning CHS values out of bounds only saving LBA values Writing MBR at offset 0. root:skoeske> fdisk -iy vnd2 Warning CHS values out of bounds only saving LBA values Writing MBR at offset 0. root:skoeske> printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E vnd0 Label editor (enter '?' for help at any prompt) > partition: [a] offset: [128] size: [204672] FS type: [4.2BSD] > > No label > changes. root:skoeske> printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E vnd1 Label editor (enter '?' for help at any prompt) > partition: [a] offset: [128] size: [204672] FS type: [4.2BSD] > > No label > changes. root:skoeske> printf "a\n\n\n\nRAID\nw\nq\n\n" | disklabel -E vnd2 Label editor (enter '?' for help at any prompt) > partition: [a] offset: [128] size: [204672] FS type: [4.2BSD] > > No label > changes. root:skoeske> bioctl -c 1 -l /dev/vnd0a,/dev/vnd1a,/dev/vnd2a softraid0 sd0 at scsibus1 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed sd0: 99MB, 512 bytes/sector, 204144 sectors softraid0: SR RAID 1 volume attached as sd0 panic: softraid0: sr_wu_init got active wu 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(d08fcddc,f2087de8,d08d0da4,f2087de8,d0a7e540) at Debugger+0x4 panic(d08d0da4,d0f8c014,f2087dfc,d036ccf3,d0fedab8) at panic+0x5d sr_wu_init(d1055000,d0fedab8,f2087e3c,d1055a30,d1057f00) at sr_wu_init+0x73 sr_wu_put(d1055000,d0fedab8,f2087e3c,f2087e3c,d02030dd) at sr_wu_put+0x2f scsi_io_put(d1055a30,d0fedab8,8000,d0fedab8,d0fedab8) at scsi_io_put+0x19 scsi_xs_put(f2027000,f2027000,f2087e8c,d041de18,d1055000) at scsi_xs_put+0x37 sr_raid1_intr(d1065000,f1fabdc4,f17dc000,200,52000) at sr_raid1_intr+0x107 vndstrategy(d1065000,0,0,50,d1065000) at vndstrategy+0x70 spec_strategy(f2087f48,0,f2087f6c,d03f2c28,d1053d90) at spec_strategy+0x3d VOP_STRATEGY(d1065000,0,0,0,d0fedaf8) at VOP_STRATEGY+0x2c sr_startwu_callback(d1055000,d0fedab8,d02008bf,d1053d80,d03f2c50) at sr_startwu _callback+0x39 workq_thread(d1053d80) at workq_thread+0x36 Bad frame pointer: 0xd0bc8ed8 ddb> ps PID PPID PGRP UID S FLAGS WAIT COMMAND *23369 0 0 0 7 0x100200 srdis 19292 1571 6315 1000 3 0x80 ttyin less 1571 6315 6315 1000 3 0x88 pause sh 6315 30722 6315 1000 3 0x80 wait man 30722 11048 30722 1000 3 0x88 pause ksh 11048 2130 2130 1000 3 0x80 select sshd 2130 1703 2130 0 3 0x80 poll sshd 2513 1 2513 0 2 0x80 ksh 20983 1 20983 0 3 0x80 ttyin getty 22576 1 22576 0 3 0x80 ttyin getty 19748 1 19748 0 3 0x80 ttyin getty 21880 1 21880 0 3 0x80 ttyin getty 5243 1 5243 0 3 0x80 ttyin getty 32690 1 32690 0 3 0x80 select cron 24485 1 24485 99 3 0x80 poll sndiod 99 1 99 0 3 0x80 select inetd 22458 15830 15830 95 3 0x80 kqread smtpd 17649 15830 15830 95 3 0x80 kqread smtpd 17949 15830 15830 95 3 0x80 kqread smtpd 3934 15830 15830 95 3 0x80 kqread smtpd 445 15830 15830 95 3 0x80 kqread smtpd 7633 15830 15830 95 3 0x80 kqread smtpd 18333 15830 15830 95 3 0x80 kqread smtpd 19722 15830 15830 95 3 0x80 kqread smtpd 15830 1 15830 0 3 0x80 kqread smtpd 27266 1 27266 0 3 0x80 poll rwhod 1703 1 1703 0 3 0x80 select sshd 8005 0 0 0 3 0x100280 nfsidl nfsio 31584 0 0 0 3 0x100280 nfsidl nfsio 5415 0 0 0 3 0x100280 nfsidl nfsio 496 0 0 0 3 0x100280 nfsidl nfsio 25929 26220 26220 0 3 0x80 nfsd nfsd 11340 26220 26220 0 3 0x80 nfsd nfsd 29390 26220 26220 0 3 0x80 nfsd nfsd 20620 26220 26220 0 3 0x80 nfsd nfsd 26220 1 26220 0 3 0x80 netcon nfsd 18723 1 18723 0 3 0x80 select mountd 2592 1 2592 28 3 0x80 poll portmap 1389 10386 12843 83 3 0x80 poll ntpd 10386 12843 12843 83 3 0x80 poll ntpd 12843 1 12843 0 3 0x80 poll ntpd 22197 28196 28196 74 3 0x80 bpf pflogd 28196 1 28196 0 3 0x80 netio pflogd 3624 4526 4526 73 3 0 ffs_fsync syslogd 4526 1 4526 0 3 0x80 netio syslogd 14 0 0 0 3 0x100200 aiodoned aiodoned 13 0 0 0 3 0x100200 syncer update 12 0 0 0 3 0x100200 cleaner cleaner 11 0 0 0 3 0x100200 reaper reaper 10 0 0 0 3 0x100200 pgdaemon pagedaemon 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 apmev apm0 4 0 0 0 2 0x100200 syswq 3 0 0 0 3 0x40100200 idle0 2 0 0 0 3 0x100200 kmalloc kmthread 1 0 1 0 3 0x80 wait init 0 -1 0 0 3 0x200 scheduler swapper ddb> boot reboot ~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> boot reboot rebooting... >> OpenBSD/i386 BOOT 3.21 OpenBSD 5.2-current (GENERIC) #10: Mon Jan 28 21:48:14 CET 2013 rumrunner@skoeske.hjerdalen.lokalnett:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Celeron(TM) CPU 1100MHz ("GenuineIntel" 686-class) 1.10 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR,SSE,PERF real mem = 125370368 (119MB) avail mem = 112365568 (107MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 09/18/02, BIOS32 rev. 0 @ 0xfb3b0, SMBIOS rev. 2.2 @ 0xf0800 (43 entries) bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 09/18/2002 apm0 at bios0: Power Management spec V1.2 (slowidle) acpi at bios0 function 0x0 not configured pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdef4 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfde50/160 (8 entries) pcibios0: PCI Exclusive IRQs: 5 10 11 12 pcibios0: PCI Interrupt Router at 000:01:0 ("SiS 85C503 System" rev 0x00) pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc0000/0xc000 cpu0 at mainbus0: (uniprocessor) pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "SiS 630 PCI" rev 0x30 sisagp0 at pchb0 agp0 at sisagp0: aperture at 0xe8000000, size 0x4000000 pciide0 at pci0 dev 0 function 1 "SiS 5513 EIDE" rev 0xd0: 630S: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: <ST380215A> wd0: 16-sector PIO, LBA48, 76319MB, 156301488 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 pciide0: channel 1 disabled (no drives) pcib0 at pci0 dev 1 function 0 "SiS 85C503 System" rev 0x00 sis0 at pci0 dev 1 function 1 "SiS 900 10/100BaseTX" rev 0x84: irq 10, address 00:08:9b:82:06:7c ukphy0 at sis0 phy 0: Generic IEEE 802.3u media interface, rev. 0: OUI 0x000760, model 0x0000 ohci0 at pci0 dev 1 function 2 "SiS 5597/5598 USB" rev 0x07: irq 5, version 1.0, legacy support ohci1 at pci0 dev 1 function 3 "SiS 5597/5598 USB" rev 0x07: irq 5, version 1.0, legacy support autri0 at pci0 dev 1 function 4 "SiS 7018 Audio" rev 0x02: irq 12 ac97: codec id 0x414c4710 (Avance Logic ALC200) ac97: codec features headphone, 18 bit DAC, 18 bit ADC, Realtek 3D audio0 at autri0 midi0 at autri0: <4DWAVE MIDI UART> ppb0 at pci0 dev 2 function 0 "SiS 86C201 AGP" rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 "SiS 6300" rev 0x21 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 11, address 00:08:9b:6a:1f:94 rlphy0 at rl0 phy 0: RTL internal PHY isa0 at pcib0 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 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 it0 at isa0 port 0x2e/2: IT8705F rev 2, EC port 0x290 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 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 "SiS OHCI root hub" rev 1.00/1.00 addr 1 usb1 at ohci1: USB revision 1.0 uhub1 at usb1 "SiS OHCI root hub" rev 1.00/1.00 addr 1 mtrr: Pentium Pro MTRR support vscsi0 at root scsibus0 at vscsi0: 256 targets softraid0 at root scsibus1 at softraid0: 256 targets root on wd0a (ee00000000000001.a) swap on wd0b dump on wd0b WARNING: / was not properly unmounted