ANA group
An ANA group is a set of NVMe namespaces whose ANA access states change together for a given controller.
ANAGRPID identifies the group and must be unique within an NVM subsystem. A valid identifier is non-zero and not greater than ANAGRPMAX, and NANAGRPID reports how many groups a controller supports. Both fields are 0h when ANA reporting is not supported. [1]
Namespaces in one group change ANA state only together and must belong to the same domain. A group may contain zero or more namespaces, NVM Sets or Endurance Groups, and how namespaces are assigned to groups is outside the specification. Unless the ANAGIDCS capability bit is set, a namespace's group identifier can change while it is attached, and the controller then issues an ANA change notice. [1]
Hosts read group state from log page 0Ch. Each descriptor has a 32-bit group identifier, a 32-bit NSID count, a 64-bit change count and a 4-bit state, followed by 4-byte NSIDs, and descriptors are returned in ascending identifier order. The state codes are 01h optimized, 02h non-optimized, 03h inaccessible, 04h persistent loss and 0Fh change. An open-source host library declares the same 32-byte header. [1] [3]
The same group can have different ANA states through different controllers, and a controller returns a descriptor only for groups with namespaces attached to it. A group is not a physical path or an independent failure domain. [1]
Relations
Advantages
- A single descriptor reports the state of every member namespace, so a host need not query each namespace separately. [1]
Limitations
- A change count of 0h means the controller does not report one, so the host must compare descriptor contents to detect changes. [1]
Citations
- NVM Express Base Specification 2.3 (1 August 2025), sections 5.2.12.1.13 and 8.1.1: Asymmetric Namespace Access. Pinned edition, not the latest revision.
- libnvme v1.13: ANA log page and ANA group descriptor definitions
Further reading
Sources & caveats
- base23 was reread on the access date in sections 5.2.12.1.13 and 8.1.1.2 and in Figures 228 and 328.
- libnvme-types is the types header of the open-source host library at tag v1.13, read for the ANA log page and group descriptor structures and the state values.
- 0Ch, the field widths and the state codes come from base23. The 32-byte header follows from the field sizes in both sources.