Hetzner - DokuWiki

NVMe/en

Inhaltsverzeichnis

NVMe

NVME (Non-Volatile Memory Express) is a specification for accessing drives via PCI Express, that is specifically tailored to the needs of non-volatile memory. The connection via PCIe Gen3 x4 offers, for example, up to four times faster access speed and lower latencies than conventional SATA interfaces. Thanks to a high degree of parallelism and low energy consumption, current and future memory requirements are met.

Characteristics

NVMe SSDs are addressed differently than SATA drives. The first NVMe-SSD is called /dev/nvme0n1 instead of /dev/sda. The n after nvme0 stands for Namespace. The first partition on this SSD is /dev/nvme0n1p1 instead of /dev/sda1

The scheme is:

/dev/nvme(Controller number)n(Namespace)p(Partition)

nvme-cli

To manage NVMe SSDs, the nvme-cli tool can be used on Linux.

In the Hetzner Rescue System, this tool is preinstalled.

Show list of all detected NVMe SSDs

nvme list
Node             SN                   Model                                    Version  Namespace Usage                      Format           FW Rev
---------------- -------------------- ---------------------------------------- -------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     S1XXNYAGAXXXXX       SAMSUNG MZVPV512HDGL-00000               1.1      1         102.40  GB / 512.11  GB    512   B +  0 B   BXW7300Q
/dev/nvme1n1     S1XXNYAGAYYYYY       SAMSUNG MZVPV512HDGL-00000               1.1      1         102.40  GB / 512.11  GB    512   B +  0 B   BXW7300Q

Show the serial number

nvme id-ctrl /dev/nvme0n1|egrep "sn|mn"
sn      : S1XXNYAGAXXXXX
mn      : SAMSUNG MZVPV512HDGL-00000

Show the SMART log

nvme smart-log /dev/nvme0n1
critical_warning                    : 0
temperature                         : 38 C
available_spare                     : 100%
available_spare_threshold           : 10%
percentage_used                     : 2%
data_units_read                     : 11,154,582
data_units_written                  : 26,350,216
host_read_commands                  : 654,517,238
host_write_commands                 : 825,794,277
controller_busy_time                : 814
power_cycles                        : 123
power_on_hours                      : 3,188
unsafe_shutdowns                    : 73
media_errors                        : 0
num_err_log_entries                 : 61
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0

Show the error log

nvme error-log /dev/nvme0n1


© 2018. Hetzner Online GmbH. Alle Rechte vorbehalten.