用 nvme smart-log 检查 NVMe 健康
读取 NVMe 硬盘的温度、磨损和错误计数。
运行 sudo nvme smart-log /dev/nvme0,打印该盘的 SMART 健康数据。
01命令
命令
$ sudo nvme smart-log /dev/nvme002作用说明
nvme-cli 直接与 NVMe 设备通信,报告已用寿命百分比、可用备用块、温度和错误计数,可在硬盘损坏前预测磨损。无头服务器没有图形界面,这类检查应放进监控脚本。
03风险
!注意: 该命令需要 root 打开设备,且只适用于 NVMe 盘,不适用 SATA SSD。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- nvme-smart-log.1.en.html manual page (Debian bookworm)依据: Documents nvme smart-log and the reported health fields.
最后验证: 2026-10-13 · 分类: 系统与设置