From owner-freebsd-fs@FreeBSD.ORG Fri Dec 10 14:25:51 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 CD1E41065673 for ; Fri, 10 Dec 2010 14:25:51 +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 4E1F08FC0A for ; Fri, 10 Dec 2010 14:25:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.4/8.14.4) with ESMTP id oBAEPnBw021572; Fri, 10 Dec 2010 17:25:49 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 10 Dec 2010 17:25:49 +0300 (MSK) From: Dmitry Morozovsky To: Jeremy Chadwick In-Reply-To: <20101209193027.GA10784@icarus.home.lan> 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]); Fri, 10 Dec 2010 17:25:49 +0300 (MSK) Cc: freebsd-fs@freebsd.org Subject: 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 14:25:51 -0000 On Thu, 9 Dec 2010, Jeremy Chadwick wrote: JC> > how can I clear stale traces of old pool? JC> > JC> > [this is on fresh stable/8] JC> > JC> > Now I have: JC> > JC> > root@ogre2:~# zpool import JC> > pool: og JC> > id: 4146846692207551713 JC> > state: UNAVAIL JC> > status: One or more devices are missing from the system. JC> > action: The pool cannot be imported. Attach the missing JC> > devices and try again. JC> > see: http://www.sun.com/msg/ZFS-8000-3C JC> > config: JC> > JC> > og UNAVAIL insufficient replicas JC> > mirror UNAVAIL insufficient replicas JC> > da0 UNAVAIL cannot open JC> > da1 UNAVAIL cannot open JC> > root@ogre2:~# zpool status JC> > pool: o JC> > state: ONLINE JC> > scrub: none requested JC> > config: JC> > JC> > NAME STATE READ WRITE CKSUM JC> > o ONLINE 0 0 0 JC> > mirror ONLINE 0 0 0 JC> > da0h ONLINE 0 0 0 JC> > da1h ONLINE 0 0 0 JC> > JC> > errors: No known data errors JC> > root@ogre2:~# zpool import -f og JC> > cannot import 'og': no such pool or dataset JC> > root@ogre2:~# zpool destroy og JC> > cannot open 'og': no such pool JC> JC> Try using the "id" of the old pool, not the pool name. not much of luck: root@ogre2:~# zpool destroy 4146846692207551713 cannot open '4146846692207551713': name must begin with a letter root@ogre2:~# zpool import -f 4146846692207551713 og cannot import 'og' as 'og': no such pool or dataset root@ogre2:~# zpool import -f 4146846692207551713 ogbad cannot import 'og' as 'ogbad': no such pool or dataset -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------