From owner-freebsd-stable@freebsd.org Sun Apr 18 07:21:11 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B2305F5A13 for ; Sun, 18 Apr 2021 07:21:11 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (constantine.ingresso.co.uk [IPv6:2001:470:6a18:411::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FNLw22FmFz4gnC; Sun, 18 Apr 2021 07:21:05 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from [2001:470:6cc4:1:b8fa:e0b2:3edf:f1ec] (helo=balta.drayhouse.twisted.org.uk) by constantine.ingresso.co.uk with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.94 (FreeBSD)) (envelope-from ) id 1lY1jq-000A6V-Hs; Sun, 18 Apr 2021 07:21:02 +0000 Subject: Re: geli - is it better to partition then encrypt, or vice versa ? To: Alan Somers Cc: FreeBSD Stable Mailing List References: From: Pete French Message-ID: <766cc473-9989-ca06-7365-ddacc2c28b63@ingresso.co.uk> Date: Sun, 18 Apr 2021 08:21:01 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4FNLw22FmFz4gnC X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=ingresso.co.uk; spf=pass (mx1.freebsd.org: domain of petefrench@ingresso.co.uk designates 2001:470:6a18:411::3 as permitted sender) smtp.mailfrom=petefrench@ingresso.co.uk X-Spamd-Result: default: False [-2.76 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2001:470:6a18:411::3:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:6a18:411::3]; MIME_GOOD(-0.10)[text/plain]; RBL_SENDERSCORE_FAIL(0.00)[2001:470:6a18:411::3:server fail]; ARC_NA(0.00)[]; SPAMHAUS_ZRD(0.00)[2001:470:6a18:411::3:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[ingresso.co.uk,none]; NEURAL_HAM_SHORT(-0.96)[-0.957]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; MAILMAN_DEST(0.00)[freebsd-stable]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2021 07:21:11 -0000 On 17/04/2021 21:06, Alan Somers wrote: > The answer depends on why you want to partition in the first place. > What do you intend to store on those disks besides ZFS?  If the answer > is nothing, then don't bother partitioning; just write ZFS over GELI > over the whole disk. Well, actually thats exactly why I asked the question, because after having done it I thought "why have I bothered partitioning this?" - after all, I would not have done so if they were not encrypted! I think I got into the habit of always partitioning discs, back when using them raw was called "dangerously dedicated" - but that was, umm, a while ago shall we say ;-) Since ZFS arrived I havent used anything else, and when using ZFS I use the whole drive if I can. So yeah, was kind of looking at my own behaviour and doing a double take here... > (Also, it's worth asking why you want GELI, now that FreeBSD 13 supports > ZFS native crypto.  ZFS native crypto on RAIDZ has substantially better > write performance than RAIDZ on GELI.  However, if you're paranoid, then > GELI does provide better security; ZFS native crypto is vulnerable to > some kinds of watermarking attacks.) Well, am (this week at least) running FreeBSD 12. Plus I havent native ZFS encryption yet, and theres always a tendency to 'go with what you know well' when setting something up. I just use striping and mirroring, no raidz, but if it will improve the write performance, and if it requires a password during boot like geli does, then I will look into it when I get everything upgraded to 13. Hadnt even considered that, so thanks for the reminder - need to explore all the new stiuff in OpenZFS I guess! -pete.