clear old pools remains from active vdevs

Andriy Gapon avg at
Thu Apr 26 15:59:09 UTC 2018

On 26/04/2018 18:14, Alan Somers wrote:
> On Thu, Apr 26, 2018 at 8:37 AM, Eugene Grosbein <eugen at
> <mailto:eugen at>> wrote:
>     26.04.2018 14:50, Andriy Gapon wrote:
>     > You can try to use zdb -l to find the stale labels.
>     > And then zpool labelclear to clear them.
>     Our "zpool labelclear" implementation destroys everything (literally).
>     Have you really tried it?

> "zpool labelclear" won't help in this case, because you have literally no
> devices with active labels.  The problem is that the pool is still in your
> /boot/zfs/zpool.cache file.  I think that plain "zpool destroy esx" will work in
> this case.

In the original message Eugene (Zheganin) mentioned that those phantom pools
confused the boot chain.  I do not think that anything in zpool.cache can do that.

Andriy Gapon

More information about the freebsd-fs mailing list