From owner-freebsd-stable@FreeBSD.ORG Mon Feb 28 16:55:42 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5741C1065781 for ; Mon, 28 Feb 2011 16:55:42 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yi0-f54.google.com (mail-yi0-f54.google.com [209.85.218.54]) by mx1.freebsd.org (Postfix) with ESMTP id 0BB448FC14 for ; Mon, 28 Feb 2011 16:55:41 +0000 (UTC) Received: by yie12 with SMTP id 12so836068yie.13 for ; Mon, 28 Feb 2011 08:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ySKw/TnXmsPGrMDnvNb4MUmykMJ/nbYNsmAobmP4MHk=; b=vNmPAm28n1NWPq/iS2PIzCXkVkVfI3XyKbTq/XQ+0llm0+VG/fqmZB5MBk6v7MS050 GgwkIGe8hfL7xMR6qNJfEJxyUP+Cgf/9bpCqYraTg5qtKuarBgcDp6pfOMp8rrHMbIjv 0yaiMlNnS+m5X4y9tamA4vdxVvdGFLsz0bc/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=fm/Nxpz5BxY74k+X37ZSaFr9AZOiWbfb+Ji9vNEf/R5BvXpU/4BKiE2srqhhk2Y/KG Z2TkiFdKptjF/lqQPbavqW9OuUDHyicN9OnNbGQMoN8o6VsUOp0CfGsd/rhxDYT7uf50 37tOMciXFYkx2ZcUOEtC5YVZJ3x8mPkxwNd6I= MIME-Version: 1.0 Received: by 10.91.81.13 with SMTP id i13mr7737646agl.118.1298912141037; Mon, 28 Feb 2011 08:55:41 -0800 (PST) Received: by 10.100.171.8 with HTTP; Mon, 28 Feb 2011 08:55:40 -0800 (PST) In-Reply-To: References: <4D694336.3090203@yandex.ru> <57200BF94E69E54880C9BB1AF714BBCBDD318F@w2003s01.double-l.local> <4D6B96E4.1050709@yandex.ru> Date: Mon, 28 Feb 2011 08:55:40 -0800 Message-ID: From: Freddie Cash To: Marin Atanasov Nikolov Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: "Andrey V. Elsukov" , freebsd-stable@freebsd.org, Johan Hendriks Subject: Re: 8.2-RELEASE - gmirror and gpart issue. Metadata overlap? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Feb 2011 16:55:42 -0000 On Mon, Feb 28, 2011 at 8:23 AM, Marin Atanasov Nikolov wrote: > 2011/2/28 Andrey V. Elsukov : >> 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