From owner-freebsd-fs@freebsd.org Thu Sep 29 12:24:56 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 05D3AC02E0D; Thu, 29 Sep 2016 12:24:56 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from lmtp.galacsys.net (webmail.galacsys.net [IPv6:2001:1b78:0:1:d918:51d7:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id C962266B; Thu, 29 Sep 2016 12:24:55 +0000 (UTC) (envelope-from martymac@FreeBSD.org) Received: from martymac.org (webmail.galacsys.net [217.24.81.215]) by lmtp.galacsys.net (Postfix) with ESMTP id 0F7171FA5CD3; Thu, 29 Sep 2016 14:24:54 +0200 (CEST) From: "Ganael LAPLANCHE" To: Ultima Cc: freebsd-current@freebsd.org,freebsd-fs@freebsd.org Subject: Re: zpool (online|replace|labelclear) issues, -f option also failing X-Openwebmail-Date: Thu, 29 Sep 2016 14:24:54 +0100 Message-Id: <20160929121325.M80322@martymac.org> In-Reply-To: References: X-Mailer: Open WebMail 2.01 20030425 X-OriginatingIP: 109.190.254.5 (ganael.laplanche@martymac.org) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 29 Sep 2016 12:24:56 -0000 X-List-Received-Date: Thu, 29 Sep 2016 12:24:56 -0000 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 http://www.martymac.org | http://contribs.martymac.org FreeBSD: martymac , http://www.FreeBSD.org