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 A29781FF065 for ; Mon, 23 Nov 2026 03:02:35 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 6AA9D2182A; Mon, 23 Nov 2026 03:01:07 +0100 (CET) From: Thomas Lamprecht 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 Message-ID: <20261123020041.3728085-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: 1795399249290 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.003 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: MGJBALYZGLHIDLTWTHFFPBNYDSCGDM5X X-Message-ID-Hash: MGJBALYZGLHIDLTWTHFFPBNYDSCGDM5X 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: 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 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(-)