From owner-freebsd-geom@FreeBSD.ORG Fri Feb 12 19:07:15 2010 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF1921065676 for ; Fri, 12 Feb 2010 19:07:15 +0000 (UTC) (envelope-from glavoie@gmail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 756F88FC1F for ; Fri, 12 Feb 2010 19:07:15 +0000 (UTC) Received: by ewy3 with SMTP id 3so2910840ewy.13 for ; Fri, 12 Feb 2010 11:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Zg/0fQ1LCh3T/GkQuJAcizhUsRHncLddu5AzeCD41tw=; b=vDV/pQulTPgs409ImodYQSFjfWvOsBZWpsMU1TBfV2WZO2oG06NSr5Kc3k25l2TkPP LIEfwUesgeNqJqUOMd26ehF7uumcH9IL5o5tBz0eSR+RjvOqcH1babhhK1y5VUgz0RfZ oCDaOTHRKbccjHleJN8PjDJJoju5oIujrGIxg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OJSdNcUMOtI/lGP4P7iWTk/bNwEa08hlWRYDQD6mrcTkmUQ/s36q/xIcWT20HzMlNK AITpd/LdfjvtN+OPMj3tjXhKxWjCw0DJ97CX6Xy/05nrWg2j7Cj+j/ZInPYhbdj7Ccgt b344NgUuwdkGY2hCXWN+IMn5G2QJD6450cP10= MIME-Version: 1.0 Received: by 10.216.162.142 with SMTP id y14mr981774wek.192.1266000024365; Fri, 12 Feb 2010 10:40:24 -0800 (PST) In-Reply-To: <20100201203025.GA1732@garage.freebsd.pl> References: <4B673692.4070408@diff.org> <20100201203025.GA1732@garage.freebsd.pl> Date: Fri, 12 Feb 2010 13:40:24 -0500 Message-ID: From: Gabriel Lavoie To: Pawel Jakub Dawidek Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Ferruccio Zamuner , freebsd-geom@freebsd.org Subject: Re: system freeze on freebsd 8.0-stable and gmirror/gjournal X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Feb 2010 19:07:16 -0000 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 : > 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