From owner-freebsd-fs@FreeBSD.ORG Wed Nov 7 14:31:12 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 69514A28 for ; Wed, 7 Nov 2012 14:31:12 +0000 (UTC) (envelope-from prvs=16580431d0=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id EC1CC8FC14 for ; Wed, 7 Nov 2012 14:31:11 +0000 (UTC) Received: from r2d2 ([188.220.16.49]) by mail1.multiplay.co.uk (mail1.multiplay.co.uk [85.236.96.23]) (MDaemon PRO v10.0.4) with ESMTP id md50000979458.msg for ; Wed, 07 Nov 2012 14:31:10 +0000 X-Spam-Processed: mail1.multiplay.co.uk, Wed, 07 Nov 2012 14:31:10 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 188.220.16.49 X-Return-Path: prvs=16580431d0=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-fs@freebsd.org Message-ID: <8F907219A6904829A66E1E9A01696CF4@multiplay.co.uk> From: "Steven Hartland" To: "Johan Hendriks" , "Beeblebrox" References: <1352294866076-5758864.post@n5.nabble.com> <509A66D2.5060706@gmail.com> Subject: Re: [ZFS] How to fix corrupt ZDB Date: Wed, 7 Nov 2012 14:31:12 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Cc: freebsd-fs@freebsd.org 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: Wed, 07 Nov 2012 14:31:12 -0000 The way that zdb finds things can be dodgy, so while everything else is working zdb can often fail. If your tank is working ok and all devices are online then try:- zpool reguid This will rewrite all labels to the vdevs using current settings. Regards Steve ----- Original Message ----- From: "Johan Hendriks" To: "Beeblebrox" Cc: Sent: Wednesday, November 07, 2012 1:49 PM Subject: Re: [ZFS] How to fix corrupt ZDB > Beeblebrox schreef: >> I removed the HDD before deleting one of the zpools, then I added a ZIL >> device using gnop. Now I get multiple ashift values even though I have only >> 1 zpool (vdev): >> zdb mypool | grep ashift >> ashift: 9 >> ashift: 12 >> ashift: 9 >> ashift: 12 >> >> Looking through various ZDB functions has shown me that the previously >> removed pool is still in ZDB. But unfortunately the ZDB manual talks more >> about "status reporting" and not much about "error correction". >> >> Any ideas on how to correct/remove/delete faulty ZDB entries (other than >> re-install)? >> > Can you show the output of zpool status. > > gr > johan > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk.