From owner-freebsd-geom@FreeBSD.ORG Fri Jan 12 04:37:45 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B795216A412 for ; Fri, 12 Jan 2007 04:37:45 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.freebsd.org (Postfix) with ESMTP id 47EAB13C45B for ; Fri, 12 Jan 2007 04:37:45 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id F3E3148800; Fri, 12 Jan 2007 05:37:42 +0100 (CET) Received: from localhost (154.81.datacomsa.pl [195.34.81.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 5908645CDA; Fri, 12 Jan 2007 05:37:36 +0100 (CET) Date: Fri, 12 Jan 2007 05:37:03 +0100 From: Pawel Jakub Dawidek To: Ivan Voras Message-ID: <20070112043703.GA87362@garage.freebsd.pl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=3.0 tests=BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: How to mirror a geli partition? 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 Jan 2007 04:37:45 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 12, 2007 at 01:41:19AM +0100, Ivan Voras wrote: > Christian Baer wrote: >=20 > > This is actually the biggest problem I am facing. In what order do I do > > this? I was thinking along this way: > > 1 - Create partions and try to get them the same size. :-) > > 2 - Fill one (or both?) with random data. > > 3 - Make a geli provider out of one of them, newfs it. > > 4 - Do something like 'gmirror label -v -b load secret 1.eli' > > and 'gmirror insert 2.eli' > > I am not sure if I should reverse the order of 3 and 4. Or have I gotten > > the whole idea wrong? > >=20 > > Can someone point me in the right direction? >=20 > First mirror the partitions and then create geli drive on top of it. If > you do it the other way (encrypt each of the partition separately), you > will be asked for password twice and each drive will (AFAIK) get its own > internal key even if you use the same password (I'm not sure about that > one, though). Yes, you're correct. Doing mirror on top of two geli-encrypted providers would also consume twice as much CPU for crypto operations. I definiately recommend encrypting a mirror. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFpxBvForvXbEpPzQRAq8XAKCZSE7o9KKmOATm0iMmlBDfJM3p7wCfaL1i 0Agb6W7QHBScRPTFg5/f00g= =Btm5 -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe--