From owner-freebsd-fs@FreeBSD.ORG Sat Feb 16 09:55:13 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 09995667 for ; Sat, 16 Feb 2013 09:55:13 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from graal.it-profi.org.ua (graal.shurik.kiev.ua [193.239.74.7]) by mx1.freebsd.org (Postfix) with ESMTP id 8FB42272 for ; Sat, 16 Feb 2013 09:55:12 +0000 (UTC) Received: from [93.183.237.30] (helo=thinkpad.it-profi.org.ua) by graal.it-profi.org.ua with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80.1 (FreeBSD)) (envelope-from ) id 1U6eU5-000Hzg-4m for freebsd-fs@freebsd.org; Sat, 16 Feb 2013 11:55:10 +0200 Message-ID: <511F5779.5030805@shurik.kiev.ua> Date: Sat, 16 Feb 2013 11:55:05 +0200 From: Alexandr Krivulya User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130210 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <511E1C6B.50101@shurik.kiev.ua> <511E30B3.2070302@brockmann-consult.de> In-Reply-To: <511E30B3.2070302@brockmann-consult.de> Content-Type: multipart/mixed; boundary="------------050809020106070702000508" X-SA-Exim-Connect-IP: 93.183.237.30 X-SA-Exim-Mail-From: shuriku@shurik.kiev.ua X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on graal.it-profi.org.ua X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 Subject: Re: error destroying zfs filesystem X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on graal.it-profi.org.ua) 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: Sat, 16 Feb 2013 09:55:13 -0000 This is a multi-part message in MIME format. --------------050809020106070702000508 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 15.02.2013 14:57, Peter Maloney пишет: > 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) All tests seems to be fine: root@gw:/usr/home/support # smartctl -l selftest /dev/ada0 smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RELEASE amd64] (local build) Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed without error 00% 1446 - root@gw:/usr/home/support # smartctl -l selftest /dev/ada1 smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RELEASE amd64] (local build) Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org === START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Extended offline Completed without error 00% 1630 smartctl also didn't show any problems, see attached file > 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. Now I cannot mount this filesystem to remove files: root@gw:/usr/home/support # zfs mount zmirror/usr cannot mount 'zmirror/usr': mountpoint or dataset is busy The only way I see is to backup entire pool, destroy and recreate it, and restore from a backup. --------------050809020106070702000508 Content-Type: text/plain; charset=UTF-8; name="smartctl.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smartctl.txt" cm9vdEBndzovdXNyL2hvbWUvc3VwcG9ydCAjIHNtYXJ0Y3RsIC1pQUggL2Rldi9hZGEwCnNt YXJ0Y3RsIDYuMCAyMDEyLTEwLTEwIHIzNjQzIFtGcmVlQlNEIDkuMS1SRUxFQVNFIGFtZDY0 XSAobG9jYWwgYnVpbGQpCkN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IEFsd2F5cyAgICAgICAtICAgICAgIDAKICA3IFNl ZWtfRXJyb3JfUmF0ZSAgICAgICAgIDB4MDAyZSAgIDIwMCAgIDIwMCAgIDAwMCAgICBPbGRf YWdlICAgQWx3YXlzICAgICAgIC0gICAgICAgMAogIDkgUG93ZXJfT25fSG91cnMgICAgICAg ICAgMHgwMDMyICAgMDk4ICAgMDk4ICAgMDAwICAgIE9sZF9hZ2UgICBBbHdheXMgICAgICAg LSAgICAgICAxNjQ5CiAxMCBTcGluX1JldHJ5X0NvdW50ICAgICAgICAweDAwMzIgICAxMDAg ICAyNTMgICAwMDAgICAgT2xkX2FnZSAgIEFsd2F5cyAgICAgICAtICAgICAgIDAKIDExIENh bGlicmF0aW9uX1JldHJ5X0NvdW50IDB4MDAzMiAgIDEwMCAgIDI1MyAgIDAwMCAgICBPbGRf YWdlICAgQWx3YXlzICAgICAgIC0gICAgICAgMAogMTIgUG93ZXJfQ3ljbGVfQ291bnQgICAg ICAgMHgwMDMyICAgMTAwICAgMTAwICAgMDAwICAgIE9sZF9hZ2UgICBBbHdheXMgICAgICAg LSAgICAgICAxMwoxOTIgUG93ZXItT2ZmX1JldHJhY3RfQ291bnQgMHgwMDMyICAgMjAwICAg MjAwICAgMDAwICAgIE9sZF9hZ2UgICBBbHdheXMgICAgICAgLSAgICAgICAxMgoxOTMgTG9h ZF9DeWNsZV9Db3VudCAgICAgICAgMHgwMDMyICAgMjAwICAgMjAwICAgMDAwICAgIE9sZF9h Z2UgICBBbHdheXMgICAgICAgLSAgICAgICAyCjE5NCBUZW1wZXJhdHVyZV9DZWxzaXVzICAg ICAweDAwMjIgICAxMTYgICAwOTUgICAwMDAgICAgT2xkX2FnZSAgIEFsd2F5cyAgICAgICAt ICAgICAgIDI3CjE5NiBSZWFsbG9jYXRlZF9FdmVudF9Db3VudCAweDAwMzIgICAyMDAgICAy MDAgICAwMDAgICAgT2xkX2FnZSAgIEFsd2F5cyAgICAgICAtICAgICAgIDAKMTk3IEN1cnJl bnRfUGVuZGluZ19TZWN0b3IgIDB4MDAzMiAgIDIwMCAgIDIwMCAgIDAwMCAgICBPbGRfYWdl ICAgQWx3YXlzICAgICAgIC0gICAgICAgMAoxOTggT2ZmbGluZV9VbmNvcnJlY3RhYmxlICAg MHgwMDMwICAgMTAwICAgMjUzICAgMDAwICAgIE9sZF9hZ2UgICBPZmZsaW5lICAgICAgLSAg ICAgICAwCjE5OSBVRE1BX0NSQ19FcnJvcl9Db3VudCAgICAweDAwMzIgICAyMDAgICAyMDAg ICAwMDAgICAgT2xkX2FnZSAgIEFsd2F5cyAgICAgICAtICAgICAgIDAKMjAwIE11bHRpX1pv bmVfRXJyb3JfUmF0ZSAgIDB4MDAwOCAgIDIwMCAgIDIwMCAgIDAwMCAgICBPbGRfYWdlICAg T2ZmbGluZSAgICAgIC0gICAgICAgMAogCg== --------------050809020106070702000508--