NVMe: Difference between revisions

From DWIKI
mNo edit summary
Line 20: Line 20:
Example: '''/dev/nvme0n2p3'''
Example: '''/dev/nvme0n2p3'''


Means nvme device 0, namespace 2 partition 3
Means nvme device 0, namespace 2, partition 3
The first namespace, '''n1''', will always exist


==Namespaces==
==Namespaces==
*[https://nvmexpress.org/resource/nvme-namespaces/ nvme namespaces]
*[https://www.drewthorst.com/posts/nvme/namespaces/readme/ Drew Thorstensen - NVME namespaces]
*https://narasimhan-v.github.io/2020/06/12/Managing-NVMe-Namespaces.html


=HOWTO=
=HOWTO=
Line 37: Line 42:




*[https://nvmexpress.org/resource/nvme-namespaces/ nvme namespaces]
*[https://www.drewthorst.com/posts/nvme/namespaces/readme/ Drew Thorstensen - NVME namespaces]
*https://narasimhan-v.github.io/2020/06/12/Managing-NVMe-Namespaces.html


===List namespaces===
===List namespaces===

Revision as of 14:06, 23 February 2023

NVM Express

Links

NVMe/TCP

Qemu and NVMe

Documentation

NVMe device names

Example: /dev/nvme0n2p3

Means nvme device 0, namespace 2, partition 3 The first namespace, n1, will always exist

Namespaces


HOWTO

List devices

nvme list

get details

nvme id-ctrl /dev/nvme0

if you want to find for example IP of a device:

nvme list-subsys /dev/nvme2n1

Namespaces

List namespaces

nvme list-ns /dev/nvme1

Show info about namespace

nvme id-ns /dev/nvme1n1

Show number of available namespaces

nvme id-ctrl /dev/nvme1|grep nn


Show total capacity

nvme id-ctrl /dev/nvme1|grep tnvmcap

Show unallocated capacity

nvme id-ctrl /dev/nvme1|grep unvmcap

Monitoring nvme