From owner-freebsd-stable@FreeBSD.ORG Mon Feb 28 17:50:44 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 4E787106566B for ; Mon, 28 Feb 2011 17:50:44 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward20.mail.yandex.net (forward20.mail.yandex.net [95.108.253.145]) by mx1.freebsd.org (Postfix) with ESMTP id B8BF58FC08 for ; Mon, 28 Feb 2011 17:50:43 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward20.mail.yandex.net (Yandex) with ESMTP id 661BA10415F4; Mon, 28 Feb 2011 20:50:42 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1298915442; bh=LwZ/8sM4WcgTRkuTrpyRmtdyjN7dhr4vhzuycK3xu0Y=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=ZmUkLzM6AUm5TrF5jik4LASw6hFNWSZ0SKSeLTEp3ag2O70gHYK6PzpXRO8c7Z3Ai 3xlO9T20uloTo8KfYxN7B33x7oSstXwHdlm4w9aAnVSnpxdWlFgPcjTjFu0qNXQ/in E22YZjXxgsl5K0mgrI7yMbcnZWrgAD/ypvIJlNH8= Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 58FB01900521; Mon, 28 Feb 2011 20:50:42 +0300 (MSK) Received: from dynamic-178-141-6-53.kirov.comstar-r.ru (dynamic-178-141-6-53.kirov.comstar-r.ru [178.141.6.53]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id ogMqWuvU; Mon, 28 Feb 2011 20:50:42 +0300 Authentication-Results: smtp17.mail.yandex.net; spf=softfail (smtp17.mail.yandex.net: transitioning domain of yandex.ru does not designate 178.141.6.53 as permitted sender) smtp.mail=bu7cher@yandex.ru Message-ID: <4D6BE061.6090102@yandex.ru> Date: Mon, 28 Feb 2011 20:50:25 +0300 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110122 Thunderbird/3.1.7 MIME-Version: 1.0 To: Joan Picanyol i Puig References: <4D694336.3090203@yandex.ru> <57200BF94E69E54880C9BB1AF714BBCBDD318F@w2003s01.double-l.local> <4D6B96E4.1050709@yandex.ru> <20110228142317.GC70900@grummit.biaix.org> In-Reply-To: <20110228142317.GC70900@grummit.biaix.org> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig9CC9412A8FDE2A68645AB8EF" Cc: freebsd-stable@freebsd.org 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 17:50:44 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9CC9412A8FDE2A68645AB8EF Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 28.02.2011 17:23, Joan Picanyol i Puig wrote: > http://lists.freebsd.org/pipermail/freebsd-geom/2010-July/004278.html >=20 > 1. glabeled discs > 2. two of this previous discs are gmirrored > 3. this mirror is gparted=20 >=20 > We got distracted by side issues, but I believe this issue is still > present, even though I have been unable to investigate further (it migh= t > well be that GPT specification is incompatible with gmirror'ed disks). > For your convinience the interesting bits from that thread are: >=20 > GEOM: da1: the secondary GPT table is corrupt or invalid. > GEOM: da1: using the primary only -- recovery suggested. >=20 > So, what explains the messages? gpart probes the disk before gmirro= r > (or at least it prints later on dmesg), but since the offset is in > the header, it should not even know about the gmirror + glabel part= =2E When you create gmirror on the whole disk you have got: whole disk da0 +----------------------------------------+----+ | mirror/gm0 | MD | +----------------------------------------+----+ MD - gmirror's metadata in the last sector of da0. Now when you create GPT on the mirror/gm0: mirror/gm0 +-+-----+--------------------------+-----+ | | GPT | | GPT | +-+-----+--------------------------+-----+ When mirror/gm0 provider is tasted all is good. You got mirror with GPT without any warnings. But when da0 provider is tasted you got this: da0 +-+-----+--------------------------+-----+----+ | | GPT | | GPT | | +-+-----+--------------------------+-----+----+ This provider has one sector in the end of the disk with unknown data, but there should be secondary GPT header. First of you got a message from gptboot about corrupt GPT. The second message is from GEOM_PART that it does not like that secondary GPT located not in the end of disk. This message > GEOM: da1: the secondary GPT table is corrupt or invalid. > GEOM: da1: using the primary only -- recovery suggested. does mean that your secondary GPT header or table is lost, or it is in disagree with primary one. AFAIR, it may mean different things in 8.1 and 8.2. --=20 WBR, Andrey V. Elsukov --------------enig9CC9412A8FDE2A68645AB8EF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBAgAGBQJNa+BhAAoJEAHF6gQQyKF6evsH/0sDvE2P0P4sgjuGOZDZro6j UJ0TSdUXP5M1G1LQWTtuCcQE9j4/MJosPRowfRUqwkX4OxWSwqgrFf8FNhDQgf4D 05MFSKRg50SAa62Lv5muYB/BvPIJTRHDSyhzPtwv/rX2J0Yf7rd0EKIBs+yOnaG7 QfoAc9+DRYo+uNtuAED6k7Cpj9GUESluV1YXXqbOxpgMT/lz/GJNHghiISUTS2vX c7aMiYcxXuHaz6g6x+M9IXyrVuZaL7bLiX9+RzSRKYy5XQtFhdvEpXovmdov9Tn8 gB8zYKLyY/iXoE1hoiAfIvIaKapBavHWplRviCNsTy+ZmwrGK1ox+y/U6UMQsqQ= =mYnI -----END PGP SIGNATURE----- --------------enig9CC9412A8FDE2A68645AB8EF--