Use this when NVMe drives error, disappear or slow down.
NVMe Troubleshooting
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.
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.
symptom → kernel log → device log → link/thermal/firmware
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
sudo nvme smart-log <device>Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Checks Verify boundary
critical_warning= 0 andpercentage_usedbelow 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=0as a workaround).
Step 3 Common mistakes Narrow the fault
- Not checking
nvme smart-logand firmware version.
- Controller resets show in dmesg.
- Thermal throttling slows drives.
- Firmware updates fix many issues.
nvme smart-log /dev/nvme0— health/temperaturenvme error-log /dev/nvme0— errorsdmesg | 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'
| Symptom | Likely cause |
|---|---|
| Drive missing after reboot | Slot/bifurcation setting, firmware, power |
| Lower throughput than spec | PCIe link width/speed, thermal throttling |
| Timeouts and controller resets | Firmware bug, APST power state, failing drive |
percentage_used near 100 | Rated 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
| Symptom | Likely cause | Check |
|---|---|---|
I/O ... timeout, aborting and controller reset | Firmware, power state transitions, thermals, PCIe link | Firmware version, temperature, nvme_core.default_ps_max_latency_us |
| Drive disappears under load | Overheating or PCIe link errors | smart-log temperature, lspci -vv link status, AER errors |
media_errors > 0 | Unrecoverable media errors | Replace |
critical_warning non-zero | Spare low, temperature, read-only mode | Act 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 load | SLC 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).
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.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%