Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With a033019 smartd does not run scheduled tests on NVME devices (ATAs are fine) #218

Open
arcivanov opened this issue Nov 5, 2023 · 2 comments · May be fixed by #219
Open

With a033019 smartd does not run scheduled tests on NVME devices (ATAs are fine) #218

arcivanov opened this issue Nov 5, 2023 · 2 comments · May be fixed by #219

Comments

@arcivanov
Copy link

arcivanov commented Nov 5, 2023

The relevant smartd.conf:

DEVICESCAN -a -l xerror -l offlinests -m root@localhost -M test -n standby,10,q -s (O/../.././(00|06|12|18)|S/../.././01|L/../../6/03)

The Linux system has sda, sdb, sdc and nvme0.

sda - sdc look like this:

smartctl pre-7.5 (build date Oct 16 2023) [x86_64-linux-6.5.9-200.fc38.x86_64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Samsung based SSDs
Device Model:     Samsung SSD 870 EVO 1TB
...

SMART Extended Self-test Log Version: 1 (1 sectors)
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      3248         -
# 2  Extended offline    Completed without error       00%      3228         -
# 3  Short offline       Completed without error       00%      3224         -
# 4  Short offline       Completed without error       00%      3200         -
# 5  Short offline       Completed without error       00%      3176         -
# 6  Short offline       Completed without error       00%      3152         -
# 7  Short offline       Completed without error       00%      3128         -
# 8  Short offline       Completed without error       00%      3104         -
# 9  Short offline       Completed without error       00%      3080         -
#10  Extended offline    Completed without error       00%      3060         -
#11  Short offline       Completed without error       00%      3056         -
#12  Short offline       Completed without error       00%      3032         -
#13  Short offline       Completed without error       00%      3008         -
#14  Short offline       Completed without error       00%      2984         -
#15  Short offline       Completed without error       00%      2960         -
#16  Short offline       Completed without error       00%      2936         -
#17  Short offline       Completed without error       00%      2912         -
#18  Extended offline    Completed without error       00%      2892         -
#19  Short offline       Completed without error       00%      2888         -

But for nvme0 the situation is different:

smartctl pre-7.5 (build date Oct 16 2023) [x86_64-linux-6.5.9-200.fc38.x86_64] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       Samsung SSD 970 EVO 250GB

...

Error Information (NVMe Log 0x01, 16 of 64 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS  Message
  0        190     0  0x000c  0x4004      -            0     0     -  Invalid Field in Command

Self-test Log (NVMe Log 0x06)
Self-test status: No self-test in progress
Num  Test_Description  Status                       Power_on_Hours  Failing_LBA  NSID Seg SCT Code
 0   Short             Completed: failed segments             1617     65075488     1   7   -    -

The failing short was launched manually via smartctl -t short /dev/nvme0

As you can see from history no regularly scheduled tests are performed on NVME on the same system where they are successfully performed on eligible ATA devices.

@chrfranke
Copy link

NVMe self-test support in smartmontools is a new feature currently only implemented in smartctl, see ticket 1649.

arcivanov added a commit to arcivanov/smartmontools that referenced this issue Nov 5, 2023
@arcivanov arcivanov linked a pull request Nov 5, 2023 that will close this issue
@arcivanov
Copy link
Author

@chrfranke Please see the above PR adding the missing functionality.

arcivanov added a commit to arcivanov/smartmontools that referenced this issue Nov 5, 2023
arcivanov added a commit to arcivanov/smartmontools that referenced this issue Nov 5, 2023
arcivanov added a commit to arcivanov/smartmontools that referenced this issue Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants