Re: `gpart show` and secondary GPT header

From: Marcel Moolenaar <xcllnt_at_mac.com>
Date: Sat, 13 Jun 2009 22:23:29 -0700
On Jun 13, 2009, at 6:03 PM, James R. Van Artsdalen wrote:

> Marcel Moolenaar wrote:
>>
>> On Jun 13, 2009, at 5:55 PM, James R. Van Artsdalen wrote:
>>
>>
>>> Jun 13 06:31:42 bigback kernel: GEOM: ad4: the secondary GPT table  
>>> is
>>> corrupt or invalid.
>>> Jun 13 06:31:42 bigback kernel: GEOM: ad4: using the primary only --
>>> recovery suggested.
>>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: the secondary GPT  
>>> table is
>>> corrupt or invalid.
>>> Jun 13 06:31:42 bigback kernel: GEOM: ad12: using the primary only  
>>> --
>>> recovery suggested.
>>
>> Are you using gmirror by any chance?
>
> Partitions 2-6 use gmirror.

Ok. Unrelated then. When gmirror is used on the whole
disk, then it's possible that you get this error. The
problem is that there's no guarantee that gpart tastes
always before or always after gmirror. If you put gpart
on top of gmirror, then gpart sees a disk that's 1
sector smaller than the disk gmirror sees. If gpart
gets to taste before gmirror, it won't find the backup
header in the last sector, because it's where gmirror
puts its metadata.

Mirroring partitions does not have this problem...

-- 
Marcel Moolenaar
xcllnt_at_mac.com
Received on Sun Jun 14 2009 - 03:23:36 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:49 UTC