From owner-freebsd-geom@FreeBSD.ORG Thu Apr 30 11:26:22 2009 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 D85DC106566C for ; Thu, 30 Apr 2009 11:26:22 +0000 (UTC) (envelope-from terje@elde.net) Received: from smtp.elde.net (us.elde.net [66.246.223.215]) by mx1.freebsd.org (Postfix) with ESMTP id AEFFA8FC23 for ; Thu, 30 Apr 2009 11:26:21 +0000 (UTC) (envelope-from terje@elde.net) Received: from smtp.elde.net (343006.ds.nac.net [127.0.0.1]) by smtp.elde.net (Postfix) with ESMTP id 0706564F30 for ; Thu, 30 Apr 2009 13:11:12 +0200 (CEST) Received: from [10.157.0.101] (084202025204.customer.alfanett.no [84.202.25.204]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: terje@elde.net) by smtp.elde.net (Postfix) with ESMTPSA id 7CE1464F18 for ; Thu, 30 Apr 2009 13:11:11 +0200 (CEST) Message-ID: <49F98768.8000907@elde.net> Date: Thu, 30 Apr 2009 13:11:36 +0200 From: Terje Elde User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: freebsd-geom@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: gmirror, geli and 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: Thu, 30 Apr 2009 11:26:23 -0000 Hi, I'm curious about GEOM combining gmirror geli and gjournal. I'm setting up a rather slow machine (PentiumIII 450Mhz) and didn't want to encrypt once pr. drive, so I configured geli on top of gmirror so I encrypt once for the mirror, rather than once for each disk. Seemed to make sense. I now want to place UFS2 filesystems with journaling (using gmirror offcourse) on top of the encrypted mirror. In the gjournal man page, I was pleased to read: When gjournal is configured on top of gmirror(8) or graid3(8) providers, it also keeps them in a consistent state, thus automatic synchronization on power failure or system crash may be disabled on those providers. But what happens if I have geli sitting between gjournal and gmirror? Will gjournal still take responsibility for keeping the mirror in sync? Or would I have to have geli and gmirror trade place, so gjournal sits directly on top of gmirror, and I encrypt once pr. disk? Also, the way I set things up, I used gmirror and geli on the whole drives, used BSD disklabels for partitioning the encrypted device, and understand I'd use gjournal for each partition. Will things work as desired even though gmirror is for the whole disk, and gjournal with UFS2 is pr. partition? Tried to RTFM, interrogate google, but came up a bit short on these questions, and since it's about data-integrity, I'd rather ask now, than cry later. Hope someone can enlighten me a bit. Terje