Skip to content

Research notes / NVMe access

NVMe multipath: ANA access states and Linux path policies

Published 15 October 2026 / Updated 16 October 2026 / Specification and source-code review

A non-optimized NVMe path can still carry I/O. ANA describes access through a controller; it does not report one global health state for the stored data.

One group, different controller views

An ANA group collects namespaces that undergo access-state transitions together relative to a controller. Its identifier is scoped to the NVM subsystem. The same group can be optimized through controller A and non-optimized through B. A group is neither a physical cable nor an independent failure domain. [1, section 8.1.1]

ANA meanings for one controller-group relationship, not a whole-array health score. Pinned Base 2.3. [1]
StateInterpretation
OptimizedUsable with optimized access characteristics.
Non-optimizedUsable, potentially less efficient; not equivalent to failure.
InaccessibleUser-data access unavailable through this controller; recovery remains possible.
Persistent lossUser-data access remains unavailable through this controller. This relationship cannot transition to another ANA state. Other controllers may still provide access; this is not proof of global media loss.
ChangeAn ANA transition, not a transport reconnection. This transient state need not be observed by the host.

Identify the namespace before comparing paths

Two devices ending in n1 are not necessarily the same namespace. Linux v6.12 assigns device-name instances separately from protocol NSIDs. Its shared-path lookup is subsystem-scoped, with sharing and identifier-consistency checks; it does not merge arbitrary devices because one identifier matches. [7]

Addressing, identity and access state answer different questions.
IdentifierWhat it identifies
NSIDA namespace handle, not a global identity. Within one subsystem, shared namespaces keep the same NSID across their attached controllers. [1, section 3.2.1.6]
NGUID / EUI64 / namespace UUIDNamespace identity, distinct from filesystem UUIDs or partition GUIDs. NGUID and EUI64 remain fixed for the namespace lifetime, including controller reset and format; an all-zero field supplies no identifier. [8] Linux also checks the command-set identifier when comparing shared-path identities. [7]
Subsystem NQNThe subsystem, not one namespace or transport endpoint. It is distinct from the host NQN. [9, section 4.5]

Base 2.3 requires subsystem-wide NSID uniqueness with Namespace Management, ANA Reporting, NVM Sets or Sanitize Namespace support. Without these, private namespaces may repeat NSIDs. NSIDs can change across power-off. [1, section 3.2.1.6]

Lifetime stability does not mean never reused: NSFEAT.UIDREUSE=0 permits nonzero NGUID/EUI64 reuse after deletion; UIDREUSE=1 prohibits it. That rule does not describe UUID reuse. [1, section 4.7.1.4 and Figure 335]

Hesela's operational inference: retain identity observations with their collection time and namespace creation/deletion history. Matching a historical identifier is evidence to investigate, not permission to assume unchanged data or bypass inconsistent-device warnings.

The cross-subsystem exception

A dispersed namespace can be exposed through multiple participating NVM subsystems. Its NSID can differ between them. Base 2.3 uses a common NGUID or namespace UUID for cross-subsystem recognition, not EUI64; when both NGUID and UUID exist, NGUID is the common identifier. [1, section 8.1.10.2]

The host-support contract also requires identification beyond NSID alone. [1, section 8.1.10.3] This specification feature does not establish that the pinned Linux implementation or a deployed host supports cross-subsystem path aggregation. Verify the actual stack before treating matching identifiers as interchangeable paths.

Read identity, then read access state

Use nvme get-ns-id with the selected namespace block device to obtain its NSID, rather than deriving it from the filename. The v2.11 command requires a block device, not a controller character device. [10]

For example, nvme get-ns-id /dev/nvme0n1 only illustrates the command form: substitute the device you have actually identified. Keep the subsystem NQN, controller and transport information alongside the namespace report, then compare ANA views as described below. These observations do not test failover or authenticate a target.

Definitions: NVMe NSID, NVMe namespace identifiers and subsystem NQN.

Access preference comes before load balancing

Linux native multipath combines paths to the same namespace within an NVM subsystem into one block device. NUMA favors locality, round-robin rotates eligible paths, and queue-depth considers active I/O. All prefer optimized over non-optimized access. Round-robin therefore does not promise equal traffic across every connected controller. [3]

In Linux v6.12, queue-depth uses controller-level nr_active counters, not just this namespace's outstanding requests or an individual hardware queue's occupancy. It is not a measured-latency ranking. An idle non-optimized route does not outrank a busy optimized route. [2, nvme_queue_depth_path]

The module iopolicy supplies a default copied into a subsystem. For an existing subsystem, inspect /sys/class/nvme-subsystem/nvme-subsysX/iopolicy; reading only the module default does not establish the policy actually in use. This distinction is pinned to v6.12, not every distribution's backports. [2]

Optimized access is not a latency measurement

Gunawi et al. studied 101 operator-reported fail-slow incidents from 12 institutions, covering 2000-2017. A report could represent repeated incidents; the collection was not a random sample or a device-time denominator. It supports the existence of performance faults, not an NVMe ANA failure rate. [6, section 2]

The study describes how retries and error correction can preserve service while making it slow. It also argues for monitoring across hardware layers. It did not evaluate ANA or Linux v6.12 path policies. [6, sections 3.2 and 6.2]

Hesela's inference: keep access state and observed performance as separate evidence. An optimized label cannot establish that a path has the lowest latency under the current workload. Compare like-for-like I/O sizes, read/write mixes and observation windows before attributing a slowdown to path selection. See latency measurement limits.

Collect topology and access evidence separately

nvme list-subsys reports subsystem and controller topology; a device argument limits the report to controllers and subsystems leading to that device. Keep the selected namespace, controller identifiers and collection time with the output. A topology snapshot is not a failover measurement. [5]

nvme ana-log retrieves the ANA log from a controller character device. The --groups option omits the namespace listing, so that output alone cannot reconstruct group membership. Compare reports from the relevant controllers rather than treating one response as a universal view. [4]

Capacity reports also need controller context. Base 2.3 specifies that some Identify Namespace fields, including NUSE and NVMCAP, are cleared when accurate capacity information is unavailable in inaccessible or persistent-loss states. Use an optimized or non-optimized controller's report; these zeros do not establish that the namespace is empty. [1, sections 8.1.1.6-8.1.1.7]

These are inspection interfaces, not instructions to disconnect production paths. Hesela's review checklist is to record the kernel and tool versions, namespace identity, group membership, each controller's state and the effective subsystem policy before interpreting an incident.

What this does not guarantee

If no eligible path exists, Linux can requeue I/O or fail it. A usable alternate path is not a guarantee of interruption-free recovery. [2, nvme_ns_head_submit_bio]

Architectural implication: alternative routes are not additional copies of the data. Check shared switches, controllers and backing media before claiming independent failure protection. ANA also does not fence a stale writer or settle whether a timed-out write completed. See storage fencing and uncertain completion after timeouts.

We reviewed pinned documents and code; we did not perform hardware experiments. No latency bound, availability percentage or durability claim follows from this review.

Corpus: ANA group, NVMe multipath I/O policy, ANA, NVMe multipath and NVMe namespace.

Primary sources

  1. NVM Express Base Specification 2.3 (1 August 2025), sections 3.2.1.6, 4.7.1.4, 8.1.1, 8.1.10 and Figure 335. Pinned edition, not a claim about the latest revision.
  2. Linux v6.12, drivers/nvme/host/multipath.c: ANA selection, controller nr_active accounting and subsystem iopolicy.
  3. Linux kernel documentation: native NVMe multipath policies.
  4. nvme-cli v2.11: nvme-ana-log(1), controller log request and groups-only option.
  5. nvme-cli v2.11: nvme-list-subsys(1), subsystem/controller topology and device filtering.
  6. Gunawi et al. (FAST 2018), Fail-Slow at Scale: Evidence of Hardware Performance Faults in Large Production Systems, pp. 1-14; methodology and monitoring limits.
  7. Linux v6.12, drivers/nvme/host/core.c: nvme_find_ns_head, nvme_init_ns_head and device naming.
  8. NVM Express NVM Command Set Specification 1.0c (3 October 2022), Figure 97: NGUID and EUI64 lifetime and zero values.
  9. NVM Express Base Specification 2.0c (4 October 2022), section 4.5: NVMe Qualified Names.
  10. nvme-cli v2.11: nvme-get-ns-id(1), namespace ID for a selected block device.

Base 2.3 is the reviewed edition, not a claim about the latest standard. No publisher text, figure or hardware trace is reproduced.

Published by Hesela team · Published · Updated

Report a correction · Editorial standards · Reuse guidance

Change history

: first published.

: latest recorded update. A detailed change note is not available for this revision.

New-publication RSS · Correction RSS

Cite this page
Hesela team. NVMe multipath: ANA access states and Linux path policies. Hesela. 2026-10-16. https://hesela.com/analyses/nvme-multipath-ana-path-selection/