From owner-freebsd-current@FreeBSD.ORG Mon Jan 18 16:50:38 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91001065694 for ; Mon, 18 Jan 2010 16:50:38 +0000 (UTC) (envelope-from gary.jennejohn@freenet.de) Received: from mout2.freenet.de (mout2.freenet.de [IPv6:2001:748:100:40::2:4]) by mx1.freebsd.org (Postfix) with ESMTP id 6E72D8FC19 for ; Mon, 18 Jan 2010 16:50:38 +0000 (UTC) Received: from [195.4.92.19] (helo=9.mx.freenet.de) by mout2.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.70 #1) id 1NWuoH-00062K-Ei; Mon, 18 Jan 2010 17:50:37 +0100 Received: from p57ae2ecb.dip0.t-ipconnect.de ([87.174.46.203]:61492 helo=ernst.jennejohn.org) by 9.mx.freenet.de with esmtpa (ID gary.jennejohn@freenet.de) (port 25) (Exim 4.69 #94) id 1NWuoH-0003x5-4k; Mon, 18 Jan 2010 17:50:37 +0100 Date: Mon, 18 Jan 2010 17:50:33 +0100 From: Gary Jennejohn To: Jeff Roberson Message-ID: <20100118175033.7ba10de0@ernst.jennejohn.org> In-Reply-To: References: X-Mailer: Claws Mail 3.7.3 (GTK+ 2.16.2; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: Help test softupdates journaling (SUJ) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gary.jennejohn@freenet.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2010 16:50:38 -0000 On Fri, 8 Jan 2010 14:56:45 -1000 (HST) Jeff Roberson wrote: > I have been augmenting softupdates with a small journal that will be processed > in lieu of fsck in the event of a crash. I have written some about this > project here: http://jeffr_tech.livejournal.com/ > For some reason I can't access this location. Hmm, firefox doesn't seem to like the '_'. > To install you will need to apply http://people.freebsd.org/~jeff/suj.diff to a > recent current source tree. > I had to apply part of the patch by hand, namely sys/ufs/ufs/ufs_lookup.c here (but only this block, all other patches applied OK) @@ -1221,21 +1210,29 @@ ufs_dirrewrite(dp, oip, newinum, newtype, isrmdir) > You can enable suj by running tunefs -j enable /dev/{device}. > For some reason I was unable to enable SUJ on /usr. I see the error "insufficient contiguous free space for the journal", even though /usr has 31GB free: Filesystem Size Used Avail Capacity Mounted on /dev/ada0s1e 63G 27G 31G 46% /usr /usr does have lots of fragments, but it seems like, with 31GB free, the kernel should be able to find 64MB of free, contiguous space. I didn't try specifying a journal size, however. Kind of inconvenient having /usr without soft-updates :( However, on all other filesystems (/ doesn't use SU) turning on SUJ worked: /dev/ada0s1a on / (ufs, local) /dev/ada0s1d on /var (ufs, local, soft-updates) /dev/ada0s1e on /usr (ufs, NFS exported, local) <== fails /dev/ada0s1f on /home (ufs, NFS exported, local, soft-updates) /dev/ada1a on /oldzfs (ufs, NFS exported, local, soft-updates) /dev/da1a on /uvbox (ufs, local, soft-updates) /dev/ada0s1g on /opt (ufs, NFS exported, local, soft-updates) --- Gary Jennejohn