Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Dec 2014 13:11:01 +0100
From:      Christian Baer <christian.baer@uni-dortmund.de>
To:        freebsd-questions@freebsd.org
Subject:   getting rid of a zpool
Message-ID:  <m5urol$btp$1@ger.gmane.org>

next in thread | raw e-mail | index | archive | help
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@falbala:/dev # zpool list
NAME    SIZE  ALLOC   FREE   FRAG  EXPANDSZ    CAP  DEDUP  HEALTH  ALTROOT
home2   928G   252K   928G     0%         -     0%  1.00x  UNAVAIL  -
root@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m5urol$btp$1>