Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 11:02:02 -0500
From:      jhell <jhell@DataIX.net>
To:        Freddie Cash <fjwcash@gmail.com>
Cc:        freebsd-fs@freebsd.org, Dmitry Morozovsky <marck@rinet.ru>
Subject:   Re: how to get rid of stale pool? [was (incorrect) stale zpool: how to rename?]
Message-ID:  <4D024EFA.7000801@DataIX.net>
In-Reply-To: <AANLkTikeZoSQxcYfrBQT3dYJemjdn_Mq-VAJrjMMu9mm@mail.gmail.com>
References:  <alpine.BSF.2.00.1012092147200.88989@woozle.rinet.ru> <20101209193027.GA10784@icarus.home.lan> <alpine.BSF.2.00.1012101724020.20527@woozle.rinet.ru> <AANLkTikeZoSQxcYfrBQT3dYJemjdn_Mq-VAJrjMMu9mm@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/10/2010 10:35, Freddie Cash wrote:
> On Fri, Dec 10, 2010 at 6:25 AM, Dmitry Morozovsky <marck@rinet.ru> wrote:
>> On Thu, 9 Dec 2010, Jeremy Chadwick wrote:
>> JC> > how can I clear stale traces of old pool?
> 
> zero out the first and last MB of the disk.
> 
> ZFS stores the GPT and other pool metadata in those two locations.
> It's nowhere near a MB in size, but if you clear out the first and
> last MB, you're guaranteed to clear out all traces of ZFS metadata.
> 

To add to this as well you might try removing your cache file
'/boot/zfs/zpool.cache' after exporting your existing currently working
pool.

PS: If this file exists after exporting your pool then it holds corrupt
information.

- -- 

 jhell,v
-----BEGIN PGP SIGNATURE-----

iQEcBAEBAgAGBQJNAk76AAoJEJBXh4mJ2FR+Lm0H+gP/E5nN5K9/M3OTyBIktlI+
J2gut5UgP4mzwnPCg9yB6firIEhag9MG2ZYgpsqA5bP/4jGkbxIOodjn3pmp0fPd
3/WSaYARg0LjwFikruR8L99DdSscLZ1C9yZzKSv/WcTv/BKLlb2KFBIm7nutrY1l
pdITJ3MxfBf01oiJGcN9v0VIhp5SEPNWfvIkikk6N+6jdE/odpHajR0QlSOcUVLb
bQHkEHRuMess5vPe1+tzL24W9LWjlb/NA1qbxB33R+CgBXymvRlfXYvMu/D76jks
LUxK+AVnJ1N6GlVPAeSD94RHfL/mXT66gceE0MRsB0Y5R8177ubAnuQD5MDt7B0=
=ZtbJ
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4D024EFA.7000801>