Date: Mon, 13 Dec 2010 11:06:55 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Dmitry Morozovsky <marck@rinet.ru> Cc: freebsd-fs@FreeBSD.org Subject: Re: stale zpool: how to rename? Message-ID: <20101213100655.GC1740@garage.freebsd.pl> In-Reply-To: <alpine.BSF.2.00.1012092147200.88989@woozle.rinet.ru> References: <alpine.BSF.2.00.1012092147200.88989@woozle.rinet.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101213100655.GC1740>