From owner-freebsd-current@FreeBSD.ORG Wed Oct 31 17:25:50 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C01E316A468 for ; Wed, 31 Oct 2007 17:25:50 +0000 (UTC) (envelope-from askbill@conducive.net) Received: from conducive.net (conducive.net [203.194.153.81]) by mx1.freebsd.org (Postfix) with ESMTP id 82C4313C4BC for ; Wed, 31 Oct 2007 17:25:50 +0000 (UTC) (envelope-from askbill@conducive.net) Received: from cm218-253-81-177.hkcable.com.hk ([218.253.81.177]:63695 helo=pb.local) by conducive.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1InGgr-000Hth-5K for freebsd-current@freebsd.org; Wed, 31 Oct 2007 16:45:13 +0000 Message-ID: <4728B114.80809@conducive.net> Date: Wed, 31 Oct 2007 12:45:08 -0400 From: =?UTF-8?B?6Z+T5a625qiZIEJpbGwgSGFja2Vy?= User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <00f101c819f7$833d5370$0c00a8c0@Artem> <20071031095213.GG8068@garage.freebsd.pl> <02af01c81bb9$7f7828a0$0c00a8c0@Artem> In-Reply-To: <02af01c81bb9$7f7828a0$0c00a8c0@Artem> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Problems with gjournal or something else. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2007 17:25:50 -0000 Artem Kuchin wrote: >>> Then did: >>> >>> newfs -J -b 8192 -f 1024 -g 50000 -h 20 -i 40960 /dev/twed1s1f >>> >>> gjournal load >>> gjournal label -f /dev/twed1s1f >>> tunefs -J enable -n disable /dev/twed1s1f >>> mount -o noatime /dev/twed1s1f.journal /NEW/suit >> >> It's wrong order. See gjournal(8) manual page, EXAMPLES section. You >> cannot create file system and then put journal on the same partition. >> gjournal would warn you about that, but you used force (-f) option. > > Here is what man says: > > Configure gjournaling on an existing file system, but only if gjournal > allows this (i.e.: if the last sector is not already used by the file > system): > > umount /dev/da0s1d > gjournal label da0s1d da0s1e > tunefs -J enable -n disable mount -o async /dev/da0s1d.journal /mnt > mount /dev/da0s1d /mnt > > However, this simple does not work. > gjournal label da0s1d da0s1e - WILL FAIL ON EXISTING FS! > Need to use -f switch for this. > > So, those whole thing will look like this > > 1: newfs /dev/da0s1d here we have our EXISTING filesyetm > 2: gjournal load > 3: gjournal label -f /dev/da0s1d 4: tunefs -J enable -n disable /dev/da0s1d > 5: mount -o async /dev/da0s1d.journal /mnt > > Now, when you start to fill /mnt you will get error=5 with offset out of > range > of the filesystem, beceause metadata for the filesystem is used from > /dev/da0s1f (step1) but gjournal used 1GB for the journal. > > This error goes away if i add additional step between 4 and 5 > 4.5: newfs /dev/da0s1d.journal > > question1: > > 4: tunefs -J enable -n disable /dev/da0s1d > really must be for /dev/da0s1d or for /dev/da0s1d.journal > > question2: > man says > gjournal label da0s1d da0s1e && tunefs -J enable -n disable && mount -o > async /dev/da0s1d.journal /mnt || mount /dev/da0s1d /mnt > > why there is no fs argument in tunefs? mistake? Ah .. does it not expect a raw block device / portion? With no (other) fs type? > what does > 'mount -o async /dev/da0s1d.journal /mnt || mount /dev/da0s1d /mnt; > mean? (note ||) > > A couple more questions: > 1) What size of journal to pick? > 2) How stable is the whole thing? > > -- > Artem > Added question .. Is this apparent conflict [ occuring | will occur] [because | if/as/when ] the device has already been given a geom family 'label'. My specific interest is gjournal & gmirror RAID combination(s) and how/if/which can/may come first. Or NOT. Thanx, Bill _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >