From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH v4 storage,docs,manager 00/25] NVMe over Fabrics storage
Date: Mon, 23 Nov 2026 02:47:37 +0100 [thread overview]
Message-ID: <20261123020041.3728085-1-t.lamprecht@proxmox.com> (raw)
A storage type for NVMe subsystems reached over TCP, on top of the
applied SAN series [0]: namespaces as base volumes of shared LVM, or
directly as raw VM disks, using the kernel's native NVMe multipath.
This is a deliberately small first version: TCP only, without
authentication or TLS, so access relies on the target's host NQN list
and a dedicated storage network. The plugin connects missing portals and
never disconnects controllers on config change or removal; disconnecting
a controller is an explicit per-node action. The kernel handles path
reconnection, and the SAN series provides LUN inventory, guided setup,
and pre-write guards.
Two operational prerequisites:
- Cloned nodes need distinct /etc/nvme/hostnqn and /etc/nvme/hostid
before connecting.
- All cluster nodes must be upgraded to pve-manager 9.2.38 before
adding the first nvmeof storage, as older nodes drop unknown storage
types when writing storage.cfg; creating the first one is refused
until all nodes are online on 9.2.38+.
What it adds:
- Storage type 'nvmeof' (subsysnqn + TCP portals, one storage per
subsystem, isolated properties, volumes as nvme-<wwid>,
ctrl_loss_tmo=-1, configurable fast-io-fail-tmo defaulting to 120s).
- Shared LVM support with nvmeof volumes as base, discovery via
/nodes/{node}/scan/nvmeof and 'pvesm scan nvmeof', and nvme-cli as a
Recommends of libpve-storage-perl.
- /nodes/{node}/san/nvmeof for host identity, controller listing, and
guarded per-controller disconnect (refused if a namespace in use or
referenced by a storage would lose its last usable path).
- Cluster-wide SAN status and pvestatd path notifications covering
nvmeof namespaces (without requiring multipathd), plus pvereport
output and documentation.
- Web UI: guided "Shared LVM on NVMe over Fabrics" setup, nvmeof
storage dialog with discovery, Node > SAN > NVMe over Fabrics
controller view, host NQN column, and native multipath state display.
Changes since v3 [1]:
- Cluster version & packaging: refuse adding the first nvmeof storage
until all nodes run pve-manager 9.2.38+, and add versioned package
relations assuming the next releases: libpve-storage-perl 9.1.23
(depending on libpve-common-perl 9.2.14 and breaking pve-manager <<
9.2.38), pve-docs 9.2.21, and pve-manager 9.2.38.
- Local disk & wipe isolation: omit TCP/RDMA namespaces from Node >
Disks and Ceph OSD selection (keeping NVMe/FC listed for local LVM
setup), and refuse local wipe on TCP/RDMA namespaces, their
partitions, and detached namespaces without a controller.
- Activation & config hardening: bound activation connect attempts
(~45s without a live controller, ~15s once one is live) and
check_connection (15s); fail activation when all controllers are
reconnecting; keep busy-lock waits out of cooldown while arming
cooldown on hanging connects; clear cooldown on portal edits; refuse
enabling direct image use while an LVM storage uses the subsystem as
base; reject ASCII control chars in NQNs; trim padded discovery
fields; preserve nvme-cli diagnostics on errors.
- Disconnect hardening: also check exclusive claims (e.g. mounts in
other mount namespaces) and non-multipath namespaces numbered after
the subsystem, tolerate brief openers (<1s, e.g. LVM scans), and
give disconnect a 300s lock budget for large subsystems.
- Reporting & notifications: notify on namespaces even without
multipathd; treat unreadable sysfs attributes as incomplete rather
than absent; track absence per source (maps vs namespaces) and label
namespaces as such.
- Web UI & docs: clear stale discovery state immediately when the
discovery portal changes, ignore leading/trailing spaces on typed
portals (also in the shared iSCSI setup), improve narrow-screen
layout of the controller view, refine wipe/edit wording, and update
the storage chapter and cluster API docs.
Tested on a six-node nested cluster against Linux nvmet and a NetApp
AFF A20 (two portals each): both guided setups, live migrations, single
and dual path cuts under write I/O with namespace notifications across
all nodes, restricted users, cluster-version refusal during upgrade,
local disk/wipe exclusions, and removal via wipe + Disconnect in the
web UI. Remaining edge cases (time limits, brief openers, detached
namespaces, multipathd-free notifications, etc.) are covered by unit
tests.
The ZFS-over-NVMe/TCP plugin on the list [2] ships its own initiator;
isolated properties prevent option clashes, and connect helpers can be
shared later. Leaving NVMe/FC partition wipes and Ceph OSDs on NVMe/FC
aligned with Fibre Channel LUNs is left for a SAN-wide follow-up.
[0]: https://lore.proxmox.com/pve-devel/20261119194655.3163258-1-t.lamprecht@proxmox.com/
[1]: https://lore.proxmox.com/pve-devel/20261122012605.1848824-1-t.lamprecht@proxmox.com/
[2]: https://lore.proxmox.com/pve-devel/20261005002609.571-1-joaquinvarela@neatech.ar/
pve-storage:
Thomas Lamprecht (14):
diskmanage: skip SMART queries for NVMe fabric namespaces
diskmanage: list NVMe namespaces attached over TCP or RDMA for SAN only
api: disks: refuse a local wipe of a network NVMe namespace
nvmeof: add a storage for NVMe over Fabrics subsystems
d/control: bump pve-common for plain parameter error names
api: config: check the cluster version before the first nvmeof storage
lvm: allow a volume group on an NVMe over Fabrics namespace
api: scan: add NVMe over Fabrics discovery
pvesm: add a scan command for NVMe over Fabrics
api: san luns: attribute NVMe namespaces to storage
api: add node-level NVMe over Fabrics status and controller removal
multipath: report the NVMe host NQN of each node
multipath: report NVMe over Fabrics namespaces in the cluster status
d/control: break pve-manager versions without namespace notifications
ApiChangeLog | 9 +-
debian/control | 5 +-
src/PVE/API2/Disks.pm | 14 +
src/PVE/API2/Makefile | 1 +
src/PVE/API2/NVMeOF.pm | 200 ++++++
src/PVE/API2/SAN/Cluster.pm | 38 +-
src/PVE/API2/SAN/Node.pm | 17 +-
src/PVE/API2/Storage/Config.pm | 5 +
src/PVE/API2/Storage/Scan.pm | 49 ++
src/PVE/CLI/pvesm.pm | 13 +
src/PVE/Diskmanage.pm | 58 +-
src/PVE/Makefile | 1 +
src/PVE/Multipath/Status.pm | 72 +-
src/PVE/NVMeOF.pm | 514 +++++++++++++
src/PVE/Storage.pm | 2 +
src/PVE/Storage/LVMPlugin.pm | 3 +-
src/PVE/Storage/Makefile | 1 +
src/PVE/Storage/NVMeOFPlugin.pm | 300 ++++++++
src/PVE/Storage/Plugin.pm | 2 +-
src/PVE/Storage/SAN.pm | 32 +-
src/test/Makefile | 6 +
src/test/disk_api_test.pm | 20 +-
.../multipath/disklist_expected.json | 16 -
.../nvme_smart/nvme0n1/device/transport | 1 +
src/test/disklist_test.pm | 104 ++-
src/test/run_multipath_api_tests.pl | 132 +++-
src/test/run_nvmeof_api_tests.pl | 222 ++++++
src/test/run_nvmeof_taint_tests.pl | 67 ++
src/test/run_nvmeof_tests.pl | 680 ++++++++++++++++++
src/test/run_san_api_tests.pl | 4 +-
src/test/run_san_lun_scan_tests.pl | 41 ++
src/test/run_san_nvme_tests.pl | 33 +
32 files changed, 2580 insertions(+), 82 deletions(-)
pve-docs:
Thomas Lamprecht (1):
storage: document NVMe over Fabrics storages
notifications.adoc | 5 +-
pve-gui.adoc | 12 ++-
pve-intro.adoc | 3 +-
pve-storage-lvm.adoc | 10 +-
pve-storage-multipath.adoc | 3 +-
pve-storage-nvmeof.adoc | 200 +++++++++++++++++++++++++++++++++++++
pvesm.adoc | 24 +++--
7 files changed, 236 insertions(+), 21 deletions(-)
pve-manager:
Thomas Lamprecht (10):
report: add the NVMe over Fabrics host NQN and subsystems
ui: storage: add NVMe over Fabrics storage
ui: lvm: offer NVMe over Fabrics storages as base storage
ui: storage: add a guided setup for shared LVM on NVMe over Fabrics
ui: node san: list NVMe over Fabrics controllers
ui: san: show the NVMe host NQN of each node
ui: san: show that a namespace uses native multipath
pvestatd: notify on NVMe over Fabrics namespaces as on multipath maps
ui: storage: SAN setup: ignore spaces around a typed portal
d/control: bump versioned dependencies for NVMe over Fabrics
PVE/MultipathNotification.pm | 21 +-
PVE/Report.pm | 6 +
PVE/Service/pvestatd.pm | 16 +-
debian/control | 8 +-
test/MultipathNotification_test.pl | 28 ++-
www/manager6/Makefile | 4 +-
www/manager6/SANUtils.js | 7 +-
www/manager6/Utils.js | 7 +
www/manager6/dc/SAN.js | 49 +++-
www/manager6/dc/StorageView.js | 23 +-
www/manager6/node/Config.js | 9 +-
www/manager6/node/NVMeOFControllers.js | 170 +++++++++++++
www/manager6/storage/IScsiEdit.js | 5 +-
www/manager6/storage/LVMEdit.js | 12 +-
www/manager6/storage/NVMeOFEdit.js | 162 ++++++++++++
www/manager6/storage/wizard/LunSelect.js | 35 ++-
www/manager6/storage/wizard/NodeIdentities.js | 57 +++--
.../storage/wizard/{IScsi.js => Target.js} | 236 +++++++++++++-----
www/manager6/storage/wizard/Wizard.js | 62 +++--
www/manager6/window/SANLunState.js | 38 ++-
www/manager6/window/SANLunWipe.js | 24 +-
21 files changed, 792 insertions(+), 187 deletions(-)
next reply other threads:[~2026-11-23 2:02 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 1:47 Thomas Lamprecht [this message]
2026-11-23 1:47 ` [PATCH v4 storage 01/25] diskmanage: skip SMART queries for NVMe fabric namespaces Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 02/25] diskmanage: list NVMe namespaces attached over TCP or RDMA for SAN only Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 03/25] api: disks: refuse a local wipe of a network NVMe namespace Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 04/25] nvmeof: add a storage for NVMe over Fabrics subsystems Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 05/25] d/control: bump pve-common for plain parameter error names Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 06/25] api: config: check the cluster version before the first nvmeof storage Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 07/25] lvm: allow a volume group on an NVMe over Fabrics namespace Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 08/25] api: scan: add NVMe over Fabrics discovery Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 09/25] pvesm: add a scan command for NVMe over Fabrics Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 10/25] api: san luns: attribute NVMe namespaces to storage Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 11/25] api: add node-level NVMe over Fabrics status and controller removal Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 12/25] multipath: report the NVMe host NQN of each node Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 13/25] multipath: report NVMe over Fabrics namespaces in the cluster status Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 storage 14/25] d/control: break pve-manager versions without namespace notifications Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 docs 15/25] storage: document NVMe over Fabrics storages Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 16/25] report: add the NVMe over Fabrics host NQN and subsystems Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 17/25] ui: storage: add NVMe over Fabrics storage Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 18/25] ui: lvm: offer NVMe over Fabrics storages as base storage Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 19/25] ui: storage: add a guided setup for shared LVM on NVMe over Fabrics Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 20/25] ui: node san: list NVMe over Fabrics controllers Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 21/25] ui: san: show the NVMe host NQN of each node Thomas Lamprecht
2026-11-23 1:47 ` [PATCH v4 manager 22/25] ui: san: show that a namespace uses native multipath Thomas Lamprecht
2026-11-23 1:48 ` [PATCH v4 manager 23/25] pvestatd: notify on NVMe over Fabrics namespaces as on multipath maps Thomas Lamprecht
2026-11-23 1:48 ` [PATCH v4 manager 24/25] ui: storage: SAN setup: ignore spaces around a typed portal Thomas Lamprecht
2026-11-23 1:48 ` [PATCH v4 manager 25/25] d/control: bump versioned dependencies for NVMe over Fabrics Thomas Lamprecht
2026-11-23 13:35 ` superseded: [PATCH v4 storage,docs,manager 00/25] NVMe over Fabrics storage Thomas Lamprecht
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=20261123020041.3728085-1-t.lamprecht@proxmox.com \
--to=t.lamprecht@proxmox.com \
--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