smartctl self test in progress status on WD drives

Joined
Jun 2, 2019
Messages
591
BACKGROUND

I bought a used NAS on evilBay really cheap and it has WD Reds (CMR) drives.

Code:
=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD40EFRX-68N32N0


On my NAS with Seagate drives, when I initiate an extended (long) self test, I can dump the smartctl -a and it will appear as in progress and percent remaining.

Code:
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Self-test routine in progress 90%     37830         -


When I do the same thing on a WD drive, it does not list as in progress, but if I attempt to initiate an additional test, it replies that one is already in progress.


Code:
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Conveyance offline  Completed without error       00%     37278         -
# 2  Short offline       Completed without error       00%     37278         -
# 3  Extended offline    Interrupted (host reset)      10%     37278         -
# 4  Extended offline    Aborted by host               90%     37264         -
# 5  Short offline       Completed without error       00%     18258         -

root@NAS-4[~]# smartctl -t long /dev/sda
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.120+truenas] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Can't start self-test without aborting current test (50% remaining),
add '-t force' option to override, or run 'smartctl -X' to abort test.



QUESTION

Is this common for WD drives?
 
Joined
Oct 22, 2019
Messages
3,641
You can usually still see the progress if you invoke smartctl -a

Look near the top of the disk's information and you'll see a "remaining" status on the currently running selftest. Look for the section named "Self-test execution status".
 
Last edited:

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
To check on progress, I use
Code:
for drive in /dev/ada?; do sudo smartctl -a $drive | grep -A2 '^Self-test execution status:'; done
and afterwards
Code:
for drive in /dev/ada?; do sudo smartctl -a $drive | grep -A2 '^SMART Self-test log'; done
after the execution status is 0 for all disks.

I don't have too many disks in the NAS devices, but it's still over 40 with different models and manufactures. They are all a little different. It looks like the SMART implementation always differs, even if only slightly.
 
Top