From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 26 23:10:02 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 172EFE1A for ; Fri, 26 Jul 2013 23:10:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 024822565 for ; Fri, 26 Jul 2013 23:10:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r6QNA1Y4054258 for ; Fri, 26 Jul 2013 23:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r6QNA1Ow054257; Fri, 26 Jul 2013 23:10:01 GMT (envelope-from gnats) Date: Fri, 26 Jul 2013 23:10:01 GMT Message-Id: <201307262310.r6QNA1Ow054257@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Andrey V. Elsukov" Subject: Re: bin/180861: gpart backup/restore doesn't restore labels X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "Andrey V. Elsukov" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 23:10:02 -0000 The following reply was made to PR bin/180861; it has been noted by GNATS. From: "Andrey V. Elsukov" To: Garrett Cooper Cc: freebsd-gnats-submit@freebsd.org Subject: Re: bin/180861: gpart backup/restore doesn't restore labels Date: Sat, 27 Jul 2013 02:57:30 +0400 On 26.07.2013 23:18, Garrett Cooper wrote: > On Fri, Jul 26, 2013 at 3:03 AM, Andrey V. Elsukov wrote: >> On 26.07.2013 06:21, Garrett Cooper wrote: >>>> Description: >>> I'm rebuilding a GPT table from scratch which was previously mirrored, attempting using... >>> >>> gpart backup ada0 > /tmp/bk >>> gpart restore ada1 < /tmp/bk >>> >>> And noticed that it didn't restore the labels for the device when I ran `gpart list ada1`. >> >> You forgot to specify -l flag when restoring. But anyway it can't >> restore scheme specific labels, like gptids. > > Ack, ok. From a usability perspective though I would hope that -l > would default to on, not off. It caught me by surprise more than > anything else when the labels weren't present. It isn't on by default, because GEOM_LABELS doesn't like when different providers have the same labels. -- WBR, Andrey V. Elsukov