From owner-freebsd-fs@FreeBSD.ORG Tue Jun 3 09:13:08 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3C03106564A for ; Tue, 3 Jun 2008 09:13:08 +0000 (UTC) (envelope-from freebsd-fs@mindstep.com) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by mx1.freebsd.org (Postfix) with ESMTP id 71D288FC15 for ; Tue, 3 Jun 2008 09:13:08 +0000 (UTC) (envelope-from freebsd-fs@mindstep.com) Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 8F2A917F58C for ; Tue, 3 Jun 2008 11:13:07 +0200 (CEST) Received: from crest.mindstep.com (crest.mindstep.com [88.167.204.204]) by smtp8-g19.free.fr (Postfix) with ESMTP id 6F0F717F583 for ; Tue, 3 Jun 2008 11:13:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by kawa.mindstep.fr (Postfix) with ESMTP id 2C2161FFCF for ; Tue, 3 Jun 2008 10:53:59 +0200 (CEST) (envelope-from freebsd-fs@mindstep.com) X-Virus-Scanned: by amavisd-new on ZunoBox at kawa.mindstep.fr Received: from kawa.mindstep.fr ([127.0.0.1]) by localhost (kawa.mindstep.fr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lBVGZEY41DUv for ; Tue, 3 Jun 2008 10:53:58 +0200 (CEST) Received: from [192.168.25.13] (pickwick.mindstep.fr [192.168.25.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kawa.mindstep.fr (Postfix) with ESMTP id 0F1021FF4C for ; Tue, 3 Jun 2008 10:53:58 +0200 (CEST) (envelope-from freebsd-fs@mindstep.com) Message-ID: <48450B21.3080700@mindstep.com> Date: Tue, 03 Jun 2008 11:13:05 +0200 From: Patrick Bihan-Faou User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <4844F171.3000801@mindstep.com> <20080603081140.GA62607@eos.sc1.parodius.com> In-Reply-To: <20080603081140.GA62607@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: Booting a disk with gmirror and gjournal X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@mindstep.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2008 09:13:09 -0000 Jeremy Chadwick a écrit : > On Tue, Jun 03, 2008 at 09:23:29AM +0200, Patrick Bihan-Faou wrote: > >> Hi, >> >> I am trying to setup a system with one gjournal'ed partition mirrored on >> two disks using FreeBSD 6.3, and it does not work... >> >> Here is what I have routinely done so far: >> >> one partition, no journal, mirrored disks => I can have a working system. >> one partition, no mirror, journal => everything is ok >> >> but as soon as I try combine both gjournal and gmirror, I get stuck: once >> the system boots I get stuck at the F1 prompt and things do go any further. >> >> >> Could anybody help me with this ? >> >> Patrick. >> > > As far as I know, FreeBSD's bootloader doesn't understand how to handle > such things. > > Actually, the bootloader copes just fine with such a setup. I just didn't do things in the right order. Here is how I managed to get it going: # gmirror label -h gm0 ad0 # fdisk -I -B -v /dev/mirror/gm0 # bsdlabel -r -w /dev/mirror/gm0s1 auto # bsdlabel /dev/mirror/gm0s1 > bsdlabel.file ... edit the label to create one single a partition (and/or whatever ones need) # bsdlabel -R -B /dev/mirror/gm0s1 bsdlabel.file # gjournal label -f /dev/mirror/gm0s1a # newfs -L 'boothd' -J /dev/mirror/gm0s1a.journal ... on now install freebsd on /dev/mirror/gm0s1a.journal or /dev/ufs/boothd Sorry for the noise, my problem was due to not doing things in the right order. Patrick.