From owner-freebsd-stable@FreeBSD.ORG Tue Jan 1 20:06:57 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B190C16A417 for ; Tue, 1 Jan 2008 20:06:57 +0000 (UTC) (envelope-from barnabasdk@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id 0F70A13C46E for ; Tue, 1 Jan 2008 20:06:56 +0000 (UTC) (envelope-from barnabasdk@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so3678588fgg.35 for ; Tue, 01 Jan 2008 12:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=PGmaqUMIcszbg+fpDiZdkJHk0iPekw/rDNB3WLC63KE=; b=IWEutaLQpe6j5FUAzjd2/ApjM2B+VaYILB30a9cPOEwpENnwCX15iXc84xQE2x5ocy8iGaJMsgZiELEyG5qmcwdadyQcosENpWj3k68disOWsuXPpXxDsEXQcZ+dLyp0Wna38v/qRqvbtlU0j2NreJiddY0CUnWCe8SfmDdKR04= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ieoD936r+3Om5LHtpHRHiNY0HXgWdN3hmn09hQxiYTrcMInePTMgxjbE66Fb6d+5BxHFduTVB7JrzBByjwvybTIuZgZH6Uuwp3JTaSdqoRuEKOR1B5dhjvfAimpPB+bFIBQy7EMplV37UJMka/8TwHe/OamH5BrFbhzrL0M7tgg= Received: by 10.86.77.5 with SMTP id z5mr718715fga.41.1199218015856; Tue, 01 Jan 2008 12:06:55 -0800 (PST) Received: by 10.86.72.6 with HTTP; Tue, 1 Jan 2008 12:06:55 -0800 (PST) Message-ID: <59d23e060801011206p2e715d57ha5d02b6457cb68b3@mail.gmail.com> Date: Tue, 1 Jan 2008 21:06:55 +0100 From: "Nikolaj Hansen" To: freebsd-stable@freebsd.org In-Reply-To: <59d23e060712271706v7dbbdee5v9dcb3f8c5d652b3a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <59d23e060712271706v7dbbdee5v9dcb3f8c5d652b3a@mail.gmail.com> Subject: Re: Failure of gvinum after panic X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jan 2008 20:06:57 -0000 Hi all, A fix is found. This is not pretty but worked for me. I did this since the attach command of the old vinum tool is not implemented in gvinum. Which would be nice. What I did: 1) snap the vinum config to a file. 2) delete the objects. 3) saveconfig 4) create the same objects again. 5) saveconfig 6) gvinum start here is some examples: #!/bin/sh gvinum rm var gvinum rm home gvinum rm usr gvinum rm var.p0 gvinum rm home.p0 gvinum rm usr.p0 gvinum rm var.p1 gvinum rm home.p1 gvinum rm usr.p1 gvinum rm var.p0.s0 gvinum rm home.p0.s0 gvinum rm usr.p0.s0 gvinum rm var.p1.s0 gvinum rm home.p1.s0 gvinum rm usr.p1.s0 # Vinum configuration of sauron.barnabas.dk, saved at Tue Sep 18 01:11:49 2007 # Current configuration: volume usr volume home volume var plex name usr.p1 org concat vol usr plex name home.p1 org concat vol home plex name var.p1 org concat vol var plex name usr.p0 org concat vol usr plex name home.p0 org concat vol home plex name var.p0 org concat vol var sd name usr.p1.s0 drive elben len 11521427s driveoffset 4505865s plex usr.p1 plexoffset 0s sd name home.p1.s0 drive elben len 2048000s driveoffset 2457865s plex home.p1 plexoffset 0s sd name var.p1.s0 drive elben len 1228800s driveoffset 265s plex var.p1 plexoffset 0s sd name usr.p0.s0 drive donau len 11521427s driveoffset 4505865s plex usr.p0 plexoffset 0s sd name home.p0.s0 drive donau len 2048000s driveoffset 2457865s plex home.p0 plexoffset 0s sd name var.p0.s0 drive donau len 1228800s driveoffset 265s plex var.p0 plexoffset 0s regards Nikolaj Hansen On Dec 28, 2007 2:06 AM, Nikolaj Hansen wrote: > Hi all, > > I have some problems with my gvinum setup after the system panic'ed. > Afterwards the system fails finding the plexes to the subdisks (or at > least that is what I can understand after having searched the gvinum > source code for the error string in the DMESG log..) > > The machine is an IBM Netfinity 5000 and the internal HW self tests > does not find any errors in the hw. > > Luckily my root is not on a gvinum drive, so I am able to boot the > server in single user. > > Does anyone have any hints as to what I can do to get gvinum to > recognize the disks correctly? > > The system is 6.3 stable > > Dont worry about the media disks or anything right now - I am trying > to revive the system disks for now. > > Thanks > > Nikolaj Hansen > > 7 drives: > D elben State: up /dev/da1s1h A: 0/7825 MB (0%) > D donau State: up /dev/da0s1h A: 0/7825 MB (0%) > D raid5_4_ad11 State: up /dev/ad11 A: 6/194480 MB (0%) > D raid5_3_ad10 State: up /dev/ad10 A: 6/194480 MB (0%) > D raid5_2_ad9 State: up /dev/ad9 A: 6/194480 MB (0%) > D raid5_1_ad8 State: up /dev/ad8 A: 6/194480 MB (0%) > D spree State: up /dev/ad4a A: 3/114473 MB (0%) > > 6 volumes: > V data01 State: up Plexes: 1 Size: 111 GB > V usr State: up Plexes: 0 Size: 0 B > V home State: up Plexes: 0 Size: 0 B > V tmp State: up Plexes: 0 Size: 0 B > V var State: up Plexes: 0 Size: 0 B > V media State: up Plexes: 1 Size: 379 GB > > 10 plexes: > P data01.p0 C State: up Subdisks: 1 Size: 111 GB > P usr.p1 C State: up Subdisks: 0 Size: 0 B > P home.p1 C State: up Subdisks: 0 Size: 0 B > P tmp.p1 C State: up Subdisks: 0 Size: 0 B > P var.p1 C State: up Subdisks: 0 Size: 0 B > P usr.p0 C State: up Subdisks: 0 Size: 0 B > P home.p0 C State: up Subdisks: 0 Size: 0 B > P tmp.p0 C State: up Subdisks: 0 Size: 0 B > P var.p0 C State: up Subdisks: 0 Size: 0 B > P media.p0 R5 State: degraded Subdisks: 3 Size: 379 GB > > 13 subdisks: > S data01.p0.s0 State: up D: spree Size: 111 GB > S usr.p1.s0 State: up D: elben Size: 5625 MB > S home.p1.s0 State: up D: elben Size: 1000 MB > S tmp.p1.s0 State: up D: elben Size: 600 MB > S var.p1.s0 State: up D: elben Size: 600 MB > S usr.p0.s0 State: up D: donau Size: 5625 MB > S home.p0.s0 State: up D: donau Size: 1000 MB > S tmp.p0.s0 State: up D: donau Size: 600 MB > S var.p0.s0 State: up D: donau Size: 600 MB > S media.p0.s0 State: up D: raid5_1_ad8 Size: 189 GB > S media.p0.s1 State: up D: raid5_2_ad9 Size: 189 GB > S media.p0.s2 State: stale D: raid5_3_ad10 Size: 189 GB > S media.p0.s3 State: up D: raid5_4_ad11 Size: 189 GB > > Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. > FreeBSD 6.2-RELEASE-p6 #0: Wed Jul 18 23:33:58 CEST 2007 > root@sauron.barnabas.dk:/usr/src/sys/i386/compile/KERNEL_6_2 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Pentium III/Pentium III Xeon/Celeron (498.67-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x673 Stepping = 3 > Features=0x387fbff > real memory = 536854528 (511 MB) > avail memory = 515715072 (491 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 > kbd1 at kbdmux0 > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xfe88-0xfe8b on acpi0 > cpu0: on acpi0 > cpu1: on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > skc0: <3Com 3C940 Gigabit Ethernet> port 0x2000-0x20ff mem > 0xfebfc000-0xfebfffff irq 18 at device 1.0 on pci0 > skc0: 3Com Gigabit NIC (3C2000) rev. (0x1) > sk0: on skc0 > sk0: Ethernet address: 00:0a:5e:5c:c0:83 > miibus0: on sk0 > e1000phy0: on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto > ahc0: port 0x2200-0x22ff mem > 0xfebfb000-0xfebfbfff irq 16 at device 6.0 on pci0 > ahc0: [GIANT-LOCKED] > aic7895C: Ultra Wide Channel A, SCSI Id=7, 32/253 SCBs > ahc1: port 0x2300-0x23ff mem > 0xfebfa000-0xfebfafff irq 16 at device 6.1 on pci0 > ahc1: [GIANT-LOCKED] > aic7895C: Ultra Wide Channel B, SCSI Id=15, 32/253 SCBs > s3pci0: port 0x3c0-0x3df,0x4ae8 mem > 0xf8000000-0xfbffffff irq 9 at device 10.0 on pci0 > isab0: port 0xfe00-0xfe0f at device 15.0 on pci0 > isa0: on isab0 > atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376 irq 18 at device 15.1 on pci0 > ata0: on atapci0 > ata1: on atapci0 > ohci0: mem 0xff700000-0xff700fff irq > 18 at device 15.2 on pci0 > ohci0: [GIANT-LOCKED] > usb0: OHCI version 1.0, legacy support > usb0: on ohci0 > usb0: USB revision 1.0 > uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > pcib1: on acpi0 > pci1: on pcib1 > atapci1: port > 0x4af0-0x4af7,0x4aec-0x4aef,0x4af8-0x4aff,0x4b00-0x4b03,0x4b10-0x4b1f > irq 19 at device 2.0 on pci1 > ata2: on atapci1 > ata3: on atapci1 > atapci2: port > 0x4b08-0x4b0f,0x4b04-0x4b07,0x4b20-0x4b27,0x4b28-0x4b2b,0x4b30-0x4b3f > mem 0xc0fdc000-0xc0fdffff irq 19 at device 3.0 on pci1 > ata4: on atapci2 > ata5: on atapci2 > atkbdc0: port 0x60,0x64 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > fdc0: port 0x3f2-0x3f7,0x3f7 irq 6 drq 2 on acpi0 > fdc0: No FDOUT register! > device_attach: fdc0 attach returned 6 > ppc0: port 0x378-0x37f,0x778-0x77f irq 7 > drq 1 on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/8 bytes threshold > ppbus0: on ppc0 > ppbus0: IEEE1284 device found /NIBBLE/ECP > Probing for PnP devices on ppbus0: > ppbus0: MLC,PCL,PML > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > sio0: type 16550A > sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 > sio1: type 16550A > fdc0: port 0x3f2-0x3f7,0x3f7 irq 6 drq 2 on acpi0 > fdc0: No FDOUT register! > device_attach: fdc0 attach returned 6 > pmtimer0 on isa0 > orm0: at iomem > 0xc0000-0xc7fff,0xc8000-0xccfff,0xcd000-0xcd7ff,0xcd800-0xd17ff,0xd1800-0xd3fff > on isa0 > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > umass0: Kingston DataTraveler II, rev 2.00/1.00, addr 2 > Timecounters tick every 1.000 msec > ad4: 114473MB at ata2-master UDMA100 > ad6: 114473MB at ata3-master UDMA100 > ad8: 194481MB at ata4-master UDMA100 > ad9: 194481MB at ata4-slave UDMA100 > ad10: 194481MB at ata5-master UDMA100 > ad11: 194481MB at ata5-slave UDMA100 > Waiting 5 seconds for SCSI devices to settle > gv_plex_taste: NULL p for 'media.p0.s3' > ses0 at ahc1 bus 0 target 14 lun 0 > ses0: Fixed Processor SCSI-2 device > ses0: 3.300MB/s transfers > ses0: SAF-TE Compliant Device > da0 at ahc1 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-2 device > da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled > da0: 8678MB (17774160 512 byte sectors: 255H 63S/T 1106C) > da1 at ahc1 bus 0 target 1 lun 0 > da1: Fixed Direct Access SCSI-3 device > da1: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled > da1: 8678MB (17774160 512 byte sectors: 255H 63S/T 1106C) > SMP: AP CPU #1 Launched! > da2 at umass-sim0 bus 0 target 0 lun 0 > da2: Removable Direct Access SCSI-0 device > da2: 1.000MB/s transfers > da2: 983MB (2014208 512 byte sectors: 64H 32S/T 983C) > gv_plex_taste: NULL p for 'var.p0.s0' > gv_plex_taste: NULL p for 'tmp.p0.s0' > gv_plex_taste: NULL p for 'home.p0.s0' > gv_plex_taste: NULL p for 'usr.p0.s0' > gv_plex_taste: NULL p for 'var.p1.s0' > gv_plex_taste: NULL p for 'tmp.p1.s0' > gv_plex_taste: NULL p for 'home.p1.s0' > gv_plex_taste: NULL p for 'usr.p1.s0' > Trying to mount root from ufs:/dev/da0s1a > WARNING: / was not properly dismounted > WARNING: R/W mount of / denied. Filesystem is not clean - run fsck > > Subdisk usr.p0.s0: > Size: 5898970624 bytes (5625 MB) > State: up > Drive donau (donau) at offset 2307002880 (2200 MB) > > /dev/da0s1b none swap sw 0 0 > /dev/da1s1b none swap sw 0 0 > /dev/da0s1a / ufs rw 1 5 > /dev/gvinum/home /home ufs rw 2 5 > /dev/da1s1a /rootback ufs rw 2 6 > /dev/gvinum/tmp /tmp ufs rw 2 1 > /dev/gvinum/usr /usr ufs rw 2 2 > /dev/gvinum/var /var ufs rw 2 3 > /dev/cd0 /cdrom cd9660 ro,noauto 0 0 > /dev/acd0 /cdrom1 cd9660 ro,noauto 0 0 > #/dev/ad6s1 /mnt/media ufs rw 1 1 > #/dev/gvinum/data01 /mnt/data2 ufs rw,noauto 0 0 > #/dev/gvinum/media /mnt/media ufs rw,noauto 1 4 >