Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Feb 2011 06:55:06 -1000
From:      Clifton Royston <cliftonr@lava.net>
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:  <20110228165506.GA61412@lava.net>
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 06:23:10PM +0200, Marin Atanasov Nikolov 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.ht
> >> 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 gpart
> >> and gmirror the whole disk.
> >
> 
> I can confirm as well that I get kernel panic  if 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
> 
> And that's where I got kernel panic.
> 
> gpart'ing the disk and the mirroring the partitions works just as
> fine, but not when you mirror the whole disk.

  I think this only ever worked accidentally at best.  It would work
fine with the older fdisk-style disk partition because that doesn't
touch the end of the disk, but any time you tell two different programs
that they both have absolute control over the last sector on the disk
and can write critical data there - which is what this is doing -
that's begging for trouble.

  Something cleaner than a kernel panic would be *nice* however...  And
your point about warnings in the documentation is a good one.

  -- Clifton

-- 
    Clifton Royston  --  cliftonr@iandicomputing.com / cliftonr@lava.net
       President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110228165506.GA61412>