zpool (online|replace|labelclear) issues, -f option also failing

Ganael LAPLANCHE martymac at FreeBSD.org
Thu Sep 29 12:24:56 UTC 2016


On Wed, 28 Sep 2016 19:00:42 -0400, Ultima wrote

Hi Ultima,

> I really think the force (-f) flag needs a bump in power (for both
> replace and labelclear) [...].

In case you are interested, I have posted a patch to improve the 'zpool
labelclear' command here :

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204622

- force ('-f') will now allow to erase labels, even if they are broken
(restoring the behaviour of our previous -FreeBSD- version of labelclear)
- You can select which label you want to erase (beginning, end or
specific index)
- You can use a 'minimal' mode which will invalidate a label by changing
only a single byte. This is useful to minimize the chances to
overwrite/destroy a FS that would have been created over the label, but
still leaving the label visible.

Regards,

--
Ganael LAPLANCHE <ganael.laplanche at martymac.org>
http://www.martymac.org | http://contribs.martymac.org
FreeBSD: martymac <martymac at FreeBSD.org>, http://www.FreeBSD.org


More information about the freebsd-fs mailing list