system freeze on freebsd 8.0-stable and gmirror/gjournal
Gabriel Lavoie
glavoie at gmail.com
Fri Feb 12 19:07:16 UTC 2010
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 at 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 ad*s2 -> gs0
>>
>> then I've applied gjournal to both of them and finally I've partitioned,
>>
>> Filesystem Size Used Avail Capacity
>> Mounted on
>> /dev/mirror/gmir0.journala 989M 688M 222M 76% /
>> /dev/mirror/gmir0.journalb 3GB
>> /dev/mirror/gmir0.journald 5.8G 3.0M 5.3G 0% /tmp
>> /dev/mirror/gmir0.journale 9.7G 1.9G 7.0G 22% /var
>> /dev/mirror/gmir0.journalf 7.7G 3.5G 3.6G 49% /usr
>> /dev/mirror/gmir0.journalg 88G 20G 61G 25% /home
>> /dev/stripe/gs0.journald 55G 25G 26G 48%
>> /faster1
>>
>> > swapinfo
>> Device 1K-blocks Used Avail Capacity
>> /dev/mirror/gmir0.journalb 3047152 28 3047124 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 http://www.wheel.pl
> pjd at FreeBSD.org http://www.FreeBSD.org
> FreeBSD committer Am I Evil? Yes, I Am!
>
--
Gabriel Lavoie
glavoie at gmail.com
More information about the freebsd-geom
mailing list