From owner-freebsd-fs@FreeBSD.ORG Sat Dec 11 20:05:28 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 77EE11065670 for ; Sat, 11 Dec 2010 20:05:28 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id ECCDE8FC1D for ; Sat, 11 Dec 2010 20:05:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.4/8.14.4) with ESMTP id oBBK5Qx9004300; Sat, 11 Dec 2010 23:05:26 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Sat, 11 Dec 2010 23:05:26 +0300 (MSK) From: Dmitry Morozovsky To: Freddie Cash In-Reply-To: Message-ID: References: <20101209193027.GA10784@icarus.home.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (woozle.rinet.ru [0.0.0.0]); Sat, 11 Dec 2010 23:05:26 +0300 (MSK) Cc: freebsd-fs@freebsd.org 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: Sat, 11 Dec 2010 20:05:28 -0000 On Fri, 10 Dec 2010, Freddie Cash wrote: FC> On Fri, Dec 10, 2010 at 6:25 AM, Dmitry Morozovsky wrote: FC> > On Thu, 9 Dec 2010, Jeremy Chadwick wrote: FC> > JC> > how can I clear stale traces of old pool? FC> FC> zero out the first and last MB of the disk. FC> FC> ZFS stores the GPT and other pool metadata in those two locations. FC> It's nowhere near a MB in size, but if you clear out the first and FC> last MB, you're guaranteed to clear out all traces of ZFS metadata. well, bot what if I would have keep my existing pool on these disks? ;-) On the other hand, it's a mirror, and not too heavylu used, so I can remove second disk, clean it up, add it back, resilver, then do the same on the first one; however, it seems to be a bit more generic problem: stale pool referring no-longre-accessible devices seem to be unclearable... -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------