From owner-freebsd-stable@FreeBSD.ORG Thu Jun 13 12:40:24 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EA903213 for ; Thu, 13 Jun 2013 12:40:24 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) by mx1.freebsd.org (Postfix) with ESMTP id B3E911AB6 for ; Thu, 13 Jun 2013 12:40:24 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id d13so1020551qak.16 for ; Thu, 13 Jun 2013 05:40:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xyRf9OuDvEYu24t6cLwa/qxKCXOxUUE6FUdUbd7Ns6Q=; b=hcag0lykzA/qb7vnSXFGLK09m9Z/zhNntipU0793W5jIvKCy95ooYIJJbgJ3ngtmbJ vIyeEXUpt/oqEFezPMsBxyv1vaCtdJnabYY2CSY0XDHkMNsA8Bz7Mee1sgCczUkFiwIm 7CfFAm2xYWcNrWVZ0dHjhv7egXiRrLrp9tbN9cHdPEQqIIpquV6pfmtgNOGlK6XV7Ou8 DBSHpTjWpqnDnIAJZMuWfkdmYRuF4f9t3P5R42btVyuMt3p1USLwERzUy1r6KlK0GycZ HJR4SioDNqdHUh84LzgAjjMuWghOLj8cDUYlGinayRL1lhEdqoa6S1Hw1NnqkhmwqomD tGTA== MIME-Version: 1.0 X-Received: by 10.229.124.68 with SMTP id t4mr267976qcr.93.1371127224112; Thu, 13 Jun 2013 05:40:24 -0700 (PDT) Received: by 10.224.182.148 with HTTP; Thu, 13 Jun 2013 05:40:24 -0700 (PDT) In-Reply-To: <51B9BB14.6020103@gmail.com> References: <51B9BB14.6020103@gmail.com> Date: Thu, 13 Jun 2013 15:40:24 +0300 Message-ID: Subject: Re: zpool labelclear destroys GPT data From: Kimmo Paasiala To: Johan Hendriks Content-Type: text/plain; charset=UTF-8 Cc: freebsd-stable 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 12:40:25 -0000 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"