From owner-freebsd-bugs@FreeBSD.ORG Fri May 29 08:10:04 2009 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 DDD9610656A8 for ; Fri, 29 May 2009 08:10:04 +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 B5B2C8FC25 for ; Fri, 29 May 2009 08:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4T8A4MI068636 for ; Fri, 29 May 2009 08:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n4T8A4Ul068635; Fri, 29 May 2009 08:10:04 GMT (envelope-from gnats) Resent-Date: Fri, 29 May 2009 08:10:04 GMT Resent-Message-Id: <200905290810.n4T8A4Ul068635@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, Thomas Backman Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F08E4106571F for ; Fri, 29 May 2009 08:05:51 +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 C4BA58FC16 for ; Fri, 29 May 2009 08:05:51 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n4T85pP4080705 for ; Fri, 29 May 2009 08:05:51 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n4T85pAK080704; Fri, 29 May 2009 08:05:51 GMT (envelope-from nobody) Message-Id: <200905290805.n4T85pAK080704@www.freebsd.org> Date: Fri, 29 May 2009 08:05:51 GMT From: Thomas Backman To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/135050: ZFS clears/hides disk errors on 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: Fri, 29 May 2009 08:10:05 -0000 >Number: 135050 >Category: kern >Synopsis: ZFS clears/hides disk errors on reboot >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 29 08:10:04 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Thomas Backman >Release: 8.0-CURRENT, r192914 >Organization: exscape >Environment: FreeBSD clone.exscape.org 8.0-CURRENT FreeBSD 8.0-CURRENT #4 r192914: Thu May 28 08:56:46 CEST 2009 root@clone.exscape.org:/usr/obj/usr/src/sys/DTRACE amd64 >Description: (Not sure if this is kern or bin, but I'll take a shot.) When a disk is corrupted, "zpool status" hides the fact that there has ever been any corruption if the system is rebooted. In practice, this could lead to silent corruption (that is fixed by ZFS temporarily, while the disk is dying) without the using ever finding out. Quite bad. It should tell the user that there have been problems. zpool history -il shown nothing of interest either. >How-To-Repeat: (... create pool etc ...) [root@clone ~]# dd if=/dev/random of=/dev/ad2 bs=1000k count=5 seek=30 [root@clone ~]# zpool scrub test (... wait for a while ...) [root@clone ~]# zpool status -v test pool: test state: ONLINE status: One or more devices has experienced an unrecoverable error. An attempt was made to correct the error. Applications are unaffected. action: Determine if the device needs to be replaced, and clear the errors using 'zpool clear' or replace the device with 'zpool replace'. see: http://www.sun.com/msg/ZFS-8000-9P scrub: scrub completed after 0h2m with 0 errors on Fri May 29 09:52:50 2009 config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad1 ONLINE 0 0 0 ad2 ONLINE 0 0 79 4.94M repaired ad3 ONLINE 0 0 0 errors: No known data errors [root@clone ~]# reboot [root@clone ~]# zpool status -xv all pools are healthy [root@clone ~]# zpool status test pool: test state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM test ONLINE 0 0 0 raidz1 ONLINE 0 0 0 ad1 ONLINE 0 0 0 ad2 ONLINE 0 0 0 ad3 ONLINE 0 0 0 errors: No known data errors >Fix: >Release-Note: >Audit-Trail: >Unformatted: