Re: Help test softupdates journaling (SUJ)

From: Gary Jennejohn <gary.jennejohn_at_freenet.de>
Date: Mon, 18 Jan 2010 17:50:33 +0100
On Fri, 8 Jan 2010 14:56:45 -1000 (HST)
Jeff Roberson <jroberson_at_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)
_at__at_ -1221,21 +1210,29 _at__at_ 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
Received on Mon Jan 18 2010 - 15:50:38 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC