[smartmontools-support] nvme drive partial support

Kwon-Young Choi kwon-young.choi at hotmail.fr
Wed Nov 11 14:01:30 CET 2020


Hello,

Thank you for your reply.

> Please retry smartctl command with unset locale to see the English error
> message:
> LANG= /usr/sbin/smartctl -l error /dev/nvme0n1

Here is the output of `LANG= /usr/sbin/smartctl -l error /dev/nvme0n1`:

```
$ sudo LANG= /usr/sbin/smartctl -l error /dev/nvme0n1
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.9.3-1-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF SMART DATA SECTION ===
Read Error Information Log failed: NVME_IOCTL_ADMIN_CMD: Interrupted
system call
```

> Do other tools read the error log properly, for example "nvme get-log
> ..." from nvme-cli package ?

`nvme get-log` can read the error log with no problem, I think:

```
$ sudo nvme get-log /dev/nvme0 --log-id=2 --log-len=512
[sudo] Mot de passe de kwon-young :
Device:nvme0 log-id:2 namespace-id:0xffffffff
       0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
0000: 00 30 01 64 0a 02 00 00 00 00 00 00 00 00 00 00 ".0.d............"
0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0020: eb 40 4f 00 00 00 00 00 00 00 00 00 00 00 00 00 ". at O............."
0030: 81 95 43 01 00 00 00 00 00 00 00 00 00 00 00 00 "..C............."
0040: 88 7f fb 03 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0050: 65 0c da 10 00 00 00 00 00 00 00 00 00 00 00 00 "e..............."
0060: 03 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0070: 24 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "$..............."
0080: 9e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0090: 70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "p..............."
00a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
00b0: f0 54 03 00 00 00 00 00 00 00 00 00 00 00 00 00 ".T.............."
00c0: 00 00 00 00 00 00 00 00 30 01 00 00 00 00 00 00 "........0......."
00d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
00e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
00f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
01f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "................"
```

and `sudo nvme smart-log /dev/nvme0`:

```
$ sudo nvme smart-log /dev/nvme0
Smart Log for NVME device:nvme0 namespace-id:ffffffff
critical_warning                        : 0
temperature                             : 31 C
available_spare                         : 100%
available_spare_threshold               : 10%
percentage_used                         : 2%
endurance group critical warning summary: 0
data_units_read                         : 5,193,963
data_units_written                      : 21,206,404
host_read_commands                      : 66,813,839
host_write_commands                     : 282,725,724
controller_busy_time                    : 1,027
power_cycles                            : 1,828
power_on_hours                          : 158
unsafe_shutdowns                        : 112
media_errors                            : 0
num_err_log_entries                     : 218,352
Warning Temperature Time                : 0
Critical Composite Temperature Time     : 0
Temperature Sensor 1           : 31 C
Thermal Management T1 Trans Count       : 0
Thermal Management T2 Trans Count       : 0
Thermal Management T1 Total Time        : 0
Thermal Management T2 Total Time        : 0
```

Best regards,

Kwon-Young Choi

On 11/11/2020 13:00, Christian Franke wrote:
> Kwon-Young Choi wrote:
>> I have a nvme drive that seems to have problems with smartctl:
>>
>> I first reported this bug to the kde team because their smart frontend
>> was not working: https://bugs.kde.org/show_bug.cgi?id=428844
>> You can find all the related information on the bug report.
>>
>> However, the problem seems to come from smartctl itself.
> 
> Please retry smartctl command with unset locale to see the English error
> message:
> LANG= /usr/sbin/smartctl -l error /dev/nvme0n1
> 
> If the the NVMe get error log command fails, there is possibly nothing
> we could do.
> 
> Do other tools read the error log properly, for example "nvme get-log
> ..." from nvme-cli package ?
> 
> Thanks,
> Christian
> 


More information about the Smartmontools-support mailing list