From owner-freebsd-stable@FreeBSD.ORG Thu Jun 13 21:22:37 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 3185AD05 for ; Thu, 13 Jun 2013 21:22:37 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by mx1.freebsd.org (Postfix) with ESMTP id BF71E1370 for ; Thu, 13 Jun 2013 21:22:36 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id a12so6812065wgh.16 for ; Thu, 13 Jun 2013 14:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=3Z+eOh9pLNKOr8hejxIMEsCzFrdgknqQN3wyJU6APsY=; b=gVP0ZEG34XCac6iGnxyHWQw6BqYtaf016Kzhqy2dPN0UdOxBr9jnDahZ1Jurwz9agU eker8xTnNwQ1f33zpl4XqTUWyI6veheXHQLltdjZ4f8N9oKSCwo9RpC+EYbObYDjrePc 2N8J5R5lVWkeBbdHw6d6aT2f6Y7Itk7wxKbJ0UI6T3IZ10r+JwBBBw618syauemGi31E kJ5n/3mD1MeBZCjs6x77Yr/CEmoi0e1OBNwvw1rZEc7omjEjTL9mESst/ScTzC0Bp4ZI yiA8z9SNW9opf07YAghgz2sCAkN67Gz7iLXRPUSSGftMi6w5sKWg0D1C0JFzxrB4wCUC S+HQ== X-Received: by 10.180.198.194 with SMTP id je2mr8627504wic.36.1371158555877; Thu, 13 Jun 2013 14:22:35 -0700 (PDT) Received: from [192.168.1.20] (5ED0E470.cm-7-1d.dynamic.ziggo.nl. [94.208.228.112]) by mx.google.com with ESMTPSA id fu14sm34204991wic.0.2013.06.13.14.22.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Jun 2013 14:22:35 -0700 (PDT) Message-ID: <51BA381C.8070900@gmail.com> Date: Thu, 13 Jun 2013 23:22:36 +0200 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Kimmo Paasiala Subject: Re: zpool labelclear destroys GPT data References: <51B9BB14.6020103@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Jun 2013 21:22:37 -0000 Op 13-6-2013 14:40, Kimmo Paasiala schreef: > The 'device' can be a partition as well as the whole disk, use 'zpool > labelclear' on the freebsd-zfs partition instead of the whole disk. > > -Kimmo > > On Thu, Jun 13, 2013 at 3:29 PM, Johan Hendriks wrote: >> When i use zpool labelclear, it wipes the whole disk including gpt data. >> So the whole disk is empty and i need to create the gpt partitions again. >> >> Is this supposed to work like this? >> The man page suggests that it only wipes the ZFS metadata. >> >> zpool labelclear [-f] device >> >> Removes ZFS label information from the specified device. The device >> must not be part of an active pool configuration. >> >> -v Treat exported or foreign devices as inactive. >> >> This is on FreeBSD 9.1 stable r251213 memstick install. >> >> regards >> >> Johan Hendriks >> Neuteboom Automatisering >> _______________________________________________ >> freebsd-stable@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" Thanks for your reply. I will try it on the actual zfs partition. But imho it is a bad thing that it destroys the whole disk layout. It does not remove ZFS label information, it removes ALL label information on the disk or device you give it regards Johan Hendriks Neuteboom Automatisering