From owner-freebsd-geom@FreeBSD.ORG Sat Jul 7 22:11:16 2007 Return-Path: X-Original-To: geom@freebsd.org Delivered-To: freebsd-geom@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84EF716A41F for ; Sat, 7 Jul 2007 22:11:16 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.maindns.de [85.214.95.103]) by mx1.freebsd.org (Postfix) with ESMTP id 212AF13C45B for ; Sat, 7 Jul 2007 22:11:15 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (Q7c4d.q.ppp-pool.de [89.53.124.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id EB1DB12883F for ; Sun, 8 Jul 2007 00:11:08 +0200 (CEST) Received: from cesar.sz.vwsoft.com (unknown [192.168.18.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id 38C1E3F45B; Sun, 8 Jul 2007 00:08:08 +0200 (CEST) Message-ID: <46900ED9.1060206@vwsoft.com> Date: Sun, 08 Jul 2007 00:08:25 +0200 From: Volker User-Agent: Thunderbird 2.0.0.4 (X11/20070615) MIME-Version: 1.0 To: Ivan Voras X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: geom@freebsd.org Subject: Re: gjournal size reservation? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jul 2007 22:11:16 -0000 Ivan, thanks for your answer. Much appreciated. I initially thought this goes into my fabulous series of never been answered questions... ;) >> > I've never played with gjournal before and would like to try it to get >> > protection of the root-fs, var and tmp. I'm wondering if someone can >> > answer these simple questions: >> > >> > 1) As I understand, gjournal does not need to run on a filesystem but >> > is also able to journal a whole slice. What are the pro's and con's >> > for running gjournal on a whole slice or per filesystem? > > In either case the journaling is "per slice", the "on a filesystem" mode > is mostly just a convenience shortcut for the users so they don't need > to set a gjournal slice separately. > >> > 1a) if journaling per filesystem, is gjournal able to use just one >> > journaling area for more than one filesystem? > > Almose certainly no. Ok, short after asking my questions, I figured it out myself. gjournal is responding with an error message when trying to use the same area for more than one journal. Will this change one time in the future? >> > 2) How much space is required for journaling? I'm having space to get >> > the journal into it's own slice or at least a bsd label. > >> > slice 2 (8g) can be used for spare space and for gjournal but I'm >> > unsure how much space to give gjournal. > > The calculation for this involves disk bandwidth multiplied by the > "journal flush interval", multiplied by two because there are two > journal areas, and it's usually recommended that it should be at least 1 > GB. hmm, this calculation sounds like it's valid for busy server machines but is it valid as a general rule of thumb? On my typical desktop (and even on my typical router/proxy/mailserver etc), there's not that much traffic on the disk bus so I would tend to use a smaller size (< 1GB). Do you generally recommend to use data + journal on one single provider and let gjournal take care of all the calculations? Thx, Volker