stale zpool: how to rename?
Jeremy Chadwick
freebsd at jdc.parodius.com
Thu Dec 9 19:30:41 UTC 2010
On Thu, Dec 09, 2010 at 09:49:07PM +0300, Dmitry Morozovsky wrote:
> Dear colleagues,
>
> how can I clear stale traces of old pool?
>
> [this is on fresh stable/8]
>
> Now I have:
>
> root at 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:
>
> og UNAVAIL insufficient replicas
> mirror UNAVAIL insufficient replicas
> da0 UNAVAIL cannot open
> da1 UNAVAIL cannot open
> root at ogre2:~# zpool status
> pool: o
> state: ONLINE
> scrub: none requested
> config:
>
> 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
>
> errors: No known data errors
> root at ogre2:~# zpool import -f og
> cannot import 'og': no such pool or dataset
> root at ogre2:~# zpool destroy og
> cannot open 'og': no such pool
Try using the "id" of the old pool, not the pool name.
--
| Jeremy Chadwick jdc at parodius.com |
| Parodius Networking http://www.parodius.com/ |
| UNIX Systems Administrator Mountain View, CA, USA |
| Making life hard for others since 1977. PGP: 4BD6C0CB |
More information about the freebsd-fs
mailing list