Hello misc, I am having a problem with a mirroring softraid configuration. Every time I try to access a particular partition in softraid volume I start to get I/O errors so that softraid totally "breaks", that is, becomes non-operative.
Note that it does very much look like that both of these disks are actually defective. $ disklabel sd0 # /dev/rsd0c: type: SCSI disk: SCSI disk label: WDC WD3200AAKS-0 duid: 800258c4df44247f flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 38913 total sectors: 625142448 boundstart: 63 boundend: 625137345 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 530082 63 4.2BSD 2048 16384 1 # / b: 8401995 530145 swap c: 625142448 0 unused d: 616205205 8932140 RAID $ disklabel sd1 # /dev/rsd1c: type: SCSI disk: SCSI disk label: WDC WD3200AAKS-0 duid: ec6572ba6b33d733 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 38913 total sectors: 625142448 boundstart: 63 boundend: 625137345 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] a: 530082 63 4.2BSD 2048 16384 1 b: 8401995 530145 swap c: 625142448 0 unused d: 616205205 8932140 RAID The situation now: $ bioctl -i sd3 Volume Status Size Device softraid0 0 Degraded 315496794624 sd3 RAID1 0 Online 315496794624 0:0.0 noencl <sd0d> 1 Offline 0 0:1.0 noencl <sd1d> $ disklabel sd3 # /dev/rsd3c: type: SCSI disk: SCSI disk label: SR RAID 1 duid: 80ebde8831825f63 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 38356 total sectors: 616204677 boundstart: 0 boundend: 616204677 drivedata: 0 16 partitions: # size offset fstype [fsize bsize cpg] c: 616204677 0 unused d: 12594944 0 4.2BSD 2048 16384 1 # /tmp e: 125821088 12594944 4.2BSD 2048 16384 1 # /usr f: 8385920 138416032 4.2BSD 2048 16384 1 # /var g: 125821088 146801952 4.2BSD 2048 16384 1 # /home h: 343581632 272623040 4.2BSD 4096 32768 1 I can use the partitions /dev/sd3{d,e,f,g} just fine. However, whenever I try to do any of the following: * fsck /dev/sd3h * dd if=/dev/sd3h of=/dev/null * dump /dev/sd3h * bioctl -R /dev/someotherraidvolume sd3 after a few seconds I will get I/O errors from the softraid volume. These errors are such that after it *any* operation to sd3, for example "bioctl -i sd3", or "disklabel sd3" will simply return an I/O error, and the system must be rebooted. Note that I said that I think both disks are defective. When the system is booted with softraid disabled and then the disks (sd0 and sd1) are read with "dd if=/dev/rsd0c of=/dev/null conv=noerror,sync", dd reports several I/O errors (a few such errors every now and then). Possibly some softraid-related metadata is corrupted? Any ideas on how to recover data from /dev/sd3h? Do the above dd-command to some file and then use scan_ffs? Might that work? This is 5.3, built from source. Juha dmesg (btw, "Logitech Logitech Cordless RumblePad 2" works great with mupen64plus, a bit of configuration was needed though ;-) OpenBSD 5.3 (GENERIC) #0: Sun Mar 17 21:03:56 EET 2013 bu...@iso.turnipsi.no-ip.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Sempron(tm) 140 Processor ("AuthenticAMD" 686-class, 1024KB L2 cache) 2.71 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,SSE3,MWAIT,CX16,POPCNT,LAHF,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,WDT,ITSC real mem = 1878126592 (1791MB) avail mem = 1836462080 (1751MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 09/14/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5 @ 0xf06d0 (63 entries) bios0: vendor American Megatrends Inc. version "1501" date 09/14/2009 bios0: ASUSTeK Computer INC. M4A78 PRO acpi0 at bios0: rev 0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT acpi0: wakeup devices PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) SBAZ(S4) UAR1(S4) PS2K(S4) PS2M(S4) P0PC(S4) UHC1(S4) UHC2(S4) UHC3(S4) USB4(S4) UHC5(S4) UHC6(S4) UHC7(S4) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD erratum 721 detected and fixed cpu0: apic clock running at 200MHz ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 21, 24 pins acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (P0P1) acpiprt2 at acpi0: bus -1 (PCE2) acpiprt3 at acpi0: bus -1 (PCE3) acpiprt4 at acpi0: bus -1 (PCE4) acpiprt5 at acpi0: bus -1 (PCE5) acpiprt6 at acpi0: bus 2 (PCE6) acpiprt7 at acpi0: bus 3 (P0PC) acpicpu0 at acpi0: PSS aibs0 at acpi0: RTMP RVLT RFAN GGRP GITM SITM acpibtn0 at acpi0: PWRB bios0: ROM list: 0xc0000/0xea00 0xcf000/0x8000! cpu0: 2710 MHz: speeds: 2700 1900 1500 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "AMD RS780 Host" rev 0x00 ppb0 at pci0 dev 1 function 0 vendor "Asustek", unknown product 0x9602 rev 0x00 pci1 at ppb0 bus 1 vga1 at pci1 dev 5 function 0 "ATI Radeon HD 3200" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 1 int 18 drm0 at radeondrm0 azalia0 at pci1 dev 5 function 1 "ATI RS780 HD Audio" rev 0x00: msi azalia0: no supported codecs ppb1 at pci0 dev 6 function 0 "AMD RS780 PCIE" rev 0x00: apic 1 int 18 pci2 at ppb1 bus 2 ale0 at pci2 dev 0 function 0 "Attansic Technology L1E" rev 0xb0: AR8121, msi, address 90:e6:ba:ee:e7:90 atphy0 at ale0 phy 0: F1 10/100/1000 PHY, rev. 9 ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x00: apic 1 int 22, AHCI 1.1 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: <ATA, WDC WD3200AAKS-0, 05.0> SCSI3 0/direct fixed naa.50014ee001d1708c sd0: 305245MB, 512 bytes/sector, 625142448 sectors sd1 at scsibus0 targ 2 lun 0: <ATA, WDC WD3200AAKS-0, 05.0> SCSI3 0/direct fixed naa.50014ee0ac7c35c9 sd1: 305245MB, 512 bytes/sector, 625142448 sectors ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 1 int 16, version 1.0, legacy support ohci1 at pci0 dev 18 function 1 "ATI SB700 USB" rev 0x00: apic 1 int 16, version 1.0, legacy support ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 1 int 17 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1 ohci2 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 1 int 18, version 1.0, legacy support ohci3 at pci0 dev 19 function 1 "ATI SB700 USB" rev 0x00: apic 1 int 18, version 1.0, legacy support ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 1 int 19 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1 piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x3a: SMI iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM ECC PC2-6400CL5 pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x00: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus1 at atapiscsi0: 2 targets cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-RAM GSA-H55N, 1.03> ATAPI 5/cdrom removable cd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 4 azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x00: apic 1 int 16 azalia1: codecs: VIA/0x0397 audio0 at azalia1 pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x00 ppb2 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x00 pci3 at ppb2 bus 3 eap0 at pci3 dev 5 function 0 "Ensoniq AudioPCI97" rev 0x06: apic 1 int 20 ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3) ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D audio1 at eap0 midi0 at eap0: <AudioPCI MIDI UART> ppb3 at pci3 dev 6 function 0 "TI PCI2250 PCI-PCI" rev 0x02 pci4 at ppb3 bus 4 sis0 at pci4 dev 0 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: apic 1 int 21, address 00:00:24:cc:48:14 nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 sis1 at pci4 dev 1 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: apic 1 int 22, address 00:00:24:cc:48:15 nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1 sis2 at pci4 dev 2 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: apic 1 int 23, address 00:00:24:cc:48:16 nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1 sis3 at pci4 dev 3 function 0 "NS DP83815 10/100" rev 0x00, DP83816A: apic 1 int 20, address 00:00:24:cc:48:17 nsphyter3 at sis3 phy 0: DP83815 10/100 PHY, rev. 1 ahc0 at pci3 dev 7 function 0 "Adaptec AHA-2940U" rev 0x01: apic 1 int 22 scsibus2 at ahc0: 8 targets, initiator 7 ohci4 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 1 int 18, version 1.0, legacy support pchb1 at pci0 dev 24 function 0 "AMD AMD64 10h HyperTransport" rev 0x00 pchb2 at pci0 dev 24 function 1 "AMD AMD64 10h Address Map" rev 0x00 pchb3 at pci0 dev 24 function 2 "AMD AMD64 10h DRAM Cfg" rev 0x00 km0 at pci0 dev 24 function 3 "AMD AMD64 10h Misc Cfg" rev 0x00 pchb4 at pci0 dev 24 function 4 "AMD AMD64 10h Link Cfg" rev 0x00 usb2 at ohci0: USB revision 1.0 uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1 usb4 at ohci2: USB revision 1.0 uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1 usb5 at ohci3: USB revision 1.0 uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: 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 it0 at isa0 port 0x2e/2: IT8720F 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 usb6 at ohci4: USB revision 1.0 uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1 mtrr: Pentium Pro MTRR support umass0 at uhub0 port 4 configuration 1 interface 0 "LaCie P'9221 Mobile Drive" rev 2.00/0.06 addr 2 umass0: using SCSI over Bulk-Only scsibus3 at umass0: 2 targets, initiator 0 sd2 at scsibus3 targ 1 lun 0: <TOSHIBA, MK1059GSM, GU00> SCSI3 0/direct fixed serial.059f1058e40812c830b5 sd2: 953869MB, 512 bytes/sector, 1953525168 sectors uhub7 at uhub2 port 2 "Logitech Logitech BT Mini-Receiver" rev 2.00/49.00 addr 2 uhidev0 at uhub7 port 2 configuration 1 interface 0 "Logitech Logitech BT Mini-Receiver" rev 2.00/49.00 addr 3 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub7 port 3 configuration 1 interface 0 "Logitech Logitech BT Mini-Receiver" rev 2.00/49.00 addr 4 uhidev1: iclass 3/1, 18 report ids ums0 at uhidev1 reportid 2: 12 buttons, Z dir wsmouse0 at ums0 mux 0 uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0 uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0 ums1 at uhidev1 reportid 5: 8 buttons, Z dir wsmouse1 at ums1 mux 0 uhid2 at uhidev1 reportid 16: input=6, output=6, feature=0 uhid3 at uhidev1 reportid 17: input=19, output=19, feature=0 uhid4 at uhidev1 reportid 18: input=45, output=45, feature=0 uhidev2 at uhub2 port 3 configuration 1 interface 0 "Logitech Logitech Cordless RumblePad 2" rev 2.00/3.05 addr 5 uhidev2: iclass 3/0, 3 report ids uhid5 at uhidev2 reportid 1: input=7, output=0, feature=0 uhid6 at uhidev2 reportid 2: input=7, output=0, feature=0 uhid7 at uhidev2 reportid 3: input=0, output=7, feature=0 vscsi0 at root scsibus4 at vscsi0: 256 targets softraid0 at root scsibus5 at softraid0: 256 targets softraid0: trying to bring up sd3 degraded softraid0: sd3 was not shutdown properly sd3 at scsibus5 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed sd3: 300881MB, 512 bytes/sector, 616204677 sectors softraid0: roaming device -> sd1d root on sd0a (800258c4df44247f.a) swap on sd0b dump on sd0b