From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id C70471FF138 for ; Wed, 18 Mar 2026 13:47:01 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 356553623D; Wed, 18 Mar 2026 13:47:12 +0100 (CET) From: Stoiko Ivanov To: pve-devel@lists.proxmox.com Subject: [RFC docs/storage/zfsonlinux 0/4] allow replication/migration with zfs native encryption Date: Wed, 18 Mar 2026 13:40:13 +0100 Message-ID: <20260318124659.374754-1-s.ivanov@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1773837983423 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.981 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 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED 0.408 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_RPBL_BLOCKED 0.819 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. RCVD_IN_VALIDITY_SAFE_BLOCKED 0.903 ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. 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: OCPCYSU4RMARHWMUDPVER6VGQMM6TUSE X-Message-ID-Hash: OCPCYSU4RMARHWMUDPVER6VGQMM6TUSE X-MailFrom: s.ivanov@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: 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. My initial (quite limited) tests indicates that it works as intended (storage-replication/migration of containers, live and offline migration of a VM). As is the functionality is quite versatile - guests can be send from encrypted to unencrypted storages and vice versa. The encryption state of a guest-disk/ volume is solely defined by the storage on each node, it is not a property of the guest-disk, and not enforced. 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 encrypted 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. the second patch for pve-storage is optional - I'm not sure if always printing the warning helps or would raise more questions than it answers. For the whole series: Suggested-by: Fabian Grünbichler [0] https://github.com/openzfs/zfs/pull/18240 zfsonlinux: Stoiko Ivanov (1): cherry-pick patch for unencrypted send ...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.patch pve-storage: Stoiko Ivanov (2): fix #2350: zfspool: send without preserving encryption zfspool: export: skip hardcoded warning about no-preserve-encryption flag src/PVE/Storage/ZFSPoolPlugin.pm | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) pve-docs: Stoiko Ivanov (1): storage: zfspool: add documention on encryption pve-storage-zfspool.adoc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) Summary over all repositories: 4 files changed, 343 insertions(+), 3 deletions(-) -- Generated by murpp 0.10.0