Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Aug 2006 01:22:55 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Sean Bryant <bryants@gmail.com>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org, freebsd-geom@freebsd.org
Subject:   Re: GJournal (hopefully) final patches.
Message-ID:  <20060810232255.GE1389@garage.freebsd.pl>
In-Reply-To: <f6791cc60608101554w2b10d8a5y9dc87f2198080281@mail.gmail.com>
References:  <20060808195202.GA1564@garage.freebsd.pl> <f6791cc60608101418r52c42aa0mad896951db5b75a@mail.gmail.com> <f6791cc60608101554w2b10d8a5y9dc87f2198080281@mail.gmail.com>

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

--EXKGNeO8l0xGFBjy
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 10, 2006 at 06:54:04PM -0400, Sean Bryant wrote:
> On 8/10/06, Sean Bryant <bryants@gmail.com> wrote:
> Alright. After testing I've found the problem. You can enable
> journaling on an existing filesystem, provided the journaling provider
> is not the data provider.
>=20
> I could not do the following:
> tunefs -J enable ad4s1e
> gjournal label ad4s1e
> fsck_ffs -p ad4s1e

Yes, maybe I wasn't clear on this. I think I described it only slightly
in my first gjournal announce.

GJournal is not file system journaling, it needs separate journal space.
If you 'gjournal label' only one partition, it will put journal at the
end on this partition and leave space for data at the begining of the
partition.

To convert existing file system to gjournal you have to:
1. Have separate partition for journal.
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

--=20
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

--EXKGNeO8l0xGFBjy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (FreeBSD)

iD8DBQFE27/OForvXbEpPzQRAjK9AKDgZYIDACmY9bnt+4V18PW8FbfU1wCeKPNE
b18rY78wkqV6tk7KNywzZZw=
=Ns5V
-----END PGP SIGNATURE-----

--EXKGNeO8l0xGFBjy--



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