From owner-freebsd-fs@FreeBSD.ORG Fri Jun 17 09:29:31 2011 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7191106567E for ; Fri, 17 Jun 2011 09:29:31 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6F40F8FC1E for ; Fri, 17 Jun 2011 09:29:31 +0000 (UTC) Received: by gyb13 with SMTP id 13so802964gyb.13 for ; Fri, 17 Jun 2011 02:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=0JAVTop1TKoIWFOLBHw9GnLXGNj6pllOCNztnX78nwc=; b=SWAB0mXYOQr/LnrUu/qb5Vg4jBzoBvNskRZKK3ZTlFmOIfmPv5th77+PtFRLjwQSbF zEFriwTRgCD8mQFtT/r1qLUsMJKv2ZYf3vXMt5s9ai6gU4RJ5Cg/KpqNyJ72F1y8g22+ Z2aTtTQ3w+4fMUBP5jb2m5RFzKyBVYwBGF978= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fMXcvf/DsxUtfC97LdvZmfWIEVCqc1gYgq5fSYsipnajk8o8FanwtcKI7t2modOXMy 5113WCA8/TPiVfwblJ+TtSScpSCsmRMM7dVBny0HGPGaoFfwu3GVq6bT5yLMh6zNX0xl 7G5mkscK6fuvXatUMSoDWLfn3j5/YyHlpl6gQ= MIME-Version: 1.0 Received: by 10.236.109.136 with SMTP id s8mr2652031yhg.306.1308301351010; Fri, 17 Jun 2011 02:02:31 -0700 (PDT) Received: by 10.236.102.178 with HTTP; Fri, 17 Jun 2011 02:02:30 -0700 (PDT) In-Reply-To: References: <4DF7CDD0.8040108@scsiguy.com> <20110615120524.GI1975@garage.freebsd.pl> <4DF8ACD3.1070202@scsiguy.com> Date: Fri, 17 Jun 2011 10:02:30 +0100 Message-ID: From: krad To: Per von Zweigbergk Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "Justin T. Gibbs" , Pawel Jakub Dawidek , fs@freebsd.org Subject: Re: [CFR][ZFS] Add "zpool labelclear" command. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jun 2011 09:29:31 -0000 On 15 June 2011 14:13, Per von Zweigbergk wrote: > We here at IT-assistans have found the ability to clear ZFS labels very > useful for testing. We have an internal utility written in-house to clear > ZFS labels. It's rather dumb and dangerous which is why I have chosen not to > publish it. (Oh, the irony of being held accountable for a utility designed > to cause data loss causing data loss.) Having a labelclear command with some > extra molly guards on it in the normal userspace ZFS commands would be > useful to us at least for > testing._______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > Its worth noting that its not necessarily a good idea to let zfs handle a raw disk. There is a good argument that you should partition/slice it up with a gig or so less capacity than the drive has.This is due to all drives X TB capacity not being equal. One block less and you new 2TB drive wont work in you existing array. Because of this I always manually gpt up my disk 1st. Therefore I only have to wipe the GPT label to clear the disk