From owner-freebsd-geom@FreeBSD.ORG Wed Aug 22 10:37:25 2012 Return-Path: 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 331BE106564A; Wed, 22 Aug 2012 10:37:25 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.93]) by mx1.freebsd.org (Postfix) with ESMTP id DF4058FC0C; Wed, 22 Aug 2012 10:37:24 +0000 (UTC) Received: from [78.35.161.203] (helo=fabiankeil.de) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1T48IP-0005BN-Jj; Wed, 22 Aug 2012 12:36:21 +0200 Date: Wed, 22 Aug 2012 12:35:35 +0200 From: Fabian Keil To: Zeus Panchenko Message-ID: <20120822123535.0385f118@fabiankeil.de> In-Reply-To: <20120822132440.24864@relay.ibs.dn.ua> References: <20120821190742.54449@relay.ibs.dn.ua> <20120822132440.24864@relay.ibs.dn.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/kJkciffGM_NNTo9UO5IPhjx"; protocol="application/pgp-signature" X-Df-Sender: Nzc1MDY3 Cc: freebsd-fs@freebsd.org, freebsd-geom@freebsd.org Subject: Re: `zpool create' fails on geli ... X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-fs@freebsd.org List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 10:37:25 -0000 --Sig_/kJkciffGM_NNTo9UO5IPhjx Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Zeus Panchenko wrote: > resume: >=20 > if geli was initialized with `-a' than we need to fill whole of it to > initialize checksums what will make it possible to `zpool create ...' >=20 > something like this: >=20 > geli init -K /path/key -s 4096 -a hmac/sha256 -e aes-xts /dev/adaX > geli attach -k /path/key /dev/adaX > dd if=3D/dev/zero of=3D/dev/adaX.eli bs=3D10m > zpool create geliz /dev/adaX.eli >=20 > but it's better to >=20 > geli init -K /path/key -s 4096 -e aes-xts /dev/adaX Does your disk actually use 4k sectors? Otherwise it's not clear to me that "-s 4096" makes sense when using ZFS. I'm not claiming that it's obviously wrong, but I'm not aware of any benchmarks that show that it's better than the default in any way. Fabian --Sig_/kJkciffGM_NNTo9UO5IPhjx Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlA0tfwACgkQBYqIVf93VJ3mVQCfQfr3BFdUnZMasKy9sKm/P8+z m2gAn34Gf4XRNA81kDj5cWGRBeFefwbS =w8A5 -----END PGP SIGNATURE----- --Sig_/kJkciffGM_NNTo9UO5IPhjx--