Gpart and gmirror 8.2 from 18 januari
Ivan Voras
ivoras at freebsd.org
Fri Jan 21 11:19:17 UTC 2011
On 19/01/2011 12:30, Johan Hendriks wrote:
> Hello all, i used to have disk configured with gpart and gmirror.
>
>
>
> But with the latest 8.2, my server will not boot anymore if i label the
> disk with gmirror.
>
>
>
> Gpart status
>
> Name Status Components
>
> ad4p1 OK ad4
>
> Then i do a gmirror label -v -b load gm0 /dev/ad4
>
>
> Edit /etc/fstab
>
> And change /dev/ad4px to /dev/mirror/gm0px
>
>
> I reboot, and it hangs when tring to Mount the root device.
>
> I get an error about an corrupt gpt label.
Yes, GPT has the unfortunate property that it records its data both at
the beginning of a drive and at the end, so you cannot use it this way
(because gmirror wants the last sector for itself).
I haven't tried it but I think from the GPT specification that it
records where the secondary table is, so maybe you could do it the other
way around: first do a gmirror configuration, then create GPT partitions
within the gmirror device (i.e. on /dev/mirror/gm0, not on /dev/ad4).
More information about the freebsd-stable
mailing list