From: Joaquin Varela <joaquinvarela@neatech.ar>
To: pve-devel@lists.proxmox.com
Subject: [PATCH storage v5 00/13] add ZFS over NVMe/TCP storage plugin
Date: Thu, 26 Nov 2026 12:09:41 -0300 [thread overview]
Message-ID: <20261126150956.310593-1-joaquinvarela@neatech.ar> (raw)
Hi,
this is v5 of the zfsnvme backend, rebased on current master for Proxmox VE
9.3. v4 was never sent, so the changes below are against v3.
The new nvmeof storage connects to namespaces that an array already serves.
zfsnvme creates and manages the zvols on a Linux ZFS host and exports them
with the kernel nvmet target, with DH-HMAC-CHAP, snapshots and clones. So the
two complement each other. zfsnvme now uses the nvmeof helpers where they fit:
the host lock, host_identity and parse_portal. It keeps its own connect, which
writes /dev/nvme-fabrics, so the DH-HMAC-CHAP secret never shows up in argv.
Changes since v3:
- storage API 17: isolated properties, a sensitive dhchap-key, titles,
advanced and hidden properties, vm-vol and vm-state content
- volume names use the same character set as ZFS over iSCSI
- the delete hook only removes the key file, so it does no remote work
while the storage.cfg lock is held. The subsystem stays on the target
until the admin removes it, as the docs describe.
- the plugin is taint safe for pvedaemon and pveproxy, with a perl -T test
- the plugin loads nvme-tcp on the nodes
- deactivation checks the users of a namespace with the Diskmanage helpers
and only deletes controllers it still owns, checked under the host lock
- the old 3/4, the fencing of abandoned target commands, is dropped. It was
the only shell control flow on the target.
- patch 5 lets the SAN view, the wipe check and the controller list count a
zfsnvme storage as the owner of its subsystem. The cluster multipath
status still lists only nvmeof namespaces.
- patch 6 checks the cluster version before the first zfsnvme storage, like
for nvmeof. The version there, 9.3.2, is a guess. Please adapt it to the
first pve-manager that will depend on this.
- smaller patches, so none hits the size limit of the list, and fewer
comments
Patch 5 would also fit the hook that Dirk Nehring proposed for SAN LUNs of
other plugins [0]. zfsnvme could then answer that hook instead of the type
check.
Every patch builds and passes make test on a PVE 9.3 node. On a lab cluster
with two PVE 9.3 nodes, a Linux nvmet target and two paths, the series passed
adding the storage over the API (also a failed add and its retry), volume
allocation, live migration both ways, snapshot and rollback (also with RAM
state), template and linked clone, resize, a target reboot and the loss of one
path with a running guest, and an nvmeof storage on the same target. The SAN
guards held as well: a node where the guest does not run refused to wipe its
namespace and to disconnect its last path.
The docs and manager patches follow in this thread.
v3: https://lore.proxmox.com/pve-devel/20261005002609.571-1-joaquinvarela@neatech.ar/
[0]: https://lore.proxmox.com/pve-devel/20261124200340.380381-1-dnehring@marcant.net/
Joaquin Varela (13):
zfsnvme: add target state parsing and planning
zfsnvme: add the target transactions
zfsnvme: add storage configuration and volume methods
zfsnvme: connect the nodes and register the plugin
api: san luns: count zfsnvme storages as owners of their subsystem
api: config: check the cluster version before the first zfsnvme
storage
test: zfsnvme: add configuration and volume tests
test: zfsnvme: add node side tests
test: zfsnvme: add an in-memory nvmet target
test: zfsnvme: test the target parsers and planners
test: zfsnvme: test the target flows
test: zfsnvme: add a fault sweep, renderer and taint tests
zfsnvme: wait up to 30 seconds for the shared storage lock
src/PVE/API2/NVMeOF.pm | 7 +-
src/PVE/API2/SAN/Cluster.pm | 6 +-
src/PVE/API2/SAN/Node.pm | 5 +-
src/PVE/API2/Storage/Config.pm | 13 +-
src/PVE/CLI/pvesm.pm | 21 +-
src/PVE/NVMeOF.pm | 6 +
src/PVE/Storage.pm | 2 +
src/PVE/Storage/Makefile | 1 +
src/PVE/Storage/NVMeOFPlugin.pm | 4 +-
src/PVE/Storage/Plugin.pm | 12 +-
src/PVE/Storage/SAN.pm | 16 +-
src/PVE/Storage/ZFSNVMePlugin.pm | 2947 +++++++++++
src/test/Makefile | 4 +
src/test/run_nvmeof_api_tests.pl | 16 +-
src/test/run_nvmeof_tests.pl | 47 +
src/test/run_plugin_tests.pl | 2 +
src/test/run_san_lun_scan_tests.pl | 11 +
src/test/run_san_nvme_tests.pl | 4 +
src/test/run_zfsnvme_taint_tests.pl | 988 ++++
.../zfsnvme_fixtures/configfs_snapshot.txt | 38 +
src/test/zfsnvme_fixtures/zfs_inventory.txt | 15 +
src/test/zfsnvme_target_test.pm | 4514 +++++++++++++++++
src/test/zfsnvme_test.pm | 2881 +++++++++++
23 files changed, 11535 insertions(+), 25 deletions(-)
create mode 100644 src/PVE/Storage/ZFSNVMePlugin.pm
create mode 100755 src/test/run_zfsnvme_taint_tests.pl
create mode 100644 src/test/zfsnvme_fixtures/configfs_snapshot.txt
create mode 100644 src/test/zfsnvme_fixtures/zfs_inventory.txt
create mode 100644 src/test/zfsnvme_target_test.pm
create mode 100644 src/test/zfsnvme_test.pm
base-commit: 3ac027fd9fcd8fdfe6bb3acb1e4b58e8cd1cfde8
--
2.54.0.windows.1
next reply other threads:[~2026-11-26 15:10 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 15:09 Joaquin Varela [this message]
2026-11-26 15:09 ` [PATCH storage v5 01/13] zfsnvme: add target state parsing and planning Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 02/13] zfsnvme: add the target transactions Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 03/13] zfsnvme: add storage configuration and volume methods Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 04/13] zfsnvme: connect the nodes and register the plugin Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 05/13] api: san luns: count zfsnvme storages as owners of their subsystem Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 06/13] api: config: check the cluster version before the first zfsnvme storage Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 07/13] test: zfsnvme: add configuration and volume tests Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 08/13] test: zfsnvme: add node side tests Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 09/13] test: zfsnvme: add an in-memory nvmet target Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 10/13] test: zfsnvme: test the target parsers and planners Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 11/13] test: zfsnvme: test the target flows Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 12/13] test: zfsnvme: add a fault sweep, renderer and taint tests Joaquin Varela
2026-11-26 15:09 ` [PATCH storage v5 13/13] zfsnvme: wait up to 30 seconds for the shared storage lock Joaquin Varela
2026-11-26 15:10 ` [PATCH docs v5] storage: document ZFS over NVMe/TCP Joaquin Varela
2026-11-26 15:11 ` [PATCH manager v5] ui: storage: add ZFS over NVMe/TCP editor Joaquin Varela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261126150956.310593-1-joaquinvarela@neatech.ar \
--to=joaquinvarela@neatech.ar \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox