From owner-freebsd-current@FreeBSD.ORG Thu Oct 6 22:38:36 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E332916A41F; Thu, 6 Oct 2005 22:38:36 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: from pne-smtpout1-sn2.hy.skanova.net (pne-smtpout1-sn2.hy.skanova.net [81.228.8.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2288943D45; Thu, 6 Oct 2005 22:38:35 +0000 (GMT) (envelope-from daniel_k_eriksson@telia.com) Received: from royal64.emp.zapto.org (195.198.193.104) by pne-smtpout1-sn2.hy.skanova.net (7.2.060.1) id 4332AC780033BD9E; Fri, 7 Oct 2005 00:38:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 7 Oct 2005 00:38:34 +0200 Content-class: urn:content-classes:message Message-ID: <4F9C9299A10AE74E89EA580D14AA10A605F55D@royal64.emp.zapto.org> X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: gvinum startup problems Thread-Index: AcXKxrN2tOfyCoK2T3O0hshk7v5D5Q== From: "Daniel Eriksson" To: Cc: Pawel Jakub Dawidek Subject: gvinum startup problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 22:38:37 -0000 One of my servers boot off of SCSI, and has a gvinum array consisting of 4 x 120GB ATA disks in RAID-0 configuration. When loading gvinum through "/boot/loader.conf", the tasting of providers seems to be out of whack, and the array always comes up broken with one subdisk missing. When loading gvinum manually, the array always comes up properly without any problems. All the individual disks are probed properly during startup, but for some reason gvinum does not taste all 4 disks if it loads through "/boot/loader.conf". This is what it looks like when I have loaded the module manually. As far as I can remember, every time I've tried to auto-load the module it has been /dev/ad3 (vd1) that has failed to be tasted. # gvinum list 4 drives: D vd2 State: up /dev/ad0 A: 0/117800 MB (0%) D vd3 State: up /dev/ad1 A: 0/117800 MB (0%) D vd0 State: up /dev/ad2 A: 0/117800 MB (0%) D vd1 State: up /dev/ad3 A: 0/117800 MB (0%) 1 volume: V 480GB State: up Plexes: 1 Size: 460 GB 1 plex: P 480GB.p0 S State: up Subdisks: 4 Size: 460 GB 4 subdisks: S 480GB.p0.s0 State: up D: vd0 Size: 115 GB S 480GB.p0.s1 State: up D: vd1 Size: 115 GB S 480GB.p0.s2 State: up D: vd2 Size: 115 GB S 480GB.p0.s3 State: up D: vd3 Size: 115 GB I know this bug report might not be very useful without GEOM debugging info, but right now I cannot provide that. With some luck the problem and its solution is obvious to Pawel or someone else. :-) The problem has been around since I first started using gvinum (instead of vinum). This was a year ago or something like that. I used to run 5-CURRENT on it, and switched to the RELENG_6 branch when that became available a few months ago. I keep it pretty up-to-date (usually 2-3 upgrades per week). It's an SMP box running with the SCHED_4BSD scheduler /Daniel Eriksson /boot/kernel/acpi.ko text=3D0x49d18 data=3D0x2160+0x1090 syms=3D[0x4+0x7810+0x4+0xa292] KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-BETA5 #0: Wed Oct 5 18:32:58 CEST 2005 daniel@xxx:/usr/obj/usr/src/sys/XXX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) MP 2600+ (2000.09-MHz 686-class CPU) Origin =3D "AuthenticAMD" Id =3D 0x6a0 Stepping =3D 0 =20 Features=3D0x383fbff AMD Features=3D0xc0480800 real memory =3D 804782080 (767 MB) avail memory =3D 778121216 (742 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 1 cpu1 (AP): APIC ID: 0 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) pci_link0: irq 5 on acpi0 pci_link1: irq 3 on acpi0 pci_link2: irq 11 on acpi0 pci_link3: irq 10 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff,0x8000-0x807f,0x8080-0x80ff iomem 0xd8000-0xdbfff on acpi0 pci0: on pcib0 agp0: port 0x1490-0x1493 mem 0xec000000-0xedffffff,0xea100000-0xea100fff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 pci0: at device 7.3 (no driver attached) ciss0: port 0x1000-0x10ff mem 0xe8100000-0xe813ffff,0xe8000000-0xe80fffff irq 20 at device 8.0 on pci0 ciss0: [GIANT-LOCKED] em0: port 0x1400-0x143f mem 0xe81c0000-0xe81dffff,0xe8140000-0xe817ffff irq 21 at device 9.0 on pci0 em0: Ethernet address: 00:04:23:ac:20:8a em0: Speed:N/A Duplex:N/A em1: port 0x1440-0x147f mem 0xe81e0000-0xe81fffff,0xe8180000-0xe81bffff irq 22 at device 9.1 on pci0 em1: Ethernet address: 00:04:23:ac:20:8b em1: Speed:N/A Duplex:N/A pcib2: at device 16.0 on pci0 pci2: on pcib2 atapci1: port 0x3010-0x3017,0x3004-0x3007,0x3008-0x300f,0x3000-0x3003,0x2000-0x20ff irq 16 at device 4.0 on pci2 ata2: on atapci1 ata3: on atapci1 atapci2: port 0x3028-0x302f,0x301c-0x301f,0x3020-0x3027,0x3018-0x301b,0x2400-0x24ff irq 16 at device 4.1 on pci2 ata4: on atapci2 ata5: on atapci2 atapci3: port 0x3040-0x3047,0x3034-0x3037,0x3038-0x303f,0x3030-0x3033,0x2800-0x28ff irq 19 at device 7.0 on pci2 ata6: on atapci3 ata7: on atapci3 atapci4: port 0x3058-0x305f,0x304c-0x304f,0x3050-0x3057,0x3048-0x304b,0x2c00-0x2cff irq 19 at device 7.1 on pci2 ata8: on atapci4 ata9: on atapci4 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A, console fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcafff,0xcb000-0xcefff,0xe0000-0xe3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=3D0x100> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: parallel port not found. sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert loadable, rule-based forwarding disabled, default to deny, logging unlimited ad0: 117800MB at ata0-master UDMA100 ad1: 117800MB at ata0-slave UDMA100 ad2: 117800MB at ata1-master UDMA100 ad3: 117800MB at ata1-slave UDMA100 ad4: 238475MB at ata2-master UDMA100 ad5: 238475MB at ata2-slave UDMA100 ad6: 239372MB at ata3-master UDMA133 ad7: 239372MB at ata3-slave UDMA133 ad8: 114473MB at ata4-master UDMA100 ad9: 117800MB at ata4-slave UDMA100 ad10: 194481MB at ata5-master UDMA133 ad11: 239372MB at ata5-slave UDMA133 ad12: 114473MB at ata6-master UDMA100 ad13: 114473MB at ata6-slave UDMA100 ad14: 194481MB at ata7-master UDMA133 ad15: 194481MB at ata7-slave UDMA133 ad16: 239372MB at ata8-master UDMA133 ad18: 117246MB at ata9-master UDMA133 ad19: 117246MB at ata9-slave UDMA133 da0 at ciss0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 device=20 da0: 135.168MB/s transfers da0: 105008MB (215056800 512 byte sectors: 255H 32S/T 26355C) da1 at ciss0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-0 device=20 da1: 135.168MB/s transfers da1: 486240MB (995821155 512 byte sectors: 255H 63S/T 61987C) ar0: 476950MB status: READY ar0: disk0 READY using ad4 at ata2-master ar0: disk1 READY using ad5 at ata2-slave ar1: 478744MB status: READY ar1: disk0 READY using ad6 at ata3-master ar1: disk1 READY using ad7 at ata3-slave ar2: 343420MB status: READY ar2: disk0 READY using ad12 at ata6-master ar2: disk1 READY using ad13 at ata6-slave ar2: disk2 READY using ad8 at ata4-master ar3: 351740MB status: READY ar3: disk0 READY using ad18 at ata9-master ar3: disk1 READY using ad19 at ata9-slave ar3: disk2 READY using ad9 at ata4-slave ar4: 583442MB status: READY ar4: disk0 READY using ad14 at ata7-master ar4: disk1 READY using ad15 at ata7-slave ar4: disk2 READY using ad10 at ata5-master ar5: 478744MB status: READY ar5: disk0 READY using ad11 at ata5-slave ar5: disk1 READY using ad16 at ata8-master SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/da0s1a