Pcornel
Browse topics
Options
Recent
Favorites
Storage · Technical reference

NVMe Troubleshooting

Direct answer

Troubleshoot NVMe with nvme list, nvme smart-log for wear, temperature and media errors, nvme error-log, dmesg for controller resets or timeouts, PCIe link width and speed (lspci -vv), and firmware versions.

When to use this

Use this when NVMe drives error, disappear or slow down.

First 30 seconds

1. NVMe problems: timeouts, resets, thermal throttling, link downgrade, firmware.

2. Check temperature and cooling.

3. Check PCIe link and AER.

4. Power-saving (APST) bugs: nvme_core.default_ps_max_latency_us=0.

5. Update firmware.

Operational verification

symptom → kernel log → device log → link/thermal/firmware

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Physical storage media and interfaces
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformPhysical storage media and interfaces · Linux
Key commandsudo nvme smart-log <device>
Scope / prerequisiteUse this when NVMe drives error, disappear or slow down.
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence0
On this pageJump to a specific section
Storage command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Checks Verify boundary
  • critical_warning = 0 and percentage_used below 100.
  • No growing media_errors.
  • Temperature below throttle threshold.
  • Firmware current (nvme fw-log).
Step 2 Common causes Narrow the fault
  • Thermal throttling (check temperature).
  • Firmware bugs — update firmware.
  • PCIe link errors (AER messages in dmesg).
  • APST power-state issues on some drives (nvme_core.default_ps_max_latency_us=0 as a workaround).
Step 3 Common mistakes Narrow the fault
  • Not checking nvme smart-log and firmware version.
Key points
  • Controller resets show in dmesg.
  • Thermal throttling slows drives.
  • Firmware updates fix many issues.
Key checks
  • nvme smart-log /dev/nvme0 — health/temperature
  • nvme error-log /dev/nvme0 — errors
  • dmesg | grep -i nvme — timeouts/resets
ReferenceHow it works1 section · depth on demand

Method

Start with what the drive and kernel report:

nvme list                                  # is the drive enumerated?
nvme smart-log /dev/nvme0                  # critical_warning, media_errors, percentage_used, temperature
nvme error-log /dev/nvme0 | head
dmesg | grep -i nvme                       # resets, timeouts, 'controller is down'
lspci -vv -s <slot> | grep -E 'LnkSta|AER'
SymptomLikely cause
Drive missing after rebootSlot/bifurcation setting, firmware, power
Lower throughput than specPCIe link width/speed, thermal throttling
Timeouts and controller resetsFirmware bug, APST power state, failing drive
percentage_used near 100Rated endurance consumed — plan replacement

APST-related resets on some consumer drives can be tested with nvme_core.default_ps_max_latency_us=0.

ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

NVMe has its own logs; read them before replacing the drive

# nvme list
Node          SN            Model               Namespace Usage          Format       FW Rev
/dev/nvme0n1  21234X        WDS200T1X0E-00AFY0  1         2.00 TB/2.00 TB 512 B + 0 B  614900WD
# nvme smart-log /dev/nvme0
# nvme error-log /dev/nvme0 -e 16
Error Log Entries for device:nvme0 entries:16
 Entry[ 0]
error_count     : 12
sqid            : 3
status_field    : 0x4004(Invalid Field in Command)
# journalctl -k | grep -i nvme
nvme nvme0: I/O 412 QID 5 timeout, aborting

nvme-error-log(1) retrieves the NVMe Error Information log from a controller (/dev/nvme0) or namespace device. -e sets the number of entries (default 64), and -o json gives machine-readable output.

Symptom table

SymptomLikely causeCheck
I/O ... timeout, aborting and controller resetFirmware, power state transitions, thermals, PCIe linkFirmware version, temperature, nvme_core.default_ps_max_latency_us
Drive disappears under loadOverheating or PCIe link errorssmart-log temperature, lspci -vv link status, AER errors
media_errors > 0Unrecoverable media errorsReplace
critical_warning non-zeroSpare low, temperature, read-only modeAct on the specific bit
Error-log entries with "Invalid Field"Often harmless (software issued unsupported commands)Correlate with real I/O errors
Slow writes after sustained loadSLC cache exhausted (normal for consumer drives)Compare with datasheet steady-state speed

Firmware

Many NVMe timeout problems are fixed in vendor firmware. Check the current revision with nvme id-ctrl /dev/nvme0 | grep fr and compare with the vendor's release notes before replacing hardware.

Illustrative example (not a system capture).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Commands

nvme list
nvme smart-log /dev/nvme0
nvme error-log /dev/nvme0
nvme id-ctrl /dev/nvme0 | grep -E 'mn|fr'
dmesg | grep -i nvme

Thermal and power

Drives throttle above their warning temperature (nvme smart-log → warning_temp_time, critical_comp_time). Add heatsinks/airflow; for laptops and some drives, aggressive APST power states cause timeouts — check dmesg for controller is down; will reset.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docPhysical storage media and interfaces current

Authoritative/upstream documentation reviewed for bounded claims in Physical Storage Media → NVMe → NVMe Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://nvmexpress.org/specifications/ · confidence 94%
Confirmation

Confirm action

Continue?