Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 17:25:49 +0300 (MSK)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        Jeremy Chadwick <freebsd@jdc.parodius.com>
Cc:        freebsd-fs@freebsd.org
Subject:   how to get rid of stale pool? [was (incorrect) stale zpool: how to rename?]
Message-ID:  <alpine.BSF.2.00.1012101724020.20527@woozle.rinet.ru>
In-Reply-To: <20101209193027.GA10784@icarus.home.lan>
References:  <alpine.BSF.2.00.1012092147200.88989@woozle.rinet.ru> <20101209193027.GA10784@icarus.home.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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@ogre2:~# zpool import -f og
JC> > cannot import 'og': no such pool or dataset
JC> > root@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@ogre2:~# zpool destroy 4146846692207551713
cannot open '4146846692207551713': name must begin with a letter
root@ogre2:~# zpool import -f 4146846692207551713 og
cannot import 'og' as 'og': no such pool or dataset
root@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@FreeBSD.org ]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1012101724020.20527>