From owner-freebsd-geom@FreeBSD.ORG Fri Dec 12 12:29:39 2008 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 400D21065676 for ; Fri, 12 Dec 2008 12:29:39 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id B61A58FC24 for ; Fri, 12 Dec 2008 12:29:38 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LB79B-00038V-6P for freebsd-geom@freebsd.org; Fri, 12 Dec 2008 12:29:33 +0000 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2008 12:29:33 +0000 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2008 12:29:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Fri, 12 Dec 2008 13:29:24 +0100 Lines: 69 Message-ID: References: <4940FF0F.2020404@field.hu> <20081211205659.GA72478@keira.kiwi-computer.com> <49419680.4010003@field.hu> <20081212040137.GA76422@keira.kiwi-computer.com> <20081212083708.GA1455@carrot.studby.ntnu.no> <20081212130848.GB39875@carrot.studby.ntnu.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB04A2D7738FD0766A66FE88C" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.18 (X11/20081125) In-Reply-To: <20081212130848.GB39875@carrot.studby.ntnu.no> X-Enigmail-Version: 0.95.0 Sender: news Subject: Re: Encrypting raid5 volume with geli 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 Dec 2008 12:29:39 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB04A2D7738FD0766A66FE88C Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ulf Lilleengen wrote: > On Fri, Dec 12, 2008 at 11:07:40AM +0100, Ivan Voras wrote: >> Ulf Lilleengen wrote: >>> On tor, des 11, 2008 at 10:01:37pm -0600, Rick C. Petty wrote: >>> *snip* >>>> There are a set of patches that lulf@ has which I believe put the vo= lume in >>>> "up" state initially instead of "down", but maybe it only works for >>>> mirrors. The code in current and RELENG_7 does initially put the vo= lume in >>>> "down" state. >>>> >>> Yes, it only works for mirrors, since I thought it doesn't really mat= ter if a >>> mirror is properly initialized, since the user need to put data into = the >>> mirror for it to be useful anyway. The same goes for RAID-5 I guess, = but I >>> was not sure if it might trigger some weird behaviour since parity wo= uld not >>> match if reading the volume. I will test out a small modification I m= ade, >>> which removes the need to run 'gvinum start' on the raid5 plexes. >> It doesn't have to be "weird" behaviour, depending on whether gvinum >> checks parity on reads (does it?). If it does, it will only have to >> ignore checksum errors in this case. > It does check parity on reads. But I think it doesn't matter, since no = sane data > has been written in that block anyway.=20 >=20 > But as you say, one way to handle it is to ignore the checksums if the = data > is known to not be initialized, but then wouldn't one have to keep trac= k of > which blocks have a valid parity and which who does not? >=20 >> I suppose people will want to run utilities like diskinfo -vt on the >> volume with invalid parities so it's not a theoretical scenario :) >> > I guess, but I then one can just initialize the volume anyway. In the interest of simplicity, maybe a single, well documented flag that says "don't check checksums on reads" will do best. It will also probably help read performance. Of course, it should be off by default and its implications explained in the man page :) --------------enigB04A2D7738FD0766A66FE88C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJQlkkldnAQVacBcgRApUQAKD0eupyquvLWzYn/CbczuHqL+w3RACbBhPG acftybWfOZLfIIq+YtpUzPQ= =vFAl -----END PGP SIGNATURE----- --------------enigB04A2D7738FD0766A66FE88C--