SUSE Support

Here When You Need Us

'nvme list -v' does not list the namespaces corresponding to some controllers

This document (000021164) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15 Service Pack 5
SUSE Linux Enterprise Server 15 Service Pack 4

Situation

When the host is configured to connect to an  NVMe TCP target using two different host NQNs, 'nvme list -v' command does not list the namespaces corresponding to some controllers under the "Namespaces" column.

The output may also list controllers that are not related to a namespace under the "Controllers" column. 

Example:

Actual results:
 
#nvme list -v
[...]

Device   SN                   MN                                       FR       TxPort Asdress        Subsystem    Namespaces
-------- -------------------- ---------------------------------------- -------- ------ -------------- ------------ ----------------
nvme0    6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 nvme0n1
nvme14   6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 
nvme16   6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 
nvme2    6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 nvme0n1
[...]
Device       Generic      NSID       Usage                      Format           Controllers
------------ ------------ ---------- -------------------------- ---------------- ----------------
/dev/nvme0n2 /dev/ng0n2   0x76         0.00   B / 161.06  GB    512   B +  0 B   nvme2, nvme0
/dev/nvme0n1 /dev/ng0n1   0x75        13.74  GB / 214.75  GB    512   B +  0 B   nvme2, nvme0

Expected results:
 
Device   SN                   MN                                       FR       TxPort Asdress        Subsystem    Namespaces
-------- -------------------- ---------------------------------------- -------- ------ -------------- ------------ ----------------
nvme0    6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 nvme0n1
nvme14   6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,,trsvcid=4420 nvme-subsys0 nvme0n2
nvme16   6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,trsvcid=4420 nvme-subsys0 nvme0n2
nvme2    6VL0BD3              dellemc-powerstore                       2.1.0.0  tcp    traddr=<target IP>,,trsvcid=4420 nvme-subsys0 nvme0n1
[...]
Device       Generic      NSID       Usage                      Format           Controllers
------------ ------------ ---------- -------------------------- ---------------- ----------------
/dev/nvme0n1 /dev/ng0n1   0x75        13.74  GB / 214.75  GB    512   B +  0 B   nvme0, nvme2
/dev/nvme0n2 /dev/ng0n2   0x76         0.00   B / 161.06  GB    512   B +  0 B   nvme14, nvme16

 

Resolution

Fixes can be found in these updates released on 2023-08-04:

SUSE Linux Enterprise Server 15 Service Pack 5
nvme-cli-2.4+24.ga1ee20-150500.4.6.1

* Thu Jul 27 2023 dwagner@suse.de
- Update to version 2.4+24.ga1ee20:
  * nvme-print-stdout: Do not show non reachable ns in namespace topology (bsc#1212598)
  * nvme-print-stdout: List only ctrls which are part of ns bsc#1212598)
  * nvme-print-stdout: Support subsys reachable from several hosts bsc#1212598)
  * ccan: Add htable, strset and dependencies bsc#1212598)
  * ccan: Remove unused documentation bsc#1212598)
  * nvme-print: fix counter while looping through uuid_list (bsc#bsc#1212598)

libnvme1-1.4+27.g5ae1c3-150500.4.6.1

* Thu Jul 27 2023 dwagner@suse.de
- Update to version 1.4+27.g5ae1c3:
  * nvme-tree: avoid warning in 'list-subsys' (bsc#bsc#1212598)
  * tree: Scan all subsystems (bsc#bsc#1212598)

SUSE Linux Enterprise Server 15 Service Pack 4
nvme-cli-2.0+47.ga43da6-150400.3.21.1

* Thu Jul 27 2023 dwagner@suse.de
- Update to version 2.0+47.ga43da6:
  * nvme-print-stdout: Do not show non reachable ns in namespace topology
    (bsc#1212598)
  * nvme-print-stdout: List only ctrls which are part of ns (bsc#1212598)
  * nvme-print-stdout: Support subsys reachable from several hosts
    (bsc#1212598)
  * ccan: Add htable, strset and dependencies (bsc#1212598)
  * ccan: Remove unused documentation (bsc#1212598)

libnvme1-1.0+48.g707b7a-150400.3.24.1

* Thu Jul 27 2023 dwagner@suse.de
- Update to version 1.0+48.g64a3e9:
  * nvme-tree: avoid warning in 'list-subsys' (bsc#1212598)
  * tree: Scan all subsystems (bsc#1212598)


 

Cause

nvme-cli does not handle the scenario of host using two host NQNs.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021164
  • Creation Date: 11-Aug-2023
  • Modified Date:11-Aug-2023
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.