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

Dmitry Morozovsky marck at rinet.ru
Fri Dec 10 14:25:51 UTC 2010


On Thu, 9 Dec 2010, Jeremy Chadwick wrote:

JC> > how can I clear stale traces of old pool?
JC> > 
JC> > [this is on fresh stable/8]
JC> > 
JC> > Now I have:
JC> > 
JC> > root at ogre2:~# zpool import
JC> >   pool: og
JC> >     id: 4146846692207551713
JC> >  state: UNAVAIL
JC> > status: One or more devices are missing from the system.
JC> > action: The pool cannot be imported. Attach the missing
JC> >         devices and try again.
JC> >    see: http://www.sun.com/msg/ZFS-8000-3C
JC> > config:
JC> > 
JC> >         og          UNAVAIL  insufficient replicas
JC> >           mirror    UNAVAIL  insufficient replicas
JC> >             da0     UNAVAIL  cannot open
JC> >             da1     UNAVAIL  cannot open
JC> > root at ogre2:~# zpool status
JC> >   pool: o
JC> >  state: ONLINE
JC> >  scrub: none requested
JC> > config:
JC> > 
JC> >         NAME        STATE     READ WRITE CKSUM
JC> >         o           ONLINE       0     0     0
JC> >           mirror    ONLINE       0     0     0
JC> >             da0h    ONLINE       0     0     0
JC> >             da1h    ONLINE       0     0     0
JC> > 
JC> > errors: No known data errors
JC> > root at ogre2:~# zpool import -f og
JC> > cannot import 'og': no such pool or dataset
JC> > root at ogre2:~# zpool destroy og
JC> > cannot open 'og': no such pool
JC> 
JC> Try using the "id" of the old pool, not the pool name.

not much of luck:

root at ogre2:~# zpool destroy 4146846692207551713
cannot open '4146846692207551713': name must begin with a letter
root at ogre2:~# zpool import -f 4146846692207551713 og
cannot import 'og' as 'og': no such pool or dataset
root at ogre2:~# zpool import -f 4146846692207551713 ogbad
cannot import 'og' as 'ogbad': no such pool or dataset


-- 
Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
[ FreeBSD committer:                                 marck at FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-fs mailing list