From owner-freebsd-questions@FreeBSD.ORG Tue Nov 4 15:11:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 86A9A106567C for ; Tue, 4 Nov 2008 15:11:25 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3CFCC8FC13 for ; Tue, 4 Nov 2008 15:11:24 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KxNYs-00055z-Vs for freebsd-questions@freebsd.org; Tue, 04 Nov 2008 15:11:18 +0000 Received: from utwig.xim.bz ([195.184.197.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2008 15:11:18 +0000 Received: from c.kworr by utwig.xim.bz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Nov 2008 15:11:18 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Tue, 04 Nov 2008 17:11:05 +0200 Lines: 32 Message-ID: References: <48FD6665.5000102@telus.net> <48FD6803.7080802@shopzeus.com> <48FD9091.8000809@telus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: utwig.xim.bz User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.8.1.17) Gecko/20081001 SeaMonkey/1.1.12 In-Reply-To: <48FD9091.8000809@telus.net> Sender: news Subject: Re: gjournal: journaled slices vs. journaled partitions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 15:11:25 -0000 Carl wrote: >>> So how do I achieve per-slice journaling instead of per-partition? >> The docs only says this: "gjournal only supports UFS2". It does not >> specifically say that you cannot have per-slice journaling. However, >> since you could have other filesystems on your slice, I bet that slice >> based journaling is not supported. > > I thought I read somewhere that because gjournal is block based and not > really part of the filesystem, that it could easily be extended for any > other filesystem. My imagination said that gjournal was probably > therefore only temporarily limited to a slice full of UFS partitions. > Anyone know for sure? gjournal needs to know what what data is actually metadata. In case of UFS the -J flag given to newfs tells system that using this fs we should mark metadata for gjournal use. >> Another tricky question: why would you journal a SWAP partition? > > Well, I don't really want to, but how big does a partition like /var > have to be before it's no longer ill-advised to journal it individually? > A fair bit of writing can occur in /var and the scenario my server will > occupy has me concerned about inglorious shutdowns. > > What are the actual reasons for why journaling a small partition is > considered a bad idea? Journal needs to bee big enough to amass all modifications. By default it's 1G. Just compare this to the size of your /var. -- Sphinx of black quartz judge my vow.