Handbook mirroring section

Hiroki Sato hrs at FreeBSD.org
Wed Jun 6 11:14:02 UTC 2012


"Andrey V. Elsukov" <ae at FreeBSD.org> wrote
  in <4FCF3021.5070802 at FreeBSD.org>:

ae> On 06.06.2012 13:50, Hiroki Sato wrote:
ae> >  Thanks, I will review the new version.
ae> >
ae> >  BTW, do you (or anyone) know the common failure pattern when trying
ae> >  to use GPT + gmirror of the whole disk?
ae>
ae> There was a warning from the gptboot about corrupted backup GPT header.
ae> But now the behavior has changed with r234692 and later it has been
ae> merged to stable. So, when you are doing all in the right way - it should work.
ae>
ae> But:
ae> 1. When geom_mirror module is not loaded GEOM_PART will complain that the
ae> backup GPT header is not in the last LBA and partition table will be marked
ae> as CORRUPT. The recover operation will destroy the GEOM_MIRROR's metadata.
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.

 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.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boot-gpt.20120606-1.diff
Type: text/x-patch
Size: 876 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20120606/f6710c07/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20120606/f6710c07/attachment.sig>


More information about the freebsd-doc mailing list