From owner-freebsd-stable@FreeBSD.ORG Fri Jan 21 11:19:17 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CE411065673 for ; Fri, 21 Jan 2011 11:19:17 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 25D468FC18 for ; Fri, 21 Jan 2011 11:19:16 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PgF1N-0001Wy-W2 for freebsd-stable@freebsd.org; Fri, 21 Jan 2011 12:19:13 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 12:19:13 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Jan 2011 12:19:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Ivan Voras Date: Fri, 21 Jan 2011 12:19:00 +0100 Lines: 38 Message-ID: References: <57200BF94E69E54880C9BB1AF714BBCBDD3043@w2003s01.double-l.local> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.12) Gecko/20101102 Thunderbird/3.1.6 In-Reply-To: <57200BF94E69E54880C9BB1AF714BBCBDD3043@w2003s01.double-l.local> X-Enigmail-Version: 1.1.2 Subject: Re: Gpart and gmirror 8.2 from 18 januari X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2011 11:19:17 -0000 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).