From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 12 13:10:02 2010 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 A8D2A1065670 for ; Sun, 12 Sep 2010 13:10:02 +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 6B91C8FC16 for ; Sun, 12 Sep 2010 13:10:02 +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 o8CDA2UG097369 for ; Sun, 12 Sep 2010 13:10:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8CDA2pP097368; Sun, 12 Sep 2010 13:10:02 GMT (envelope-from gnats) Resent-Date: Sun, 12 Sep 2010 13:10:02 GMT Resent-Message-Id: <201009121310.o8CDA2pP097368@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, William FRANCK Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76F9A1065783 for ; Sun, 12 Sep 2010 13:08:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 4CB9C8FC13 for ; Sun, 12 Sep 2010 13:08:07 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8CD86dw006167 for ; Sun, 12 Sep 2010 13:08:06 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o8CD86Yg006166; Sun, 12 Sep 2010 13:08:06 GMT (envelope-from nobody) Message-Id: <201009121308.o8CD86Yg006166@www.freebsd.org> Date: Sun, 12 Sep 2010 13:08:06 GMT From: William FRANCK To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/150501: ZFS vdev failure vdev.bad_label on amd64 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: Sun, 12 Sep 2010 13:10:02 -0000 >Number: 150501 >Category: kern >Synopsis: ZFS vdev failure vdev.bad_label on amd64 >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 12 13:10:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: William FRANCK >Release: CURRENT 9.0 cvs 2010-09-12 >Organization: >Environment: FreeBSD serveur 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Sep 12 11:34:34 CEST 2010 root@serveur:/usr/obj/usr/src/sys/K9NSLI-AMD64 amd64 >Description: ZFS unusable just after a zpool scrub command. Symptoms : zpool scrub command hangs. no way to halt the system, still a PID running no way to kill -9 zpool Environment : AMD64 MSI K6N SLI motherboard. # atacontrol list ========== ATA channel 0: Master: ad0 ATA/ATAPI revision 5 Slave: ad1 ATA/ATAPI revision 6 ATA channel 2: Master: ad4 SATA revision 1.x ATA channel 4: Master: ad8 SATA revision 1.x # cat /boot/loader.conf =========== zfs_load="YES" # ZFS zpool_cache_type="/boot/zfs/zpool.cache" vfs.zfs.zil_disable="1" # !! avoid conflict between ZFS and NFS risk of data consistency ?? vfs.zfs.prefetch_disable="1" #Prefetch is disabled by default if less than 4GB of RAM is present; ### specific amd64 with 2MB of RAM ### vm.kmem_size="1024M" vm.kmem_size_max="1024M" vfs.zfs.arc_max="100M" After creating the ZFS Pool : # zpool status pool: tank state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 label/sata4 ONLINE 0 0 0 label/sata8 ONLINE 0 0 0 errors: No known data errors >How-To-Repeat: with 2 same SATA disks : ad4 , ad8 with or without geom labeling, with or without AHCI enabled (bios setting) do the following : # dd if=/dev/zero of=/dev/ad4 bs=1m count=1 # dd if=/dev/zero of=/dev/ad8 bs=1m count=1 optional : # glabel label sata4 /dev/ad4 # glabel label sata8 /dev/ad8 # zpool create tank [mirror | raidz]? [ label/sata4 | ad4] [ label/sata8 | ad8] # zpool status result is correct. # zpool scrub tank No output. # zpool scrub tank ... hangs ... Output on console : ZFS: vdev failure, zpool=tank type=vdev.bad_label >Fix: >Release-Note: >Audit-Trail: >Unformatted: