From owner-freebsd-fs@FreeBSD.ORG Thu Dec 9 19:30:41 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 AD63E106566B for ; Thu, 9 Dec 2010 19:30:41 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id 5BCDF8FC12 for ; Thu, 9 Dec 2010 19:30:40 +0000 (UTC) Received: from omta07.westchester.pa.mail.comcast.net ([76.96.62.59]) by qmta06.westchester.pa.mail.comcast.net with comcast id h6ew1f0051GhbT8567WhMD; Thu, 09 Dec 2010 19:30:41 +0000 Received: from koitsu.dyndns.org ([98.248.41.155]) by omta07.westchester.pa.mail.comcast.net with comcast id h7WV1f0063LrwQ23T7WZUK; Thu, 09 Dec 2010 19:30:40 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 93C7D9B427; Thu, 9 Dec 2010 11:30:27 -0800 (PST) Date: Thu, 9 Dec 2010 11:30:27 -0800 From: Jeremy Chadwick To: Dmitry Morozovsky Message-ID: <20101209193027.GA10784@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@FreeBSD.org Subject: Re: 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: Thu, 09 Dec 2010 19:30:41 -0000 On Thu, Dec 09, 2010 at 09:49:07PM +0300, Dmitry Morozovsky wrote: > Dear colleagues, > > how can I clear stale traces of old pool? > > [this is on fresh stable/8] > > Now I have: > > root@ogre2:~# zpool import > pool: og > id: 4146846692207551713 > state: UNAVAIL > status: One or more devices are missing from the system. > action: The pool cannot be imported. Attach the missing > devices and try again. > see: http://www.sun.com/msg/ZFS-8000-3C > config: > > og UNAVAIL insufficient replicas > mirror UNAVAIL insufficient replicas > da0 UNAVAIL cannot open > da1 UNAVAIL cannot open > root@ogre2:~# zpool status > pool: o > state: ONLINE > scrub: none requested > config: > > NAME STATE READ WRITE CKSUM > o ONLINE 0 0 0 > mirror ONLINE 0 0 0 > da0h ONLINE 0 0 0 > da1h ONLINE 0 0 0 > > errors: No known data errors > root@ogre2:~# zpool import -f og > cannot import 'og': no such pool or dataset > root@ogre2:~# zpool destroy og > cannot open 'og': no such pool Try using the "id" of the old pool, not the pool name. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |