Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 14:33:44 +0100 (BST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Sean Bryant <bryants@gmail.com>, freebsd-geom@freebsd.org
Subject:   Re: GJournal (hopefully) final patches.
Message-ID:  <20060811143257.E2260@fledge.watson.org>
In-Reply-To: <20060810232255.GE1389@garage.freebsd.pl>
References:  <20060808195202.GA1564@garage.freebsd.pl> <f6791cc60608101418r52c42aa0mad896951db5b75a@mail.gmail.com> <f6791cc60608101554w2b10d8a5y9dc87f2198080281@mail.gmail.com> <20060810232255.GE1389@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help

On Fri, 11 Aug 2006, Pawel Jakub Dawidek wrote:

> 2. Confirm that partition with your file system is _not_ 4 sectors
>   aligned. If it is not 4 sectors aligned, it is safe for gjournal to
>   use its last sector for metadata. You can verify this by running:
>
> 	test `diskinfo /dev/<data_partition> | awk '{print $4}' | xargs -J X echo X % 4 | bc` -eq 0 && echo ok || echo not ok
>
> Then you need to run those commands:
>
> 	# gjournal label /dev/<data_partition> /dev/<journal_partition>
> 	# tunefs -n disable -J enable /dev/<data_partition>.journal

Sounds like a "gjournal testalignment /dev/partition" would be a very useful 
thing.  Or even just doing it as part of gjournal label?

Robert N M Watson
Computer Laboratory
University of Cambridge



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