From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH v5 manager 24/26] ui: san: show that a namespace uses native multipath
Date: Mon, 23 Nov 2026 14:32:16 +0100 [thread overview]
Message-ID: <20261123133412.3710030-25-t.lamprecht@proxmox.com> (raw)
In-Reply-To: <20261123133412.3710030-1-t.lamprecht@proxmox.com>
The cluster-wide status lists the namespaces of NVMe over Fabrics
storages too. They use the native multipath of the kernel, with neither
an entry nor a storage that requests a map, so the Multipath column
would call them unmanaged. Show "Native" for them, as the LUN list of a
node does, and name them as namespaces in Paths by Node and in the wipe
dialog.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
---
www/manager6/dc/SAN.js | 16 ++++++++++++++--
www/manager6/window/SANLunState.js | 8 ++++----
www/manager6/window/SANLunWipe.js | 24 ++++++++++++++++--------
3 files changed, 34 insertions(+), 14 deletions(-)
diff --git a/www/manager6/dc/SAN.js b/www/manager6/dc/SAN.js
index e30b5ef48..fdf2935bf 100644
--- a/www/manager6/dc/SAN.js
+++ b/www/manager6/dc/SAN.js
@@ -15,6 +15,7 @@ Ext.define('pve-san-status', {
'name',
'explicit',
'multipath-storage',
+ 'native',
'nodes',
'size',
'used-by-storage',
@@ -118,6 +119,7 @@ Ext.define('PVE.dc.SANView', {
Ext.create('PVE.window.SANLunState', {
wwid: rec.get('wwid'),
name: rec.get('name'),
+ nvme: !!rec.get('native'),
autoShow: true,
});
let setupItem = (type) => ({
@@ -258,7 +260,11 @@ Ext.define('PVE.dc.SANView', {
disabled: !canModify,
handler: function (button) {
let lun = button.up('grid').getSelection()[0];
- let wwid = lun?.get('explicit') ? undefined : lun?.get('wwid');
+ // a namespace uses native multipath, which takes no entry
+ let wwid =
+ lun?.get('explicit') || lun?.get('native')
+ ? undefined
+ : lun?.get('wwid');
edit({ wwid, isCreate: true });
},
},
@@ -381,7 +387,13 @@ Ext.define('PVE.dc.SANView', {
width: 170,
renderer: (value, md, rec) => {
let storage = rec.get('multipath-storage');
- let kind = value ? 'manual' : storage ? 'storage' : 'unmanaged';
+ let kind = rec.get('native')
+ ? 'native'
+ : value
+ ? 'manual'
+ : storage
+ ? 'storage'
+ : 'unmanaged';
return Ext.htmlEncode(PVE.SANUtils.multipathText(kind, storage));
},
},
diff --git a/www/manager6/window/SANLunState.js b/www/manager6/window/SANLunState.js
index 5dfce247a..f84940fd8 100644
--- a/www/manager6/window/SANLunState.js
+++ b/www/manager6/window/SANLunState.js
@@ -23,12 +23,12 @@ Ext.define('PVE.window.SANLunState', {
let title = me.nvme
? gettext('Storage {0}: Namespace State')
: gettext('Storage {0}: LUN State');
+ let pathsTitle = me.nvme
+ ? gettext('Namespace {0}: Paths by Node')
+ : gettext('LUN {0}: Paths by Node');
me.title = me.storage
? Ext.String.format(title, me.storage)
- : Ext.String.format(
- gettext('LUN {0}: Paths by Node'),
- Ext.htmlEncode(me.name || me.wwid),
- );
+ : Ext.String.format(pathsTitle, Ext.htmlEncode(me.name || me.wwid));
// The other nodes set up the LUN of a new storage with their next status updates.
let pendingUntil = me.storage ? Date.now() + 60000 : 0;
let rstore = Ext.create('Proxmox.data.UpdateStore', {
diff --git a/www/manager6/window/SANLunWipe.js b/www/manager6/window/SANLunWipe.js
index 5a9d287e7..c75adcd5c 100644
--- a/www/manager6/window/SANLunWipe.js
+++ b/www/manager6/window/SANLunWipe.js
@@ -1,6 +1,5 @@
Ext.define('PVE.window.SANLunWipe', {
extend: 'Proxmox.window.Edit',
- title: gettext('Wipe LUN'),
onlineHelp: 'storage_multipath',
width: 550,
isCreate: true,
@@ -12,6 +11,8 @@ Ext.define('PVE.window.SANLunWipe', {
let me = this;
let lun = me.lun;
let name = lun.name || lun.wwid;
+ let nvme = lun.multipath === 'native';
+ me.title = nvme ? gettext('Wipe Namespace') : gettext('Wipe LUN');
me.url = `/nodes/${me.node}/disks/wipedisk`;
me.extraRequestParams = { disk: lun['by-id'] };
me.items = [
@@ -20,9 +21,13 @@ Ext.define('PVE.window.SANLunWipe', {
cls: 'pmx-hint',
html: Ext.htmlEncode(
Ext.String.format(
- gettext(
- 'Wipe LUN {0} using node "{1}"? All data on the LUN will be lost, for every host that accesses it!',
- ),
+ nvme
+ ? gettext(
+ 'Wipe namespace {0} using node "{1}"? All data on the namespace will be lost, for every host that accesses it!',
+ )
+ : gettext(
+ 'Wipe LUN {0} using node "{1}"? All data on the LUN will be lost, for every host that accesses it!',
+ ),
name,
me.node,
),
@@ -42,12 +47,15 @@ Ext.define('PVE.window.SANLunWipe', {
// the checks before the wipe see the storages of the cluster and the users of the LUN
// on this node, not what another host does with it
xtype: 'proxmoxcheckbox',
- boxLabel: gettext('No other host uses the LUN'),
+ boxLabel: nvme
+ ? gettext('No other host uses the namespace')
+ : gettext('No other host uses the LUN'),
submitValue: false,
getErrors: function () {
- return this.getValue()
- ? []
- : [gettext('Confirm that no other host uses the LUN.')];
+ let error = nvme
+ ? gettext('Confirm that no other host uses the namespace.')
+ : gettext('Confirm that no other host uses the LUN.');
+ return this.getValue() ? [] : [error];
},
},
{
next prev parent reply other threads:[~2026-11-23 13:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 13:31 applied: [PATCH v5 storage,docs,manager 00/26] NVMe over Fabrics storage Thomas Lamprecht
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 ` Thomas Lamprecht [this message]
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-25-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.