From owner-freebsd-hackers@FreeBSD.ORG Sat Feb 26 18:31:22 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 585FD1065670 for ; Sat, 26 Feb 2011 18:31:22 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward8.mail.yandex.net (forward8.mail.yandex.net [77.88.61.38]) by mx1.freebsd.org (Postfix) with ESMTP id 0227F8FC17 for ; Sat, 26 Feb 2011 18:31:21 +0000 (UTC) Received: from smtp8.mail.yandex.net (smtp8.mail.yandex.net [77.88.61.54]) by forward8.mail.yandex.net (Yandex) with ESMTP id 2B346F619B4; Sat, 26 Feb 2011 21:15:46 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1298744146; bh=BpT/QrOUKLBm0womk6DVZiXv4lL18htH8x5VXB2dqIQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type; b=jBnKJfDLoyRUAV3c0zJI5En2Cf+qJuzHRBofZKb3BVqGcxvj2KmtUc/axLHPCsvZD E60sufHxyjZkk97CarCqIIMqNCDgHayq5jIZqvRmk80Jm0gO9V58qC0mZFy7ghrYem dMTRgVea7EnWMplxfG3ZJDaccmSMsQwu32JyfwVs= Received: from [178.141.6.23] (dynamic-178-141-6-23.kirov.comstar-r.ru [178.141.6.23]) by smtp8.mail.yandex.net (Yandex) with ESMTPSA id D47FE41900B5; Sat, 26 Feb 2011 21:15:45 +0300 (MSK) Message-ID: <4D694336.3090203@yandex.ru> Date: Sat, 26 Feb 2011 21:15:18 +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: Marin Atanasov Nikolov References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1F430112FAE44C26722D253D" Cc: freebsd-hackers@freebsd.org, freebsd-stable@freebsd.org Subject: Re: 8.2-RELEASE - gmirror and gpart issue. Metadata overlap? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Feb 2011 18:31:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1F430112FAE44C26722D253D Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 26.02.2011 15:26, Marin Atanasov Nikolov wrote: > After a reboot I get this right before the FreeBSD bootloader starts: >=20 > gptboot: invalid GPT backup header >=20 > I suppose this error simply means that gpart can't find it's backup > header, because gmirror and gpart both are using the last sectors for > a provider to write it's metadata. This message is from gptboot. Loader does not know about your software mirror and it just checks GPT headers in the second and last LBA. As i see now, there is inconsistency in the behavior between gptboot and GEOM_PART_GPT. gptboot does reading of GPT backup header from the last LBA, but GEOM_PART_GPT from the alternate LBA which is not equal to last LBA in your case. > Which would mean that gmirror and gpart metadata overlap, and that's > why I see this message? No. > Anyway, I can still boot from the primary GPT header, and here's the > second message I get during boot: >=20 > GEOM: ad0: secondary GPT header is not in the last LBA. >=20 > Why does GEOM reports ad0, and not mirror/gm0 as the provider? I've > used the gmirror'ed device for gpart, not ad0. This is how GEOM tasting works. Do you have any problem except for those messages? What does not work? Also when you are writing problem report about gpart it will be not bad to add output of `gpart show` or `gpart list` commands. And `gmirror list` for GEOM_MIRROR. --=20 WBR, Andrey V. Elsukov --------------enig1F430112FAE44C26722D253D 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) iQEcBAEBAgAGBQJNaUNBAAoJEAHF6gQQyKF6Iw8H/0ogwxSIoc6fMui2kRIltYNk TNS6OePTMf1n1UnHcKsixkA8mdRxXj3gv7+2G2WyXyKQGCvNSnjz3QgrID+Mc1Rm WE1N7UyGVzxC2Jto7HYN5TisSEC0gj95laK481unGGKRUGeoeJaX0+mTIz8NU1eQ HruiPEjqC7Mx8Py9ZmiNhaVDjgrTQCpb7IIAEhwZVFGvzsC+0k0paKyJ/vAK6FEj pwf0NbyaMHacj5iPe0DgJmMmhNOBqtrBGrX0Lt1W51A3KIdUBfzzUjQoww9TsgMw FQ6tZg9HmJE1wTsGQo13l6XIr4etGNALD7swW2IvdMDtzor+SOnFqb9fHsoyh5k= =Ywvu -----END PGP SIGNATURE----- --------------enig1F430112FAE44C26722D253D--