From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: applied: [PATCH v5 storage,docs,manager 00/26] NVMe over Fabrics storage
Date: Mon, 23 Nov 2026 14:31:52 +0100 [thread overview]
Message-ID: <20261123133412.3710030-1-t.lamprecht@proxmox.com> (raw)
This has been already applied in the current form, sorry for the noise,
but I figured this is the cleaner way than replying to v4 with an
exhaustive list of changes.
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 v4 [1], mostly from its automated review:
- New first patch: do not activate a new storage with the storage
configuration locked (see below).
- Volumes & guards: only accept namespaces that native multipath joins
(a namespace device of a single controller is refused); refuse SAN
reference checks when the subsystem NQN cannot be read; refuse an
LVM base storage that serves its namespaces as disk images, also
when reusing an existing VG, and an unidentifiable namespace instead
of treating it as a local disk; the LVM dialog hides such bases.
- Activation: take liveness from the controller state after a connect,
and report that no controller is live, instead of "not online", when
every portal already has a non-live controller.
- Disconnect: recheck paths (including a last path that recovered),
namespace heads by WWID, controller-owned devices and the controller
identity right before removal; walks over a subsystem refuse an
unreadable sysfs directory instead of treating it as empty.
- Wipe: separate messages for a partition of a network namespace, an
unknown transport, and a transport that changed meanwhile.
- Web UI: the controller list explains its namespace count, and the
portal trim moved before the NVMe-oF setup, as a fix of the existing
iSCSI one.
- Docs: direct use and LVM on the same subsystem exclude each other,
discovery ports (8009, then 4420), the multipath prerequisite on the
target side, and that the guided setup needs discovery.
- Smaller: shared node and transport helpers, clearer errors and
commit messages.
The first patch is a generic fix: adding a storage activated it while
holding the cluster-wide storage.cfg lock, so an unreachable iSCSI or
NVMe over Fabrics portal blocked every other storage configuration
change meanwhile. The activation now runs once the configuration is
written, retried once as pvestatd may activate the new storage at the
same time, and a storage that still fails is removed again. An LVM
storage on such a base gets its base activated before the lock.
Tested as v4, and for these changes on the nested cluster against Linux
nvmet and the NetApp AFF A20: activation and paths of all namespaces
through the new head check, Disconnect of a redundant controller and
refusal of the last path on both targets, and the guided setup end to
end with the release packages on all six nodes; the rest 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/20261123020041.3728085-1-t.lamprecht@proxmox.com/
[2]: https://lore.proxmox.com/pve-devel/20261005002609.571-1-joaquinvarela@neatech.ar/
pve-storage:
Thomas Lamprecht (15):
api: config: activate a new storage without holding the lock
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 | 20 +-
debian/control | 5 +-
src/PVE/API2/Disks.pm | 23 +
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 | 74 +-
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 | 69 +-
src/PVE/NVMeOF.pm | 566 ++++++++++++++
src/PVE/Storage.pm | 2 +
src/PVE/Storage/LVMPlugin.pm | 24 +-
src/PVE/Storage/Makefile | 1 +
src/PVE/Storage/NVMeOFPlugin.pm | 307 ++++++++
src/PVE/Storage/Plugin.pm | 2 +-
src/PVE/Storage/SAN.pm | 34 +-
src/test/Makefile | 10 +
src/test/disk_api_test.pm | 26 +-
.../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 | 287 +++++++
src/test/run_nvmeof_taint_tests.pl | 67 ++
src/test/run_nvmeof_tests.pl | 714 ++++++++++++++++++
src/test/run_san_api_tests.pl | 4 +-
src/test/run_san_lun_scan_tests.pl | 41 +
src/test/run_san_nvme_tests.pl | 65 ++
src/test/run_storage_create_tests.pl | 120 +++
33 files changed, 2991 insertions(+), 100 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 | 207 +++++++++++++++++++++++++++++++++++++
pvesm.adoc | 24 +++--
7 files changed, 243 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: SAN setup: ignore spaces around a typed portal
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
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 | 175 +++++++++++++
www/manager6/storage/IScsiEdit.js | 5 +-
www/manager6/storage/LVMEdit.js | 20 +-
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, 805 insertions(+), 187 deletions(-)
next reply other threads:[~2026-11-23 13:34 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 13:31 Thomas Lamprecht [this message]
2026-11-23 13:31 ` [PATCH v5 storage 01/26] api: config: activate a new storage without holding the lock Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 02/26] diskmanage: skip SMART queries for NVMe fabric namespaces Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 03/26] diskmanage: list NVMe namespaces attached over TCP or RDMA for SAN only Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 04/26] api: disks: refuse a local wipe of a network NVMe namespace Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 05/26] nvmeof: add a storage for NVMe over Fabrics subsystems Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 06/26] d/control: bump pve-common for plain parameter error names Thomas Lamprecht
2026-11-23 13:31 ` [PATCH v5 storage 07/26] api: config: check the cluster version before the first nvmeof storage Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 08/26] lvm: allow a volume group on an NVMe over Fabrics namespace Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 09/26] api: scan: add NVMe over Fabrics discovery Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 10/26] pvesm: add a scan command for NVMe over Fabrics Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 11/26] api: san luns: attribute NVMe namespaces to storage Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 12/26] api: add node-level NVMe over Fabrics status and controller removal Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 13/26] multipath: report the NVMe host NQN of each node Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 14/26] multipath: report NVMe over Fabrics namespaces in the cluster status Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 storage 15/26] d/control: break pve-manager versions without namespace notifications Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 docs 16/26] storage: document NVMe over Fabrics storages Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 17/26] report: add the NVMe over Fabrics host NQN and subsystems Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 18/26] ui: storage: add NVMe over Fabrics storage Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 19/26] ui: lvm: offer NVMe over Fabrics storages as base storage Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 20/26] ui: storage: SAN setup: ignore spaces around a typed portal Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 21/26] ui: storage: add a guided setup for shared LVM on NVMe over Fabrics Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 22/26] ui: node san: list NVMe over Fabrics controllers Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 23/26] ui: san: show the NVMe host NQN of each node Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 24/26] ui: san: show that a namespace uses native multipath Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 25/26] pvestatd: notify on NVMe over Fabrics namespaces as on multipath maps Thomas Lamprecht
2026-11-23 13:32 ` [PATCH v5 manager 26/26] d/control: bump versioned dependencies for NVMe over Fabrics 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=20261123133412.3710030-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.