Pcornel
Storage · Physical Storage Media › NVMe

NVMe Troubleshooting

Cheat sheet · https://pcornel.dk/topic.php?topic=3899

Back to the Topic

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.

Remember

  • Controller resets show in dmesg.
  • Thermal throttling slows drives.
  • Firmware updates fix many issues.

First checks

  • nvme smart-log /dev/nvme0 — health/temperature
  • nvme error-log /dev/nvme0 — errors
  • dmesg | grep -i nvme — timeouts/resets

Commands

sudo nvme smart-log <device>
NVMe SMART/health log.
nvme smart-log /dev/nvme0
Display NVMe SMART/health log.

Verify in this order

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

Where it usually breaks

First mismatch in media/firmware → device controller → interface/link → host driver → block device → upper storage layer; preserve identity/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3899

Confirmation

Confirm action

Continue?