From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-201499-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id CF40915800A
	for <garchives@archives.gentoo.org>; Thu, 27 Jul 2023 16:18:27 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B0A2CE0963;
	Thu, 27 Jul 2023 16:18:20 +0000 (UTC)
Received: from gorilla.birch.relay.mailchannels.net (gorilla.birch.relay.mailchannels.net [23.83.209.75])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 012EBE075F
	for <gentoo-user@lists.gentoo.org>; Thu, 27 Jul 2023 16:18:19 +0000 (UTC)
X-Sender-Id: _forwarded-from|230.3.169.217
Received: from relay.mailchannels.net (localhost [127.0.0.1])
	by relay.mailchannels.net (Postfix) with ESMTP id 5392A9420D9
	for <gentoo-user@lists.gentoo.org>; Thu, 27 Jul 2023 16:18:18 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1690474697; a=rsa-sha256;
	cv=none;
	b=r+MHgp8QC+Rl17f/VE4brOnQ1tAu0WY0Ygjpj3kzrbtMB0RjNp5MDviuUFYnyuE661EtWC
	5oSLqOMq4mzCleOxXlmW98Hvn6qDa7mQTfW/b28BgjdUYN39unVqYKLNpFXbSQUSVlUrYm
	FSlFPzfoJsWTrNtbptewY57XV3kFvCG1K3az1irFK43n0ehZtkEBLxTIxr5YApTGjbTCFP
	kjf2Rg3mjEESISE32K6F6FrbRMaNYyK25kPnmhjN+AxO5QkFJs2Fq1X9B8Lx6SV63msS0L
	ETqoA4uzB5RyrHOzV5bfsomRsSJHCTWCvQo6x//PO0tkbBzHKuCE+ZnjoPCfJA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net;
	s=arc-2022; t=1690474697;
	h=from:from:reply-to:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:dkim-signature;
	bh=ERt++dtl4g91QWj3oDS7Kl+rLHwvxyFk0K4sDDMw9eo=;
	b=rV/Gxn3qV1hHTPNGciCw/JLmwrTULs6HhhGenUSVZhooTbdBAsshFpTkadv53Vectcz4Te
	zup8bxjphKF/rFgMdfR9rYptbll7QTHOUZ/UOV6FwGYxDLWSxkTUwRok0TpqL7qtOjTTDL
	qGF8DoapHQY0LGk9OCkLvMCgCRIQim7w9tX15xOxLZzCCH3Gzw391ZlCK9PcLhhdnqw8CJ
	fIwNiCpYOtK5W8hzZpBdAJ1NtrIAlGzYNAwFMKvOJ3QJ2UTnCJa+TTAS33PijV76ueXugz
	fkfXADUEKJPYrdg+Zl0UnJc9PqdnycNVUtuXJxg7bIVIYOe8qpS63EAZRWkVRQ==
ARC-Authentication-Results: i=1;
	rspamd-d58c88954-fvbnx;
	auth=pass smtp.auth=thundermail smtp.mailfrom=confabulate@kintzios.com
X-Sender-Id: _forwarded-from|230.3.169.217
X-MC-Relay: Forwarding
X-MailChannels-SenderId: _forwarded-from|230.3.169.217
X-MailChannels-Auth-Id: thundermail
X-Wipe-Reign: 2b2ef4003a2eedfe_1690474698147_56102683
X-MC-Loop-Signature: 1690474698147:461030510
X-MC-Ingress-Time: 1690474698146
Received: from mailclean11.thundermail.uk (mailclean11.thundermail.uk
 [149.255.60.66])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
	by 100.106.0.198 (trex/6.9.1);
	Thu, 27 Jul 2023 16:18:18 +0000
Received: from cloud220.unlimitedwebhosting.co.uk (cloud220.unlimitedwebhosting.co.uk [149.255.60.183])
	by mailclean11.thundermail.uk (Postfix) with ESMTPS id 270A84081D
	for <gentoo-user@lists.gentoo.org>; Thu, 27 Jul 2023 17:18:15 +0100 (BST)
Received: from lenovo.localnet (230.3.169.217.in-addr.arpa [217.169.3.230])
	by cloud220.unlimitedwebhosting.co.uk (Postfix) with ESMTPSA id 45E03C74ED7
	for <gentoo-user@lists.gentoo.org>; Thu, 27 Jul 2023 17:18:15 +0100 (BST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com;
	s=default; t=1690474695;
	bh=ERt++dtl4g91QWj3oDS7Kl+rLHwvxyFk0K4sDDMw9eo=; h=From:To:Subject;
	b=t94mF/xhY7T0tzuqFV+7pYQDiwv44PKirPGkji4AL2QcvFOz1bZkc4pcqCe+n731L
	 vd7DnQhByXTbw3qKpL5KMpud24hv2Etqp+4eE14K/wjjfafPLcPXzLM2ldEyNdc8cA
	 s+Np3nERAyqmM9tm8s6sFCwvDLy8SlHzWS2lXMS4=
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Simple installation on BTRFS
Date: Thu, 27 Jul 2023 17:18:14 +0100
Message-ID: <2203025.72vocr9iq0@lenovo>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart2605479.7s5MMGUR32";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-PPP-Message-ID: 
 <169047469557.1114510.14197959682786618300@cloud220.unlimitedwebhosting.co.uk>
X-PPP-Vhost: kintzios.com
X-Rspamd-Queue-Id: 270A84081D
X-Rspamd-Server: mailclean11
X-Spamd-Result: default: False [-1.61 / 999.00];
	SIGNED_PGP(-2.00)[];
	MID_RHS_NOT_FQDN(0.50)[];
	MIME_GOOD(-0.20)[multipart/signed,text/plain];
	ONCE_RECEIVED(0.10)[];
	MX_GOOD(-0.01)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	FUZZY_BLOCKED(0.00)[rspamd.com];
	R_DKIM_ALLOW(0.00)[kintzios.com:s=default];
	RCVD_COUNT_ONE(0.00)[1];
	NEURAL_HAM(-0.00)[-0.998];
	FROM_EQ_ENVFROM(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB];
	FROM_HAS_DN(0.00)[];
	DMARC_POLICY_ALLOW(0.00)[kintzios.com,none];
	RCVD_TLS_ALL(0.00)[];
	ARC_NA(0.00)[];
	R_SPF_ALLOW(0.00)[+mx];
	DKIM_TRACE(0.00)[kintzios.com:+];
	REPLYTO_ADDR_EQ_FROM(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org];
	TO_DN_NONE(0.00)[];
	HAS_REPLYTO(0.00)[confabulate@kintzios.com]
X-Rspamd-Action: no action
X-Archives-Salt: 836d2379-29b1-4cd8-b637-094220983a78
X-Archives-Hash: 47ba7c6fc4c4a6a3592087925a6c74f1

--nextPart2605479.7s5MMGUR32
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="UTF-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Simple installation on BTRFS
Date: Thu, 27 Jul 2023 17:18:14 +0100
Message-ID: <2203025.72vocr9iq0@lenovo>
MIME-Version: 1.0

Although I've been using btrfs for the best part of 10 years I have not really 
done justice to it, because I have neither explored nor used enough most of 
its features.  I am now thinking of installing Gentoo on btrfs again, but this 
time I want to optimise the structure of btrfs subvolumes, to simplify 
snapshots and backups.

I see Ubuntu and derivates install the OS root fs under btrfs subvolume "@" 
and /home under subvolume "@home".  This makes storing snapshots of the two 
subvolumes under the btrfs top-volume, which remains unmounted, cleaner and 
reduces the chance of mixing up the fs you may end up in and operate on (live, 
or snapshot).

I have 3 partitions for /boot(ESP), / and /home, but have not yet created 
additional partitions for general data storage and backups.

What's your recommended approach and subvolume structure for the deployment of 
btrfs on Gentoo for a personal PC, if the primary objective is simplicity in 
maintenance, combined with ease of fs recovery?

Any gotchas I should be mindful of?

Your favoured snapshot/backup strategy?

NOTES:

The Gentoo wiki pages[1],[2] cover btrfs and RAID configurations, but I found 
some of it confusing; e.g.:

The impact of autodefrag on VM performance is noted, but then the example 
given proceeds to mount a subvolume for VM storage with 'autodefrag'.  :-/

Encryption is mentioned for VMs "... if the VM uses drive encryption, the 
whole compression strategy gets blown out of the water" but doesn't mention 
what type of encryption, or why/how this presents a problem.

Given btrfs does not offer fs level encryption, what could/would work to 
encrypt a subvolume, *without* requiring an initrd, or the introduction of 
encryption becoming orthogonal with snapshots and backups?  I am not clear on 
the best strategy and components to achieve this.  I'm also concerned of 
introducing an additional complexity layer in trying to recover btrfs when/if 
fs corruption creeps in.

PS. Please keep answers specific to btrfs, as comparisons with zfs are well 
covered in the interwebs.

[1] https://wiki.gentoo.org/wiki/Btrfs
[2] https://wiki.gentoo.org/wiki/Btrfs/Native_System_Root_Guide
--nextPart2605479.7s5MMGUR32
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmTCmMYACgkQseqq9sKV
ZxlvmRAA31gqGY7gX9tNY7K1VIafQJ2QcKK7l4F+OFeRdp4efEwr6LkJn/Wsrzje
evcWGpS8wo79vLsZwZtHAwupVG9xNRUcj6MEW3Yi3DPGnbBGoHBgpX2+MrU6DpoH
mYz+ZfG6oILOZkf5qH8FLZNNBB5i4kpHkRtFfuwoiLym4LQNsizuYPnzRqw3xyWI
IXzG2QJXqzNABKxdmbnc5AM0Y03hjNQLiQvLURM33ZhRBIkMY9IKj7C8KYxF+Bhd
MyHMZkESNcdy0P9LJXRs5t6iqB2x3bFBOlTJvcBmEsE945jsXaNtDRWzTgsiagL6
3WGpexD3r/Fx3LEd4KLzTVjLFm3upBTWtTHyktVNLqYj7D77ywYvFpvs1U7vs5MV
xNR+bUD/xfUusWWubw6CTcJub/9F5nokxM/utpkUUVNBEIB75pHR3J+fY98lkLST
+AiXD/+qvD9lSd1VIV+0xvhSIGo3JFRy4dlZ3DLNC6eCZ7wVwp+QGYQbOG1QO9+j
gx9UyxzoskC+9poUvYm2E8Nnw/L54RJfE2YCbGZ3jTLLa5iRpwcoCks/eC3I2yVZ
Pc4bi436x6IGC5Z8dnPNjsyi421+GI1qmoVVffCA5QIvH3eF4TXnlOrI6YSK7xoK
VtzWpyezN66nbx38Alvxi1nSu1uy6WluOdaYmiYpPg2TcbCF1nw=
=Vkre
-----END PGP SIGNATURE-----

--nextPart2605479.7s5MMGUR32--