NVMe Timeout Issue – Analysis & Fix¶
✅ Issue Summary¶
- Kernel logs show:
- Indicates NVMe controller resets due to power state latency.
- Drive health (SMART):
percentage_used: 9% (healthy)media_errors: 0unsafe_shutdowns: 60 (possible power instability)- Performance tests (
fio) show disk is healthy.
🔍 Root Cause¶
- Aggressive NVMe power saving (APST) allows up to 100 ms latency (
default_ps_max_latency_us=100000). - Combined with previous unsafe shutdowns, this can cause I/O timeouts.
✅ Fix: Disable NVMe Power Saving¶
Temporary (runtime):¶
Permanent (RHEL/CentOS/Rocky):¶
- Edit GRUB: Add:
- Update GRUB:
(For UEFI:
/boot/efi/EFI/redhat/grub.cfg) - Reboot:
- Verify:
✅ Monitoring Commands¶
- Check NVMe errors:
- Check APST status:
- Check SMART health: