Opened 5 years ago

Last modified 18 months ago

#1300 new enhancement

Man page provides no clue how to interpret NVMe error log

Reported by: xypron Owned by:
Priority: minor Milestone: unscheduled
Component: smartctl Version:
Keywords: nvme Cc: xypron

Description

sudo smartctl -a /dev/nvme0

reports a lot of errors

=== START OF INFORMATION SECTION ===
Model Number: Samsung SSD 960 PRO 512GB
...
Error Information (NVMe Log 0x01, max 64 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS
  0       1181     0  0x0015  0x421a  0x028            0     0     -
  1       1180     0  0x0013  0x4212  0x028            0     0     -
  2       1179     0  0x0015  0x421a  0x028            0     0     -
  3       1178     0  0x0013  0x4212  0x028            0     0     -

But unfortunately neither the smartctl output nor the man pag provides any clue how to interpret this output.

I think the documentation should provide both a description of each of the error log columns as well as links to the documents describing the values seen here.

Change History (5)

comment:1 by xypron, 5 years ago

Cc: xypron added

comment:2 by xypron, 5 years ago

sudo nvme error-log /dev/nvme0

provides a bit more information

Error Log Entries for device:nvme0 entries:64
.................
 Entry[ 0]   
.................
error_count  : 1181
sqid         : 0
cmdid        : 0x15
status_field : 0x421a(FEATURE_NOT_SAVEABLE: The Feature Identifier specified does not support a saveable value)
parm_err_loc : 0x28
lba          : 0
nsid         : 0
vs           : 0
cs           : 0
.................
 Entry[ 1]   
.................
error_count  : 1180
sqid         : 0
cmdid        : 0x13
status_field : 0x4212(INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested)
parm_err_loc : 0x28
lba          : 0
nsid         : 0
vs           : 0
cs           : 0
.................

The nvme-cli tool is available here: https://github.com/linux-nvme/nvme-cli.

As both smartmontools and nvme-cli are under GPLv2 it should be easy to just copy the status field texts to smartmontools.

comment:3 by xypron, 5 years ago

Here are some commands that provoke one of the errors I observed:

sudo nvme sanitize-log /dev/nvme0
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

sudo nvme self-test-log /dev/nvme0
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

sudo nvme endurance-log /dev/nvme0
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

sudo nvme ana-log /dev/nvme0
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

sudo nvme changed-ns-list-log /dev/nvme0
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

sudo nvme telemetry-log /dev/nvme0 -o foo
NVMe status: INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested(0x2109)

comment:4 by Christian Franke, 5 years ago

Component: allsmartctl
Keywords: nvme added
Milestone: unscheduled
Summary: Man page provides no clue how to interpret error logMan page provides no clue how to interpret NVMe error log

comment:5 by Christian Franke, 18 months ago

Related: r5471.

smartctl -l error ... now prints an error message:

Error Information (NVMe Log 0x01, 16 of 64 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS  Message
  0       1206     0  0x0075  0x4212  0x028            0     1     -  Invalid Log Page
  1       1205     0  0x003f  0xc004      -            0     0     -  Invalid Field in Command
  2       1204     0  0x001d  0x4212  0x028            0     -     -  Invalid Log Page
  3       1203     0  0x0002  0x4004  0x028            0     0     -  Invalid Field in Command
Note: See TracTickets for help on using tickets.