getting rid of a zpool

Christian Baer christian.baer at uni-dortmund.de
Sat Dec 6 12:11:18 UTC 2014


Hello again!

As you might have guessed, I am walking a lot of new paths (at least they 
are new to me) and I hope you can bear with me when I ask my questions!

This is what I did (short version, left some options out):

gpart create -s GPT
gpart add -l home2 -t freebsd-zfs
geli init /dev/gpt/home2
geli attach /dev/gpt/home2
zpool create /dev/gpt/home2.eli

Everything worked fine until then. That es when I screw up. :-)
I noticed that I had forgotten to set two options for geli and wanted to 
change that. So I did this:

umount /dev/gpt/home2.eli
geli detach /dev/gpt/home2.eli
geli init /dev/gpt/home2.eli

As it seems, that was being very inconsiderate to zfs because it still 
thinks there is a pool out there - which is broken. I somehow cannot get rid 
of it:

root at falbala:/dev # zpool list
NAME    SIZE  ALLOC   FREE   FRAG  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
home2   928G   252K   928G     0%         -     0%  1.00x  UNAVAIL  -
root at falbala:/dev # zpool destroy home2
cannot open 'home2': pool I/O is currently suspended

The -f flag doesn't help btw.

Is there some way to get rid of this zpool entry and start from scratch?

Best regards,
Chris



More information about the freebsd-questions mailing list