Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 2010 17:50:33 +0100
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Jeff Roberson <jroberson@jroberson.net>
Cc:        current@freebsd.org
Subject:   Re: Help test softupdates journaling (SUJ)
Message-ID:  <20100118175033.7ba10de0@ernst.jennejohn.org>
In-Reply-To: <alpine.BSF.2.00.1001081456000.1027@desktop>
References:  <alpine.BSF.2.00.1001081456000.1027@desktop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 Jan 2010 14:56:45 -1000 (HST)
Jeff Roberson <jroberson@jroberson.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100118175033.7ba10de0>