From owner-freebsd-fs@FreeBSD.ORG Thu Nov 8 06:34:58 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 04A8DED4 for ; Thu, 8 Nov 2012 06:34:58 +0000 (UTC) (envelope-from zaphod@berentweb.com) Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mx1.freebsd.org (Postfix) with ESMTP id D35C08FC08 for ; Thu, 8 Nov 2012 06:34:57 +0000 (UTC) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TWLhY-0004EO-QC for freebsd-fs@freebsd.org; Wed, 07 Nov 2012 22:34:56 -0800 Date: Wed, 7 Nov 2012 22:34:56 -0800 (PST) From: Beeblebrox To: freebsd-fs@freebsd.org Message-ID: <1352356496801-5759081.post@n5.nabble.com> In-Reply-To: <8F907219A6904829A66E1E9A01696CF4@multiplay.co.uk> References: <1352294866076-5758864.post@n5.nabble.com> <509A66D2.5060706@gmail.com> <8F907219A6904829A66E1E9A01696CF4@multiplay.co.uk> Subject: Re: [ZFS] How to fix corrupt ZDB MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: Thu, 08 Nov 2012 06:34:58 -0000 Hi everyone, thanks for the help / suggestions. Starting with Steve's suggestion: *# zpool reguid bsdr* Did not change the original ashift output for ZDB but resulted in all labels being erased: *# zdb -l ** -------------------------------------------- LABEL 0 -------------------------------------------- failed to read label 0 -------------------------------------------- LABEL 1 -------------------------------------------- failed to read label 1 -------------------------------------------- LABEL 2 -------------------------------------------- failed to read label 2 -------------------------------------------- LABEL 3 -------------------------------------------- failed to read label 3 (I suppose ZDB has multiple labels because I had re-created the root pool bsdr several times in the past year on the same HDD). This command also did not change the corrupt entry for an old pool: *# zdb -c ** zdb: can't open 'asp': No such file or directory Finally, *# zpool status* pool: bsdr state: ONLINE scan: scrub repaired 0 in 0h25m with 0 errors config: NAME STATE READ WRITE CKSUM bsdr ONLINE 0 0 0 ada0 ONLINE 0 0 0 logs ada1p9 ONLINE 0 0 0 errors: No known data errors -- View this message in context: http://freebsd.1045724.n5.nabble.com/ZFS-How-to-fix-corrupt-ZDB-tp5758864p5759081.html Sent from the freebsd-fs mailing list archive at Nabble.com.