Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Feb 2010 13:40:24 -0500
From:      Gabriel Lavoie <glavoie@gmail.com>
To:        Pawel Jakub Dawidek <pjd@freebsd.org>
Cc:        Ferruccio Zamuner <nonsolosoft@diff.org>, freebsd-geom@freebsd.org
Subject:   Re: system freeze on freebsd 8.0-stable and gmirror/gjournal
Message-ID:  <d05df8621002121040v75f06998kb3264cdddc68a1dc@mail.gmail.com>
In-Reply-To: <20100201203025.GA1732@garage.freebsd.pl>
References:  <4B673692.4070408@diff.org> <20100201203025.GA1732@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Why there should be one gjournal provider for each filesystem? I've
been running for two years a system with 1 journal provider for all
filesystems with no problem at all. Instead of wasting [I don't
remember the calculation]GB for each file system, I only have to waste
a total of 2GB (enough based on the speed of my drives). I've made
extensive power failure/disk disconnection tests with this setup and
every time, the journal was replayed correctly and I never had any
data loss. I'm interested to see a clear answer as I asked this
question two years ago and no one could really answer.

My swap is split on my two hard drives, no gmirror/gjournal for it.

My / filesystem is only on gmirror with softupdates as there was a bug
in 7.1 and under where the system couldn't reboot on unclean shutdown.
The system was trying to mount the root partition before the journal
was replayed and the device node appeared.

Gabriel

[Sorry for the re-post, I forgot to use Reply All.]

2010/2/1 Pawel Jakub Dawidek <pjd@freebsd.org>:
> On Mon, Feb 01, 2010 at 09:16:18PM +0100, Ferruccio Zamuner wrote:
>> Hello,
>>
>> I'm moving to a new server dedicated hosts.
>> I've choose to install FreeBSD 8.0 and I've already upgrade to -stable.
>>
>> I've two hd sata 160Gb each: ad4, ad6.
>>
>> I've split them in two slices: ad[46]s1, ad[46]s2.
>>
>> gmirror ad*s1 -> gm0
>> gstripe =C2=A0 ad*s2 -> gs0
>>
>> then I've applied gjournal to both of them and finally I've partitioned,
>>
>> Filesystem =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Size =C2=A0 =C2=A0Used =C2=A0 Avail =
Capacity
>> Mounted on
>> /dev/mirror/gmir0.journala =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 989=
M =C2=A0 =C2=A0688M =C2=A0 =C2=A0222M =C2=A0 =C2=A076% =C2=A0 =C2=A0/
>> /dev/mirror/gmir0.journalb =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 3GB
>> /dev/mirror/gmir0.journald =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 5.8=
G =C2=A0 =C2=A03.0M =C2=A0 =C2=A05.3G =C2=A0 =C2=A0 0% =C2=A0 =C2=A0/tmp
>> /dev/mirror/gmir0.journale =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 9.7=
G =C2=A0 =C2=A01.9G =C2=A0 =C2=A07.0G =C2=A0 =C2=A022% =C2=A0 =C2=A0/var
>> /dev/mirror/gmir0.journalf =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7.7=
G =C2=A0 =C2=A03.5G =C2=A0 =C2=A03.6G =C2=A0 =C2=A049% =C2=A0 =C2=A0/usr
>> /dev/mirror/gmir0.journalg =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A088G =C2=A0 =C2=A0 20G =C2=A0 =C2=A0 61G =C2=A0 =C2=A025% =C2=A0 =C2=A0/h=
ome
>> /dev/stripe/gs0.journald =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A055G =C2=A0 =C2=A0 25G =C2=A0 =C2=A0 26G =C2=A0 =C2=A048%
>> /faster1
>>
>> > swapinfo
>> Device =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01K-blocks =C2=A0 =C2=A0 Used =
=C2=A0 =C2=A0Avail Capacity
>> /dev/mirror/gmir0.journalb =C2=A0 3047152 =C2=A0 =C2=A0 =C2=A0 28 =C2=A0=
3047124 =C2=A0 =C2=A0 0%
>
> It is very bad idea to swap onto gjournal, but the more important thing
> is that there should be one gjournal provider for one file system, not
> one gjournal provider for multiple file systems. Also file system should
> be placed directly on gjournal provider and you have partitions
> configured even in gs0 case.
>
> --
> Pawel Jakub Dawidek =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 http://www.wheel.pl
> pjd@FreeBSD.org =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://www.FreeBSD.org
> FreeBSD committer =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Am I Evil? Yes, I Am!
>



--=20
Gabriel Lavoie
glavoie@gmail.com



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