Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2011 08:55:40 -0800
From:      Freddie Cash <fjwcash@gmail.com>
To:        Marin Atanasov Nikolov <dnaeon@gmail.com>
Cc:        "Andrey V. Elsukov" <bu7cher@yandex.ru>, freebsd-stable@freebsd.org, Johan Hendriks <Johan@double-l.nl>
Subject:   Re: 8.2-RELEASE - gmirror and gpart issue. Metadata overlap?
Message-ID:  <AANLkTi=OEC8RuFFTZ7-WT9PQtS8KPAFPLA%2ByzzS0BB%2B8@mail.gmail.com>
In-Reply-To: <AANLkTinEr71fC-SjCcSBLEi=A1DXCot1yWaNd-QORGN6@mail.gmail.com>
References:  <AANLkTimsRDV=Z4Ansd2seWUGN7C7f-5SZB=6w13kAK%2BY@mail.gmail.com> <4D694336.3090203@yandex.ru> <57200BF94E69E54880C9BB1AF714BBCBDD318F@w2003s01.double-l.local> <4D6B96E4.1050709@yandex.ru> <AANLkTinEr71fC-SjCcSBLEi=A1DXCot1yWaNd-QORGN6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 28, 2011 at 8:23 AM, Marin Atanasov Nikolov
<dnaeon@gmail.com> wrote:
> 2011/2/28 Andrey V. Elsukov <bu7cher@yandex.ru>:
>> On 28.02.2011 11:54, Johan Hendriks wrote:
>>> I opened a discussion on this before the release.
>>> http://lists.freebsd.org/pipermail/freebsd-stable/2011-January/061184.h=
t
>>> ml
>>> On my 8.1 system, i get this message about the corrupt headers, but it
>>> booted on the 8.2 system it panics...
>>>
>>> I think a lot of people are going to get bit by this.
>>>
>>> As far as i know there is no warning anywhere that you can not use gpar=
t
>>> and gmirror the whole disk.
>>
>
> I can confirm as well that I get kernel panic =C2=A0if I gpart and then
> gmirror a disk on 8.2-RELEASE.
>
> To reproduce it, I just did the following:
>
> 1) Boot a system with a Fixit image
> 2) Remove all gpart partitions
> 3) gpart the first disk (ad0)
> 4) Restored my data to the partitions from backups
> 5) Reboot
> 6) gmirror the ad0 disk

The above process is operator error, as both your gpart and gmirror
commands are working on the same GEOM (ad0).  You need to stack /
layer your GEOMs (ie, do one operation on the disk, the other
operations on the sub-parts).

Either:
  1)  gmirror the disk (ad0), and then gpart the mirror device
(/dev/mirror/whatever), or
  2)  gpart the disk (ad0), and the mirror the partititons (/dev/gpt/whatev=
er)

The process you list above is the same as partitioning a disk (ad0),
and then newfs-ing the disk (ad0), and wondering where your partitions
went.  :)

(I believe option 1 above is what's causing issues in this thread.)

--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=OEC8RuFFTZ7-WT9PQtS8KPAFPLA%2ByzzS0BB%2B8>