how to get rid of stale pool? [was (incorrect) stale zpool: how to rename?]

jhell jhell at DataIX.net
Fri Dec 10 16:02:07 UTC 2010


-----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 at 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-----


More information about the freebsd-fs mailing list