By Kappa Category storage
Tags flash storage nvme ssd smartmontools
Estimated Read Time: 3 min read
Ninja Level:

The nvme-cli tools and the command smartctl from smartmontools can check the healthiness of NVMe sticks.
- nvme-cli
nvme smart-log /dev/nvme0
Look for the field media_errors.
- smartmontools
Example:
smartctl -x -q noserial /dev/nvme0
Below are extracted from the smartmontools website:
Look for Media and Data Integrity Errors. I had a NVMe stick that this value was kept on rising. That NVMe stick had malfunctioned.
Some NVMe sticks are normal but it would keep on writing entries to Error Information Log, so I mostly ignored that field for those NVMe sticks.
So both methods would query the SMART data to check the healthiness of the NVMe sticks. nvme smart-log is better because it could also display the available spare of the device.
- Further reading (external sites):