NVMe: Difference between revisions

From DWIKI
mNo edit summary
Line 60: Line 60:
===Show unallocated capacity===
===Show unallocated capacity===
  nvme id-ctrl /dev/nvme1|grep '''unvmcap'''
  nvme id-ctrl /dev/nvme1|grep '''unvmcap'''
==NVMe over fabric==
===NVMe/TCP Host===
See [https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/managing_storage_devices/configuring-nvme-over-fabrics-using-nvme-tcp_managing-storage-devices#configuring-an-nvme-tcp-host_configuring-nvme-over-fabrics-using-nvme-tcp Configuring an NVMe/TCP host]
modprobe
===Client===
modprobe nvme_tcp
====Show remote connections====
nvme list-subsys


=Monitoring nvme=
=Monitoring nvme=

Revision as of 16:42, 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


NVMe over fabric

NVMe/TCP Host

See Configuring an NVMe/TCP host

modprobe 

Client

modprobe nvme_tcp

Show remote connections

nvme list-subsys

Monitoring nvme


FAQ

Failed to open /dev/nvme-fabrics: No such file or directory

modprobe nvme-tcp