From owner-freebsd-fs@FreeBSD.ORG Thu Jun 22 14:45:06 2006 Return-Path: X-Original-To: freebsd-fs@FreeBSD.ORG Delivered-To: freebsd-fs@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF6E716A482; Thu, 22 Jun 2006 14:45:06 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A7DC43D58; Thu, 22 Jun 2006 14:45:05 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wxklmr@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k5MEiwgp074697; Thu, 22 Jun 2006 16:45:03 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k5MEiwHu074696; Thu, 22 Jun 2006 16:44:58 +0200 (CEST) (envelope-from olli) Date: Thu, 22 Jun 2006 16:44:58 +0200 (CEST) Message-Id: <200606221444.k5MEiwHu074696@lurza.secnetix.de> From: Oliver Fromme To: freebsd-fs@FreeBSD.ORG, pjd@FreeBSD.ORG In-Reply-To: <20060622141101.GI30568@garage.freebsd.pl> X-Newsgroups: list.freebsd-fs User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 22 Jun 2006 16:45:04 +0200 (CEST) Cc: Subject: Re: Journaling UFS with gjournal. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@FreeBSD.ORG, pjd@FreeBSD.ORG List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 14:45:06 -0000 Pawel Jakub Dawidek wrote: > There is no manual page for gjournal(8) yet. There is an option you can > use to specify journal size: > > # gjournal label -s 2147483648 ad0 > > This will create 2GB journal and the rest will be for the data. Cool. I guess you can also specify the journal switch interval as an option, right? Oh, by the way: Are both UFS1 and UFS2 supported? > +> Another question: What happens if you (accidentally) make > +> the journals provider too small, so it hits the end before > +> the next regular switch? > > Currently it will panic, but I'm working on it. OK. Actually I already guessed that it would panic. :-) It probably would be better to block all write requests and wait until the other journal has been written out, so it can be re-used. And print(9) a message so the admin knows what kind of problem there is. However, if the size of the journals provider is twice the maximum raw transfer rate of the disk multiplied by the switch interval time (as you recommended), it should be impossible to get a journal overrun. > +> PS: I've also sent a follow-up to the -fs mailing list a few > +> days ago, containing a few questions ... did you overlook it? > > If you haven't CCed me, I probably did. I see. I'm sorry for that. I'll forward you a copy if you don't mind. > +> PPS: Thanks again for all your work on journaling! It > +> looks very cool and promising. Any plans to commit it? > +> A wider audience will speed up the process of polishing > +> the rough edges, I think. > > There are some decisions I need to make before it will go to HEAD. Like > 'gjournal' mount option. I see. I hope there won't be problems with that. Bringing journaling support to UFS is a significant milestone in FreeBSD's history. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. With Perl you can manipulate text, interact with programs, talk over networks, drive Web pages, perform arbitrary precision arithmetic, and write programs that look like Snoopy swearing.