From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id C3BCA1FF065 for ; Mon, 23 Nov 2026 14:34:42 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 8D3A1216A3; Mon, 23 Nov 2026 14:34:30 +0100 (CET) From: Thomas Lamprecht 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 Message-ID: <20261123133412.3710030-1-t.lamprecht@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1795440861439 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.002 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) POISEN_SPAM_PILL 0.1 Meta: its spam POISEN_SPAM_PILL_1 0.1 random spam to be learned in bayes POISEN_SPAM_PILL_3 0.1 random spam to be learned in bayes RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: EPXDIS76HFNMTHYC7K26C375GWRBODG7 X-Message-ID-Hash: EPXDIS76HFNMTHYC7K26C375GWRBODG7 X-MailFrom: t.lamprecht@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: 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-, 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(-)