From owner-freebsd-bugs@FreeBSD.ORG Sun Sep 12 16:30:05 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 401731065674 for ; Sun, 12 Sep 2010 16:30:05 +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 F0E018FC12 for ; Sun, 12 Sep 2010 16:30:04 +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 o8CGU45p007367 for ; Sun, 12 Sep 2010 16:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o8CGU4ev007366; Sun, 12 Sep 2010 16:30:04 GMT (envelope-from gnats) Resent-Date: Sun, 12 Sep 2010 16:30:04 GMT Resent-Message-Id: <201009121630.o8CGU4ev007366@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 B247D1065670 for ; Sun, 12 Sep 2010 16:26:56 +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 A14ED8FC13 for ; Sun, 12 Sep 2010 16:26:56 +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 o8CGQu2O069244 for ; Sun, 12 Sep 2010 16:26:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o8CGQurQ069212; Sun, 12 Sep 2010 16:26:56 GMT (envelope-from nobody) Message-Id: <201009121626.o8CGQurQ069212@www.freebsd.org> Date: Sun, 12 Sep 2010 16:26:56 GMT From: William FRANCK To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/150503: ZFS disks are UNAVAIL and corrupted after reboot 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 16:30:05 -0000 >Number: 150503 >Category: kern >Synopsis: ZFS disks are UNAVAIL and corrupted after reboot >Confidential: no >Severity: critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Sep 12 16:30:04 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: After just creating zpool , not even zfs volumes, ZFS is fine. After rebooting the system, all zfs disk are marked UNAVAIL. Tested with different disk formating : # dd if=/dev/zero of=/dev/ad4 bs=1m count=1 or # gpart create -s gpt ad8 # gpart add -b 34 -s 128 -t freebsd-boot ad8 # gpart add -b 162 -s 1465148973 -t freebsd-zfs ad8 Tested with and without any real data. After reboot : # zpool status pool: tank state: FAULTED status: One or more devices could not be used because the label is missing or invalid. There are insufficient replicas for the pool to continue functioning. action: Destroy and re-create the pool from a backup source. see: http://www.sun.com/msg/ZFS-8000-5E scrub: none requested config: NAME STATE READ WRITE CKSUM tank FAULTED 0 0 0 corrupted data raidz1 ONLINE 0 0 0 ad4p2 UNAVAIL 0 0 0 corrupted data ad8p2 UNAVAIL 0 0 0 corrupted data >How-To-Repeat: # zpool destroy tank CASE A (same apply for ad4 and ad8) : # gpart create -s gpt ad8 # gpart add -b 34 -s 128 -t freebsd-boot ad8 # gpart show ad8 # gpart add -b 162 -s 1465148973 -t freebsd-zfs ad8 # fdisk -a /dev/ad8 note : 1465148973 is the exact number reported by 'gpart show' or CASE B : # dd if=/dev/zero of=/dev/ad4 bs=1m count=1 # dd if=/dev/zero of=/dev/ad8 bs=1m count=1 AND FOLLOWING : # zpool create tank raidz ad4 ad8 # zfs create -p tank/ROOT/freebsd REBOOT # shutdown -r now (restared... login ... ) # zpool status >Fix: >Release-Note: >Audit-Trail: >Unformatted: