From owner-freebsd-current@FreeBSD.ORG Fri Nov 9 15:47:38 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 5547A16A41A; Fri, 9 Nov 2007 15:47:38 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (unknown [IPv6:2001:41d0:1:2ad2::1]) by mx1.freebsd.org (Postfix) with ESMTP id B373713C4B8; Fri, 9 Nov 2007 15:47:37 +0000 (UTC) (envelope-from hlh@restart.be) Received: from restart.be (avoriaz.tunnel.bel [IPv6:2001:41d0:1:2ad2::fffe:0]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "avoriaz.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTP id 931111BAC32; Fri, 9 Nov 2007 16:47:36 +0100 (CET) Received: from morzine.restart.bel (morzine6.restart.bel [IPv6:2001:41d0:1:2ad2::1:2]) (authenticated bits=0) by restart.be (8.14.1/8.14.1) with ESMTP id lA9FlW3w099639; Fri, 9 Nov 2007 16:47:32 +0100 (CET) (envelope-from hlh@restart.be) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=restart.be; s=avoriaz; t=1194623256; bh=Mrv3o4yKK6083W3HQXMkkehY9lz7VTTmkhd8y7H 0e5Q=; h=DomainKey-Signature:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:X-Scanned-By; b=C9H//1oIM8c Cq6K5ReShgvzsn6lmTvDicPdpwIOq5ACor2KXWbEOymV0ElP24BDB7nuujr6+fVhxFA i1EoiaCg== DomainKey-Signature: a=rsa-sha1; s=avoriaz; d=restart.be; c=nofws; q=dns; h=message-id:date:from:organization:user-agent:mime-version:to:cc: subject:references:in-reply-to:content-type: content-transfer-encoding:x-scanned-by; b=1H0F+AscEEPA29ne1ARUYcV2xyV3cDrgKjRixWmghjWcf4P8kyXDnWI4fJmucVgIT Zo1EIKOpnAEmfyTKESp9A== Message-ID: <47348114.4030005@restart.be> Date: Fri, 09 Nov 2007 16:47:32 +0100 From: Henri Hennebert Organization: RestartSoft User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: Artem Kuchin References: <046501c82190$815ecca0$0c00a8c0@Artem><001701c8223d$df3aeef0$0c00a8c0@Artem> <20071108194655.GD18314@darklight.org.ru> <002001c82241$0b722df0$0c00a8c0@Artem> In-Reply-To: <002001c82241$0b722df0$0c00a8c0@Artem> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.63 on IPv6:2001:41d0:1:2ad2::1:1 Cc: Yuri Pankov , freebsd-current@freebsd.org, Pawel Jakub Dawidek Subject: Re: gjournal weirdness contd 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: Fri, 09 Nov 2007 15:47:38 -0000 Artem Kuchin wrote: > Yuri Pankov wrote: >> On Thu, Nov 08, 2007 at 10:30:47PM +0300, Artem Kuchin wrote: >>> All of the below is still there. I hope someone would help >>> with this. Pawel, please, answer. >>> >>>> FReebSD 7-BETA2, amd64 (as of nov 5th) >>>> Here is what i did this time: >>>> WEIRDNESS N1: >>>> fdisk ad6 >>>> lable ad6 - only one fs for the full disc >>>> now i have /dev/ads1d >>>> then i do >>>> gjournal load >>>> gjournal label -f /dev/ad6s1d >>>> and now i get >>>> /dev/ad6 >>>> /dev/ad6s1 >>>> /dev/ad6s1.journal >>>> /dev/ad6s1.journalc >>>> /dev/ad6s1.journald >>>> What are all journal and why c and d are put AFTER >>>> the 'journal' word? >>>> omni3# gjournal list >>>> Geom name: gjournal 1827255885 >>>> ID: 1827255885 >>>> Providers: >>>> 1. Name: da0s1f.journal >>>> Mediasize: 304473987584 (284G) >>>> Sectorsize: 512 >>>> Mode: r0w0e0 >>>> Consumers: >>>> 1. Name: da0s1f >>>> Mediasize: 306473988096 (285G) >>>> Sectorsize: 512 >>>> Mode: r1w1e1 >>>> Jend: 306473987584 >>>> Jstart: 304473987584 >>>> Role: Data,Journal >>>> Geom name: gjournal 3462346836 >>>> ID: 3462346836 >>>> Providers: >>>> 1. Name: ad6s1.journal >>>> Mediasize: 397938328064 (371G) >>>> Sectorsize: 512 >>>> Mode: r0w0e0 >>>> Consumers: >>>> 1. Name: ad6s1 >>>> Mediasize: 400085812224 (373G) >>>> Sectorsize: 512 >>>> Mode: r1w1e1 >>>> Jend: 400085811712 >>>> Jstart: 397938328064 >>>> Role: Data,Journal >>>> da0 is a twa backed gjournal fs. And it is fine. >>>> ad6 is just connected to motherboard sata controller. >>>> journal size is approx 2GB (see weirdness 2) >>>> As you see, it seemslike gjournla is attached direcly to >>>> ad6s1 (TO SLICE!!!). I don't get it, why so many journal? >>>> why partition letter is at the end? What to mount? >>>> WEIDNESS N2: >>>> If i want to specify 2GB journal size >>>> i put >>>> label -s 2147483648 >>>> and after than i get 'journal size is too small' >>>> if i do >>>> label -s 2048000000 >>>> it works >>>> So, i patched the source a bit and set 2GB by default :) >>>> BUt this is all weird. >> >> I've seen the same behaviour with gjournal. Reason, as I understand >> it, is sysinstall creating first partition on slice at offset 0 and >> not 63 as gjournal expects. I've manually edited disklabel and changed >> offset >> of first partition to be 63 (and, of course, decreasing partition >> size). And I guess you see complaints from gjournal about this on >> console :-) >> So now I have: >> a: 67108801 63 4.2BSD 0 0 0 >> >> and no more weird behaviour from gjournal. >> >> BTW, it was really funny to observe it. Stopping gjournal on ad4s1a >> with `gjournal stop` would lead to gjournal now thinking it is on >> ad4s1 or ad4s1c. > > Aha! Then i'll try just creating a very small partition at the > beginning and > the the main partition. That should fix this and wasting 10Megs is not > a problem for a 400GB HDD :) > > Yuri, have you ever tried to specify exctly 2GB journal size? like > gjournal label -s 2147483648 gjournal label -s 2GB work as expected for me. Henri > > For me it says "journal size is too small". > > -- > Artem > > > _______________________________________________ > 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"