Subject: Re: S-ATA RAID with Intel ICH7 not working
To: None <dl@xiqit.de>
From: Timo Schoeler <timo.schoeler@riscworks.net>
List: current-users
Date: 05/18/2006 14:13:47
thus Damian Lubosch spake:
> Hello!
> 
> I need some help in building up a RAID 1 with the Intel ICH7 Chipset 
> Controller. (Intel 82801GB/GR Serial ATA/Raid Controller (ICH7) (rev.
>  0x01))
> 
> I already tried it in two different ways: software RAID in NetBSD and
>  hardware RAID using the onboard controller natively.
> 
> In hardware RAID the installation system does not recognize the
> harddrives in RAID-1 mode at all. In software RAID I was following
> the very good instruction written on 
> http://www.netbsd.org/guide/en/chap-rf.html step by step, but the
> system is failing in the execution of the command "raidctl -F
> component0 raid0" since there are errors like:
> 
> wd0a: error reading fsbn 268435392 of 268435392-268435519 (wd0 bn 
> 268435455; cn 266305 tn 0 sn 15), retrying wd0: (id not found) wd1a:
> error reading fsbn 268435392 of 268435392-268435519 (wd1 bn 
> 268435455; cn 266305 tn 0 sn 15)wd1: (id not found)
> 
> after about 85% of the restore-operation.
> 
> First, I thought that it could be some block/sector error. So I tried
> a thrid harddrive (of same size/type) and used it in combination with
> the first and the second harddrive and I had the same error messages.
>  I also tried to install a clean NetBSD on the third drive and built
> the RAID on the first two empty drives (now with raidctl -v -i raid0)
> but with the same result.
> 
> I attached my dmesg below.
> 
> I hope someone can help me. Thanks in advance,
> 
> Damian Lubosch
> 
> 
> 
> 
> 
> NetBSD 3.0 (GENERIC) #0: Mon Dec 19 01:04:02 UTC 2005 
> builds@works.netbsd.org:/home/builds/ab/netbsd-3-0-RELEASE/i386/200512182024Z-obj/home/builds/ab/netbsd-3-0-RELEASE/src/sys/arch/i386/compile/GENERIC
>  total memory = 2046 MB avail memory = 1994 MB BIOS32 rev. 0 found at
> 0xfd440 mainbus0 (root) cpu0 at mainbus0: (uniprocessor) cpu0: Intel
> (686-class), 2800.18 MHz, id 0xf49 cpu0: features
> bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR> cpu0:
> features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX> cpu0:
> features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF> cpu0: features2
> 641d<SSE3,MONITOR,DS-CPL,CID,xTPR> cpu0: features3 20100000<EM64T> 
> cpu0: "Intel(R) Pentium(R) 4 CPU 2.80GHz" cpu0: I-cache 12K uOp cache
> 8-way cpu0: L2 cache 1 MB 64B/line 8-way cpu0: ITLB 4K/4M: 64 entries
>  cpu0: DTLB 4K/4M: 64 entries cpu0: using thermal monitor 1 cpu0: 32
> page colors pci0 at mainbus0 bus 0: configuration mode 1 pci0: i/o
> space, memory space enabled, rd/line, rd/mult, wr/inv ok pchb0 at
> pci0 dev 0 function 0 pchb0: Intel product 0x2778 (rev. 0x81) ppb0 at
> pci0 dev 1 function 0: Intel product 0x2779 (rev. 0x81) pci1 at ppb0
> bus 1 pci1: no spaces enabled! ppb1 at pci0 dev 28 function 0: Intel
> 82801GB/GR PCI Express Port #1 (rev. 0x01) pci2 at ppb1 bus 2 pci2:
> i/o space, memory space enabled, rd/line, wr/inv ok ppb2 at pci2 dev
> 0 function 0: Intel product 0x032c (rev. 0x09) pci3 at ppb2 bus 3 
> pci3: i/o space, memory space enabled, rd/line, wr/inv ok ppb3 at
> pci0 dev 28 function 4: Intel 82801GB/GR PCI Express Port #5 (rev. 
> 0x01) pci4 at ppb3 bus 4 pci4: i/o space, memory space enabled,
> rd/line, wr/inv ok Intel product 0x108b (ethernet network, revision
> 0x03) at pci4 dev 0 function 0 not configured ppb4 at pci0 dev 28
> function 5: Intel 82801GB/GR PCI Express Port #6 (rev. 0x01) pci5 at
> ppb4 bus 5 pci5: i/o space, memory space enabled, rd/line, wr/inv ok 
> Intel product 0x108b (ethernet network, revision 0x03) at pci5 dev 0 
> function 0 not configured uhci0 at pci0 dev 29 function 0: Intel
> 82801GB/GR USB UHCI Controller (rev. 0x01) uhci0: interrupting at irq
> 5 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI
> root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2
> removable, self powered uhci1 at pci0 dev 29 function 1: Intel
> 82801GB/GR USB UHCI Controller (rev. 0x01) uhci1: interrupting at irq
> 10 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI
> root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2
> removable, self powered uhci2 at pci0 dev 29 function 2: Intel
> 82801GB/GR USB UHCI Controller (rev. 0x01) uhci2: interrupting at irq
> 11 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: Intel UHCI
> root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2
> removable, self powered uhci3 at pci0 dev 29 function 3: Intel
> 82801GB/GR USB UHCI Controller (rev. 0x01) uhci3: interrupting at irq
> 10 usb3 at uhci3: USB revision 1.0 uhub3 at usb3 uhub3: Intel UHCI
> root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2
> removable, self powered ehci0 at pci0 dev 29 function 7: Intel
> 82801GB/GR USB EHCI Controller (rev. 0x01) ehci0: interrupting at irq
> 5 ehci0: BIOS refuses to give up ownership, using force ehci0: EHCI
> version 1.0 ehci0: companion controllers, 2 ports each: uhci0 uhci1
> uhci2 uhci3 usb4 at ehci0: USB revision 2.0 uhub4 at usb4 uhub4:
> Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub4: single
> transaction translator uhub4: 8 ports with 8 removable, self powered 
> ppb5 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev.
> 0xe1) pci6 at ppb5 bus 10 pci6: i/o space, memory space enabled fxp0
> at pci6 dev 2 function 0: i82550 Ethernet, rev 16 fxp0: interrupting
> at irq 10 fxp0: Ethernet address 00:e0:81:40:ee:86 inphy0 at fxp0 phy
> 1: i82555 10/100 media interface, rev. 4 inphy0: 10baseT,
> 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vga1 at pci6 dev 5
> function 0: unknown vendor 0x18ca product 0x0020 (rev. 0x00) 
> wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation) wsmux1:
> connecting to wsdisplay0 pcib0 at pci0 dev 31 function 0 pcib0: Intel
> 82801GB/GR LPC Interface Bridge (rev. 0x01) piixide0 at pci0 dev 31
> function 1 piixide0: Intel 82801GB/GR IDE Controller (ICH7) (rev.
> 0x01) piixide0: bus-master DMA support present piixide0: primary
> channel configured to compatibility mode piixide0: primary channel
> interrupting at irq 14 atabus0 at piixide0 channel 0 piixide0:
> secondary channel configured to compatibility mode piixide0:
> secondary channel interrupting at irq 15 atabus1 at piixide0 channel
> 1 piixide1 at pci0 dev 31 function 2 piixide1: Intel 82801GB/GR
> Serial ATA/Raid Controller (ICH7) (rev. 0x01) piixide1: bus-master
> DMA support present piixide1: primary channel configured to
> native-PCI mode piixide1: using irq 10 for native-PCI interrupt 
> atabus2 at piixide1 channel 0 piixide1: secondary channel configured
> to native-PCI mode atabus3 at piixide1 channel 1 Intel 82801GB/GR
> SMBus Controller (SMBus serial bus, revision 0x01) at pci0 dev 31
> function 3 not configured isa0 at pcib0 lpt0 at isa0 port 0x378-0x37b
> irq 7 com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo 
> com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo pckbc0 at
> isa0 port 0x60-0x64 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1
> for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 
> pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker sysbeep0 at
> pcppi0 isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support 
> npx0 at isa0 port 0xf0-0xff: using exception 16 isapnp0: no ISA Plug
> 'n Play devices found Kernelized RAIDframe activated atapibus0 at
> atabus0: 2 targets cd0 at atapibus0 drive 1: <CD-224E-N, , 1.AA>
> cdrom removable cd0: 32-bit data port cd0: drive supports PIO mode 4,
> DMA mode 2, Ultra-DMA mode 2 (Ultra/33) cd0(piixide0:0:1): using PIO
> mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA) wd0 at atabus2 drive
> 0: <ST3160812AS> wd0: drive supports 16-sector PIO transfers, LBA48
> addressing wd0: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x
> 312581808 sectors wd0: 32-bit data port wd0: drive supports PIO mode
> 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) wd1 at atabus2 drive 1:
> <ST3160812AS> wd1: drive supports 16-sector PIO transfers, LBA48
> addressing wd1: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x
> 312581808 sectors wd1: 32-bit data port wd1: drive supports PIO mode
> 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) wd0(piixide1:0:0): using
> PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA) 
> wd1(piixide1:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
> (using DMA) uhidev0 at uhub0 port 2 configuration 1 interface 0 
> uhidev0: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 2,
> iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse0 at ums0 mux
> 0 wd2 at atabus3 drive 0: <ST3160812AS> wd2: drive supports 16-sector
> PIO transfers, LBA48 addressing wd2: 149 GB, 310101 cyl, 16 head, 63
> sec, 512 bytes/sect x 312581808 sectors wd2: 32-bit data port wd2:
> drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) 
> wd2(piixide1:1:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
> (using DMA) boot device: wd2 root on wd2a dumps on wd2b root file
> system type: ffs wsdisplay0: screen 1 added (80x25, vt100 emulation) 
> wsdisplay0: screen 2 added (80x25, vt100 emulation) wsdisplay0:
> screen 3 added (80x25, vt100 emulation) wsdisplay0: screen 4 added
> (80x25, vt100 emulation) Hosed component: /dev/wd1a Hosed component:
> /dev/wd0a raid0: Component /dev/wd0a being configured at col: 0 
> Column: 24 Num Columns: 0 Version: 0 Serial Number: 0 Mod Counter: 8 
> Clean: Yes Status: 1147949710 /dev/wd0a has a different modfication
> count: 12583015 8 Row out of alignment for: /dev/wd0a Column out of
> alignment for: /dev/wd0a Number of columns do not match for:
> /dev/wd0a raid0: Component /dev/wd1a being configured at col: 1 
> Column: 1 Num Columns: 2 Version: 2 Serial Number: 20060516 Mod
> Counter: 12583015 Clean: No Status: 0 /dev/wd1a has a different
> serial number: 0 20060516 /dev/wd1a is not clean! raid0: There were
> fatal errors raid0: Fatal errors being ignored. raid0: RAID Level 1 
> raid0: Components: /dev/wd0a /dev/wd1a raid0: Total Sectors:
> 312581632 (152627 MB) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd1: (id not found) wd0a: error reading fsbn 268435392 of
> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd0: (id not found) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd1: (id not found) wd0a: error reading fsbn 268435392 of
> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd0: (id not found) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd1: (id not found) wd0a: error reading fsbn 268435392 of
> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd0: (id not found) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd1: (id not found) wd0a: error reading fsbn 268435392 of
> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd0: (id not found) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd1: (id not found) wd0a: error reading fsbn 268435392 of
> 268435392-268435519 (wd0 bn 268435455; cn 266305 tn 0 sn 15),
> retrying wd0: (id not found) wd1a: error reading fsbn 268435392 of
> 268435392-268435519 (wd1 bn 268435455; cn 266305 tn 0 sn 15)wd1: (id
> not found)
> 
> raid0: IO Error.  Marking /dev/wd1a as failed. wd0a: error reading
> fsbn 268435392 of 268435392-268435519 (wd0 bn 268435455; cn 266305 tn
> 0 sn 15)wd0: (id not found)
> 
> Unable to verify raid1 parity: can't read stripe Could not verify
> parity raid0: Error re-writing parity!

hi,

have a look a

http://mail-index.netbsd.org/current-users/2005/06/20/0016.html

and

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/ata/wd.c?rev=1.274.2.8.2.4&content-type=text/x-cvsweb-markup

i had the same problem, maybe your hard drive needs the same workaround?

HTH,

-- 
Timo Schoeler | http://riscworks.net/~tis | timo.schoeler@riscworks.net
RISCworks -- Perfection is a powerful message
ISP | POWER & PowerPC afficinados | Networking, Security, BSD services
GPG Key fingerprint = B5F6 68A4 EC45 C309 6770  38C4 50E8 2740 9E0C F20A

There are 10 types of people in the world. Those who understand binary
and those who don't.