From owner-freebsd-doc@FreeBSD.ORG Thu Jun 7 07:17:19 2012 Return-Path: Delivered-To: doc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A9D2106566B; Thu, 7 Jun 2012 07:17:19 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by mx1.freebsd.org (Postfix) with ESMTP id AFEF48FC19; Thu, 7 Jun 2012 07:17:18 +0000 (UTC) Received: from kas30pipe.localhost (localhost.kirov.so-ups.ru [127.0.0.1]) by mail.kirov.so-ups.ru (Postfix) with SMTP id C4486B8026; Thu, 7 Jun 2012 11:17:12 +0400 (MSK) Received: from kirov.so-ups.ru (unknown [172.21.81.1]) by mail.kirov.so-ups.ru (Postfix) with ESMTP id BE955B8024; Thu, 7 Jun 2012 11:17:12 +0400 (MSK) Received: by ns.kirov.so-ups.ru (Postfix, from userid 1010) id B93A7BA03A; Thu, 7 Jun 2012 11:17:12 +0400 (MSK) Received: from [127.0.0.1] (unknown [10.118.3.52]) by ns.kirov.so-ups.ru (Postfix) with ESMTP id 81CC6B9FDB; Thu, 7 Jun 2012 11:17:12 +0400 (MSK) Message-ID: <4FD05573.70801@FreeBSD.org> Date: Thu, 07 Jun 2012 11:17:07 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Hiroki Sato References: <20120606.185023.497714372668376681.hrs@allbsd.org> <4FCF3021.5070802@FreeBSD.org> <20120606.200735.1551208261335301113.hrs@allbsd.org> In-Reply-To: <20120606.200735.1551208261335301113.hrs@allbsd.org> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig611EC6E34233A72122041D46" X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0284], KAS30/Release X-SpamTest-Info: Not protected Cc: doc@FreeBSD.org Subject: Re: Handbook mirroring section X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 07:17:19 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig611EC6E34233A72122041D46 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On 06.06.2012 15:07, Hiroki Sato wrote: > ae> 1. When geom_mirror module is not loaded GEOM_PART will complain th= at the > ae> backup GPT header is not in the last LBA and partition table will b= e marked > ae> as CORRUPT. The recover operation will destroy the GEOM_MIRROR's me= tadata. > ae> > ae> 2. If primary GPT header or table become damaged, then gptboot will= not > ae> detect GPT because the backup GPT header is not in the last LBA. So= , the > ae> system will not boot. >=20 > Thanks, I see. Do you think the attached patch is too aggressive for > the problem 2? The value of altlba should be matched with one in the > original secondary header when the primary header is corrupted and > the secondary header is looked up in this way. Yes, i also have thought about this and this should work for most GEOM cl= asses, but i revised again PMBR code and it seems that it will not work anyway := ) Our PMBR doesn't use backup GPT header and table, and it doesn't verify correctness of primary GPT. =46rom the other side, there are three situations when we use GPT: 1. FreeBSD is only one system on the disk and we use PMBR and gptboot to = boot it. In case if we will fix PMBR your patch will help. 2. FreeBSD is no one on the disk, but we still use legacy boot method (PM= BR+gptboot). I don't know what behavior have other systems when they detect invalid GP= T (i.e. when backup header is not in the last LBA). 3. We use UEFI (it is not work yet). Also i don't know what UEFI firmware will do with invalid GPT. --=20 WBR, Andrey V. Elsukov --------------enig611EC6E34233A72122041D46 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) iQEcBAEBAgAGBQJP0FV4AAoJEAHF6gQQyKF6R4AH+QGGVcGAu/oVRT/slQtxIi1V 07BSJ+a5YRvbLYonysH807SySjycy76aLM2WO5zMR03NYUH9Wz4sFn0XbXZdr7Sh 7LBPVuvl/8P6tKOuprbMUywXKggjIHKIJ5QQNDwEc43HTLaQ6N/ZeTHpdPFJJqs7 rZpDguH0PG07vV518JFKO5NudKblUv0j81auNFs2vJtv1cT/Y6DOSXKwH98R7L2M udEcNdchzvVTspE8LJvMFuvg+7x58eJlCJpyvpKtHxdLr6tRDfazdNaw/y7XgPnQ 2Y+o2tZx33CXi8WnOSwNBaOVnjkKfsoJs6097gj6ecNulezKuJvUHlRehSuT+9k= =Rx8+ -----END PGP SIGNATURE----- --------------enig611EC6E34233A72122041D46--