bin/180861: gpart backup/restore doesn't restore labels
Andrey V. Elsukov
bu7cher at yandex.ru
Fri Jul 26 23:10:02 UTC 2013
The following reply was made to PR bin/180861; it has been noted by GNATS.
From: "Andrey V. Elsukov" <bu7cher at yandex.ru>
To: Garrett Cooper <yaneurabeya at gmail.com>
Cc: freebsd-gnats-submit at 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 <bu7cher at yandex.ru> 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
More information about the freebsd-bugs
mailing list