Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 31 Oct 2007 19:58:26 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Artem Kuchin <matrix@itlegion.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Problems with gjournal or something else.
Message-ID:  <20071031185826.GC13180@garage.freebsd.pl>
In-Reply-To: <001b01c81bef$54805790$0c00a8c0@Artem>
References:  <00f101c819f7$833d5370$0c00a8c0@Artem> <20071031095213.GG8068@garage.freebsd.pl> <02af01c81bb9$7f7828a0$0c00a8c0@Artem> <20071031183838.GB13180@garage.freebsd.pl> <001b01c81bef$54805790$0c00a8c0@Artem>

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

--PmA2V3Z32TCmWXqI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Oct 31, 2007 at 09:53:07PM +0300, Artem Kuchin wrote:
> First of all, thank you for replying. It is always very nice and informat=
ive
> for hear from the actual developer of something. Thank you.
>=20
> >>Configure gjournaling on an existing file system, but only if gjournal
> >>allows this (i.e.: if the last sector is not already used by the file
> >>system):
> >>
> >>umount /dev/da0s1d
> >>gjournal label da0s1d da0s1e
> >>tunefs -J enable -n disable=20
> >>mount -o async /dev/da0s1d.journal /mnt
> >>mount /dev/da0s1d /mnt
> >>
> >>However, this simple does not work.
> >>gjournal label da0s1d da0s1e - WILL FAIL ON EXISTING FS!
> >
> >Have you read what the warning says? It tells you that the last sector,
> >where it tries to write metadata is used by existing file system. Using
> >-f option will destroy the last sector. You not only decided to
> >overwrite single sector, but 1GB of data, because you didn't give separa=
te
> >provider for journal.
>=20
> My point here is that since it is and example of configuring a gjournalin=
g=20
> onf
> existing system then this 'gjournal label da0s1d da0s1e' will always fail.

No. It will fail only if your file system is using the last sector. UFS
operates on fragments, so if your disk/slice/partition is not
fragment-aligned it will work.

> Of course it says the warning, but basically, condidering that it overwri=
tes
> last sector+1 GB of data on existing FS there is actual configuring on
> existing FS. It is simply destroying it. =20

The example is using separate provider (da0s1e) for the journal, so it
only needs one sector from da0s1d.

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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHKNBSForvXbEpPzQRAmmUAKDGy/znrPqmz4Is3fNjuuAKFugdXACfbJ4W
lafAuumqiyXKVsUeWLHmMuY=
=gALY
-----END PGP SIGNATURE-----

--PmA2V3Z32TCmWXqI--



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