Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2018 09:14:41 -0600
From:      Alan Somers <asomers@freebsd.org>
To:        Eugene Grosbein <eugen@grosbein.net>
Cc:        Andriy Gapon <avg@freebsd.org>, "Eugene M. Zheganin" <eugene@zhegan.in>,  FreeBSD <freebsd-stable@freebsd.org>, freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: clear old pools remains from active vdevs
Message-ID:  <CAOtMX2hA5FdEFmRWiyU-8QAJyyM=TEgs4zguQVMEbtB=QWOT9g@mail.gmail.com>
In-Reply-To: <5AE1E414.4010408@grosbein.net>
References:  <b9e405dc-d3b3-af81-64b3-9e310988fa7c@zhegan.in> <92b45b63-48c0-e9fe-c7c8-3ff24f37bf1f@FreeBSD.org> <5AE1E414.4010408@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Apr 26, 2018 at 8:37 AM, Eugene Grosbein <eugen@grosbein.net> 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?
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>

"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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hA5FdEFmRWiyU-8QAJyyM=TEgs4zguQVMEbtB=QWOT9g>