From owner-freebsd-fs@FreeBSD.ORG Fri Feb 15 12:57:25 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6820695A for ; Fri, 15 Feb 2013 12:57:25 +0000 (UTC) (envelope-from peter.maloney@brockmann-consult.de) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id EAE41A19 for ; Fri, 15 Feb 2013 12:57:24 +0000 (UTC) Received: from [10.3.0.26] ([141.4.215.32]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0M5IbP-1UpMWi2hLj-00zBfo; Fri, 15 Feb 2013 13:57:23 +0100 Message-ID: <511E30B3.2070302@brockmann-consult.de> Date: Fri, 15 Feb 2013 13:57:23 +0100 From: Peter Maloney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-fs@freebsd.org Subject: Re: error destroying zfs filesystem References: <511E1C6B.50101@shurik.kiev.ua> In-Reply-To: X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:dRaAKQIEe1L0VBr1BxQkA/r5PEXnmq4LdFoGHCtR4SC AoMNQTADj+/1b31kGYJfTBGEAQVpGhS4meyJyAX28Vwr7ib2nL g36dy3wr+4DsJxmVUfALBZafuSCJ8xJ+ICtL/L+MlSLQMNCKU2 Sb3XAWNbq3Iizny4swslO2zjlaqjuWPqA5c5h2V+/5vBM7+i02 0rk649GpVIx50KYLC2lztAWFJKdFjau2fpbUeJ17vRHwJjPARn GH1BoXjZ2EJgaYQbXxMTXFAWgVpVG0p8RqoCHjBk1S1XjXKe/N 4CwC3Muc46ACj0gRnebF0+lLDBswjNw8cEBpHtwNkTr942b9q7 LxDEOw8rj3hbFlyDgNyYY+rBo6GSRNrJF63YAVl2L X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2013 12:57:25 -0000 On 2013-02-15 13:44, Alexandr Kovalenko wrote: > On Fri, Feb 15, 2013 at 11:30 AM, Alexandr Krivulya > wrote: >> Hello everyone! >> >> After upgrading my zfs-only system from 8.2 to 9.1 I have many errors >> related to zfs in my /var/log/messages: >> >> Feb 15 13:12:44 gw kernel: metaslab_free_dva(): bad DVA >> 0:264842321920Solaris: WARNING: metaslab_free_dva(): bad DVA 0:338480095232 >> Feb 15 13:12:44 gw kernel: Solaris: WARNING: metaslab_free_dva(): bad >> DVA 0:277633901056Solaris: WARNING: >> Feb 15 13:12:45 gw kernel: metaslab_free_dva(): bad DVA >> 0:277263710208Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:277633606144Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:278349642240Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:278429099008Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:278349926400Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:278245378560Solaris: WARNING: metaslab_free_dva(): bad DVA >> 0:256838777344Solaris: WARNING: metaslab_free_dva(): bad DVA 0:327364684800 >> Feb 15 13:12:45 gw kernel: Solaris: WARNING: metaslab_free_dva(): bad >> DVA 0:312373604864 >> >> root@gw:/ # zpool status -v >> pool: zmirror >> state: ONLINE >> status: One or more devices has experienced an error resulting in data >> corruption. Applications may be affected. >> action: Restore the file in question if possible. Otherwise restore the >> entire pool from backup. >> see: http://illumos.org/msg/ZFS-8000-8A >> scan: scrub repaired 0 in 1h39m with 1 errors on Thu Feb 14 17:48:53 2013 >> config: >> >> NAME STATE READ WRITE CKSUM >> zmirror ONLINE 0 0 2 >> mirror-0 ONLINE 0 0 8 >> gpt/disk01 ONLINE 0 0 8 >> gpt/disk02 ONLINE 0 0 8 >> >> errors: Permanent errors have been detected in the following files: >> >> zmirror/usr:<0x0> >> <0xc8>:<0x0> > [dd] >> How can I solve this issue? > Make smartctl -t long /dev/ and then take a > look if there any pending sectors/errors in output of smartctl -a > /dev/ ? (for both of drives used) > You could also try going in /usr and "rm" or "truncate" some files until the "Permanent errors have been detected" list is empty. And this assumes you already ran a full scrub, which you must do to remove the files. -- -------------------------------------------- Peter Maloney Brockmann Consult Max-Planck-Str. 2 21502 Geesthacht Germany Tel: +49 4152 889 300 Fax: +49 4152 889 333 E-mail: peter.maloney@brockmann-consult.de Internet: http://www.brockmann-consult.de --------------------------------------------