From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 18 09:20:12 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11B8F106564A for ; Fri, 18 Feb 2011 09:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C62848FC1B for ; Fri, 18 Feb 2011 09:20:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1I9KBUY026374 for ; Fri, 18 Feb 2011 09:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1I9KBgP026373; Fri, 18 Feb 2011 09:20:11 GMT (envelope-from gnats) Resent-Date: Fri, 18 Feb 2011 09:20:11 GMT Resent-Message-Id: <201102180920.p1I9KBgP026373@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Eugene Grosbein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0965C106564A for ; Fri, 18 Feb 2011 09:14:56 +0000 (UTC) (envelope-from eugen@k-45-pc-1.sd.rdtc.ru) Received: from k-45-pc-1.sd.rdtc.ru (k-45-pc-1.sd.rdtc.ru [62.231.160.109]) by mx1.freebsd.org (Postfix) with ESMTP id 609B88FC1A for ; Fri, 18 Feb 2011 09:14:55 +0000 (UTC) Received: from k-45-pc-1.sd.rdtc.ru (localhost [127.0.0.1]) by k-45-pc-1.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id p1I8aSS7087546 for ; Fri, 18 Feb 2011 14:36:28 +0600 (NOVT) (envelope-from eugen@k-45-pc-1.sd.rdtc.ru) Received: (from eugen@localhost) by k-45-pc-1.sd.rdtc.ru (8.14.4/8.14.4/Submit) id p1I8aNtY087545; Fri, 18 Feb 2011 14:36:23 +0600 (NOVT) (envelope-from eugen) Message-Id: <201102180836.p1I8aNtY087545@k-45-pc-1.sd.rdtc.ru> Date: Fri, 18 Feb 2011 14:36:23 +0600 (NOVT) From: Eugene Grosbein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/154860: [gmirror] [panic] geom_mirror panices system on specific sector contents X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2011 09:20:12 -0000 >Number: 154860 >Category: kern >Synopsis: [gmirror] [panic] geom_mirror panices system on specific sector contents >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 18 09:20:10 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Eugene Grosbein >Release: FreeBSD 8.2-PRERELEASE amd64 >Organization: RDTC JSC >Environment: System: FreeBSD k-45-pc-1.sd.rdtc.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #20: Fri Feb 18 13:08:00 NOVT 2011 root@k-45-pc-1.sd.rdtc.ru:/usr/local/obj/home/src/sys/PPPOE amd64 >Description: My 8.2-PRERELEASE/amd64 system has two HDDs: ad8 and ad14 having equal sector number: # atacontrol cap ad8 Protocol SATA revision 2.x device model WDC WD3200AAJS-00L7A0 serial number WD-WMAV2DP22862 firmware revision 01.03E01 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 625142448 sectors Both disks were combined to one gmirror /dev/mirror/gm0. After unclean system shutdown this mirror became dirty and started rebuilding process from ad8 to ad14. Meantime, background fsck started to repair /usr/local and /home simultaneously (they are mounted in fstab by UFS labels). I/O contention was high so I decided to remove ad14 from the mirror to speedup fsck hoping reinsert ad14 to the mirror later: gmirror remove gm0 ad14 Immediately I've got kernel panic and system rebooted at once. Then it paniced again just at the moment of gmirror initialization. And again, and again... So I was forced to use loader to disable loading of geom_mirror.ko and go to single user mode mounting root from ad14. I've attempted to load geom_mirror.ko from single user mode and it panices the system at once. So I've saved contents of last sector of ad8 and ad14 to files. Last sector of ad14 contained only zero bytes. Last sector of ad8 comes here gzipped and uuencoded. begin 644 sector.gz M'XL(`&8G7DT``W-W]?>ULO+U#`KR#V+X__\_"P,#0WJN`4,QIV$#D/L_8=>A M!;_E+R\I/!>6S@B48P`3#`(,#$P,<5=;O4`<)A!1=H6%`0&8&'"`!(B>RR^8 How-To-Repeat: 1. Perform unclean shutdown of system booting from gmirror to make it dirty. 2. After reboot, remove dirty component of gmirror (this paniced my system). 3. Then geom_mirror panices all the time until its signature erased from HDD. >Fix: Unknown. >Release-Note: >Audit-Trail: >Unformatted: