Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jan 2011 12:19:00 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-stable@freebsd.org
Subject:   Re: Gpart and gmirror 8.2 from 18 januari
Message-ID:  <ihbq34$ahc$1@dough.gmane.org>
In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCBDD3043@w2003s01.double-l.local>
References:  <57200BF94E69E54880C9BB1AF714BBCBDD3043@w2003s01.double-l.local>

next in thread | previous in thread | raw e-mail | index | archive | help
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).





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ihbq34$ahc$1>