From owner-freebsd-fs@FreeBSD.ORG Fri Dec 10 16:02:07 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCB111065670 for ; Fri, 10 Dec 2010 16:02:07 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-fx0-f49.google.com (mail-fx0-f49.google.com [209.85.161.49]) by mx1.freebsd.org (Postfix) with ESMTP id 429518FC18 for ; Fri, 10 Dec 2010 16:02:06 +0000 (UTC) Received: by fxm19 with SMTP id 19so3610864fxm.36 for ; Fri, 10 Dec 2010 08:02:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :organization:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=Kqi05quRFvHxc/7AZADrv6voj9rG2UJe/cdPiqwUhQw=; b=oj95D9/01Aq2oNNUO61PaCtDM+bcTk+N+k9IcBZCKZdlzaSJQySKQ4iQe5442zKRUB pSr+egxsPUZGn/xqK/1OXWT63ZWd05bjmuSLUp6pesOt47rhJ1J90FWp6cCUKv7OuMwS XMS20Qh83p2mHzXp39+WPMMfeYBPYr4ilD4Sg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:organization:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=K/Mc6Gh2zEHD5OZeW2aNPBbvEz9CQUOOT7ROdrdKp/WrHLtrR/PHHjJu98TVpiVqjh TVJCokZ/ZykW5bQBW9XLpnpCS8xzdxaa6gLsY5o7eMLrvBXNicuRNXG02T/aqAAcbui0 5eeM7YzjhYgzP8oVRgOTxwkPs9Spl6xj4fJhA= Received: by 10.223.122.133 with SMTP id l5mr1063574far.52.1291996926169; Fri, 10 Dec 2010 08:02:06 -0800 (PST) Received: from centel.dataix.local (adsl-99-19-45-101.dsl.klmzmi.sbcglobal.net [99.19.45.101]) by mx.google.com with ESMTPS id 5sm959559fak.23.2010.12.10.08.02.04 (version=SSLv3 cipher=RC4-MD5); Fri, 10 Dec 2010 08:02:05 -0800 (PST) Sender: "J. Hellenthal" Message-ID: <4D024EFA.7000801@DataIX.net> Date: Fri, 10 Dec 2010 11:02:02 -0500 From: jhell Organization: http://www.DataIX.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.12) Gecko/20101028 Lightning/1.0b1 Thunderbird MIME-Version: 1.0 To: Freddie Cash References: <20101209193027.GA10784@icarus.home.lan> In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, Dmitry Morozovsky Subject: Re: how to get rid of stale pool? [was (incorrect) stale zpool: how to rename?] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2010 16:02:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/10/2010 10:35, Freddie Cash wrote: > On Fri, Dec 10, 2010 at 6:25 AM, Dmitry Morozovsky wrote: >> On Thu, 9 Dec 2010, Jeremy Chadwick wrote: >> JC> > how can I clear stale traces of old pool? > > zero out the first and last MB of the disk. > > ZFS stores the GPT and other pool metadata in those two locations. > It's nowhere near a MB in size, but if you clear out the first and > last MB, you're guaranteed to clear out all traces of ZFS metadata. > To add to this as well you might try removing your cache file '/boot/zfs/zpool.cache' after exporting your existing currently working pool. PS: If this file exists after exporting your pool then it holds corrupt information. - -- jhell,v -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJNAk76AAoJEJBXh4mJ2FR+Lm0H+gP/E5nN5K9/M3OTyBIktlI+ J2gut5UgP4mzwnPCg9yB6firIEhag9MG2ZYgpsqA5bP/4jGkbxIOodjn3pmp0fPd 3/WSaYARg0LjwFikruR8L99DdSscLZ1C9yZzKSv/WcTv/BKLlb2KFBIm7nutrY1l pdITJ3MxfBf01oiJGcN9v0VIhp5SEPNWfvIkikk6N+6jdE/odpHajR0QlSOcUVLb bQHkEHRuMess5vPe1+tzL24W9LWjlb/NA1qbxB33R+CgBXymvRlfXYvMu/D76jks LUxK+AVnJ1N6GlVPAeSD94RHfL/mXT66gceE0MRsB0Y5R8177ubAnuQD5MDt7B0= =ZtbJ -----END PGP SIGNATURE-----