From owner-freebsd-fs@FreeBSD.ORG Mon Dec 13 10:07:06 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 A997E106566C for ; Mon, 13 Dec 2010 10:07:06 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (60.wheelsystems.com [83.12.187.60]) by mx1.freebsd.org (Postfix) with ESMTP id 544738FC08 for ; Mon, 13 Dec 2010 10:07:05 +0000 (UTC) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id A9BEB45B36; Mon, 13 Dec 2010 11:07:03 +0100 (CET) Received: from localhost (pdawidek.whl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 70A4345684; Mon, 13 Dec 2010 11:06:58 +0100 (CET) Date: Mon, 13 Dec 2010 11:06:55 +0100 From: Pawel Jakub Dawidek To: Dmitry Morozovsky Message-ID: <20101213100655.GC1740@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lrZ03NoBR/3+SXJZ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 9.0-CURRENT amd64 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 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: Mon, 13 Dec 2010 10:07:06 -0000 --lrZ03NoBR/3+SXJZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 09, 2010 at 09:49:07PM +0300, Dmitry Morozovsky wrote: > Dear colleagues, >=20 > how can I clear stale traces of old pool? >=20 > [this is on fresh stable/8] >=20 > Now I have: >=20 > 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: >=20 > 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: >=20 > 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 You have stale ZFS metadata on da0 and da1, which are not really usable, but still detectable. And you have new pool on da[01]h. There is not much you can do apart of detaching one partition from the 'o' pool, clearing few first and few last megabytes on the disk, recreating partition, and reattaching it to the pool. Then repeating the operation with the other disk. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --lrZ03NoBR/3+SXJZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAk0F8D8ACgkQForvXbEpPzRdQwCgmDQ1n7yRA8jGrxBzU446RXxw F2wAoMzANLtusIzsIemIdT3NgPywm1rl =KVCm -----END PGP SIGNATURE----- --lrZ03NoBR/3+SXJZ--