From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id C5AB41FF13F for ; Thu, 07 May 2026 10:44:54 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 9E882FBFD; Thu, 7 May 2026 10:44:54 +0200 (CEST) Date: Thu, 07 May 2026 10:44:44 +0200 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= Subject: applied-series: [RFC docs/storage/zfsonlinux 0/4] allow replication/migration with zfs native encryption To: pve-devel@lists.proxmox.com, Stoiko Ivanov References: <20260318124659.374754-1-s.ivanov@proxmox.com> In-Reply-To: <20260318124659.374754-1-s.ivanov@proxmox.com> MIME-Version: 1.0 User-Agent: astroid/0.17.0 (https://github.com/astroidmail/astroid) Message-Id: <1778143461.uw5fmhb4sg.astroid@yuna.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1778143379643 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.054 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: PLWU2AIRRU43A5UZPKCVAVLVGL7WEDU7 X-Message-ID-Hash: PLWU2AIRRU43A5UZPKCVAVLVGL7WEDU7 X-MailFrom: f.gruenbichler@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: zfsonlinux bumped, rest just pushed for now. thanks! On March 18, 2026 1:40 pm, Stoiko Ivanov wrote: > OpenZFS recently got support for suppressing the encryption options while > sending with -Rp[0]. This patchset adds the (userland only) patch to our > zfsonlinux repository and uses the functionality to enable > volume_export and volume_import for encrypted ZFS datasets. >=20 > My initial (quite limited) tests indicates that it works as intended > (storage-replication/migration of containers, live and offline migration = of a > VM). >=20 > As is the functionality is quite versatile - guests can be send from encr= ypted > to unencrypted storages and vice versa. The encryption state of a guest-d= isk/ > volume is solely defined by the storage on each node, it is not a propert= y > of the guest-disk, and not enforced. >=20 > The main caveat I currently see is that the patches need to be present > on the receiving node before the first encrypted guest-disk is received: > Without the addition of `-x encryption` for `zfs recv` the disk would > get created/received without encryption, even if the root-dataset of the > storage is encrypted. As storage-migration is currently broken for encryp= ted > ZFS pools in any case this seems acceptable. Users would need to upgrade > all nodes to versions with these patches before migrating/replicating > the first guest disk on an encrypted zpool. >=20 > the second patch for pve-storage is optional - I'm not sure if always pri= nting > the warning helps or would raise more questions than it answers. >=20 > For the whole series: > Suggested-by: Fabian Gr=C3=BCnbichler >=20 > [0] https://github.com/openzfs/zfs/pull/18240 > zfsonlinux: >=20 > Stoiko Ivanov (1): > cherry-pick patch for unencrypted send >=20 > ...0015-Add-no-preserve-encryption-flag.patch | 306 ++++++++++++++++++ > debian/patches/series | 1 + > 2 files changed, 307 insertions(+) > create mode 100644 debian/patches/0015-Add-no-preserve-encryption-flag.p= atch >=20 >=20 > pve-storage: >=20 > Stoiko Ivanov (2): > fix #2350: zfspool: send without preserving encryption > zfspool: export: skip hardcoded warning about no-preserve-encryption > flag >=20 > src/PVE/Storage/ZFSPoolPlugin.pm | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) >=20 >=20 > pve-docs: >=20 > Stoiko Ivanov (1): > storage: zfspool: add documention on encryption >=20 > pve-storage-zfspool.adoc | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) >=20 >=20 > Summary over all repositories: > 4 files changed, 343 insertions(+), 3 deletions(-) >=20 > --=20 > Generated by murpp 0.10.0 >=20 >=20 >=20 >=20 >=20