[smartmontools-support] I can't complete the long test

Carlos E. R. robin.listas at telefonica.net
Fri Apr 23 11:56:34 CEST 2021


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi,

On one disk (external, via USB) the long smart test is aborted, I don't know
why, and it never completes.  This is the data:


Isengard:~ # smartctl -a /dev/sdd
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.3.18-lp152.72-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Ultrastar He10/12
Device Model:     WDC WD80EZAZ-11TDBA0
Serial Number:    7...J
LU WWN Device Id: 5 000cca 257f51aff
Firmware Version: 83.H0A83
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.2, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Apr 23 11:25:01 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x80)	Offline data collection activity
 					was never started.
 					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
 					without error or no self-test has ever
 					been run.
Total time to complete Offline 
data collection: 		(   93) seconds.
Offline data collection
capabilities: 			 (0x5b) SMART execute Offline immediate.
 					Auto Offline data collection on/off support.
 					Suspend Offline collection upon new
 					command.
 					Offline surface scan supported.
 					Self-test supported.
 					No Conveyance Self-test supported.
 					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
 					power-saving mode.
 					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
 					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   2) minutes.
Extended self-test routine
recommended polling time: 	 (1051) minutes.
SCT capabilities: 	       (0x003d)	SCT Status supported.
 					SCT Error Recovery Control supported.
 					SCT Feature Control supported.
 					SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
   1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
   2 Throughput_Performance  0x0004   128   128   054    Old_age   Offline      -       116
   3 Spin_Up_Time            0x0007   210   210   024    Pre-fail  Always       -       309 (Average 317)
   4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       5998
   5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
   7 Seek_Error_Rate         0x000a   100   100   067    Old_age   Always       -       0
   8 Seek_Time_Performance   0x0004   128   128   020    Old_age   Offline      -       18
   9 Power_On_Hours          0x0012   099   099   000    Old_age   Always       -       10821
  10 Spin_Retry_Count        0x0012   100   100   060    Old_age   Always       -       0
  12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       5484
  22 Helium_Level            0x0023   100   100   025    Pre-fail  Always       -       100
192 Power-Off_Retract_Count 0x0032   093   093   000    Old_age   Always       -       9095
193 Load_Cycle_Count        0x0012   093   093   000    Old_age   Always       -       9095
194 Temperature_Celsius     0x0002   144   144   000    Old_age   Always       -       45 (Min/Max 17/55)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Aborted by host               80%     10815         -
# 2  Short offline       Completed without error       00%     10812         -
# 3  Extended offline    Aborted by host               80%     10811         -
# 4  Short offline       Completed without error       00%     10788         -
# 5  Short offline       Completed without error       00%     10764         -
# 6  Extended offline    Aborted by host               90%     10742         -
# 7  Short offline       Completed without error       00%     10740         -
# 8  Short offline       Completed without error       00%     10716         -
# 9  Short offline       Completed without error       00%     10692         -
#10  Short offline       Completed without error       00%     10671         -
#11  Short offline       Completed without error       00%     10647         -
#12  Short offline       Completed without error       00%     10623         -
#13  Short offline       Completed without error       00%     10599         -
#14  Extended offline    Aborted by host               80%     10578         -
#15  Short offline       Completed without error       00%     10575         -
#16  Short offline       Completed without error       00%     10551         -
#17  Short offline       Completed without error       00%     10527         -
#18  Short offline       Completed without error       00%     10503         -
#19  Short offline       Completed without error       00%     10479         -
#20  Short offline       Completed without error       00%     10455         -
#21  Short offline       Completed without error       00%     10431         -

SMART Selective self-test log data structure revision number 1
  SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
     1        0        0  Not_testing
     2        0        0  Not_testing
     3        0        0  Not_testing
     4        0        0  Not_testing
     5        0        0  Not_testing
Selective self-test flags (0x0):
   After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Isengard:~ #


I have another identical disk and it suffers the same problem. But other 
two external disk, half the size, don't exhibit the problem.

It says "aborted by host". How, why? What can I do to impede this
abortion? The machine runs 24/7 and that disk is currently not mounted.

Yesterday night I initiated the long test manually, and it aborted. I 
started it again, and it aborted again at 80%.

Log entries:

Isengard:~ # grep smartd /var/log/messages | egrep -i -v "Temperature"
<3.6> 2021-04-23T00:17:33.552535+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], SMART Usage Attribute: 1 Raw_Read_Error_Rate changed from 120 to 94
<3.6> 2021-04-23T00:17:33.554890+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], SMART Usage Attribute: 195 ECC_Uncorr_Error_Count changed from 120 to 96
<3.6> 2021-04-23T00:17:33.555373+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], SMART Usage Attribute: 201 Unc_Soft_Read_Err_Rate changed from 120 to 96
<3.6> 2021-04-23T00:17:33.555877+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], SMART Usage Attribute: 204 Soft_ECC_Correct_Rate changed from 120 to 96
<3.6> 2021-04-23T00:17:40.104088+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], self-test in progress, 90% remaining
<3.6> 2021-04-23T00:17:40.106973+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], old test of type S not run at Tue Apr 20 02:00:00 2021 CEST, starting now.
<3.6> 2021-04-23T00:17:40.109819+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], skip scheduled Short Self-Test; 90% remaining of current Self-Test.
<3.6> 2021-04-23T01:17:46.469453+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], is in SLEEP mode, suspending checks
<3.6> 2021-04-23T01:47:39.979530+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], is back in ACTIVE or IDLE mode, resuming checks (1 check skipped)
<3.6> 2021-04-23T01:47:39.983838+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], SMART Prefailure Attribute: 3 Spin_Up_Time changed from 215 to 210
<3.6> 2021-04-23T01:47:39.984848+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], previous self-test completed without error
<3.6> 2021-04-23T02:17:34.084049+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], starting scheduled Short Self-Test.
<3.6> 2021-04-23T02:17:34.510276+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/wwn-0x5000c5009399305f [SAT], starting scheduled Short Self-Test.
<3.6> 2021-04-23T02:17:34.726041+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/wwn-0x5000c500c4beb480 [SAT], starting scheduled Short Self-Test.
<3.6> 2021-04-23T02:17:39.829565+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], starting scheduled Short Self-Test.
<3.6> 2021-04-23T02:17:42.108452+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], starting scheduled Short Self-Test.
<3.6> 2021-04-23T02:47:33.166322+02:00 Isengard smartd 1149 - -  Device: /dev/sda [SAT], previous self-test completed without error
<3.6> 2021-04-23T02:47:33.443205+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/wwn-0x5000c5009399305f [SAT], previous self-test completed without error
<3.6> 2021-04-23T02:47:33.821242+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/wwn-0x5000c500c4beb480 [SAT], previous self-test completed without error
<3.6> 2021-04-23T02:47:38.892845+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], previous self-test completed without error
<3.6> 2021-04-23T02:47:43.909162+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], previous self-test completed without error
<3.6> 2021-04-23T03:47:39.018184+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], self-test in progress, 90% remaining
<3.6> 2021-04-23T04:47:46.053578+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], is in SLEEP mode, suspending checks
<3.6> 2021-04-23T05:17:39.526508+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], is back in ACTIVE or IDLE mode, resuming checks (1 check skipped)
<3.6> 2021-04-23T05:17:39.531501+02:00 Isengard smartd 1149 - -  Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], previous self-test completed without error
Isengard:~ #



The last test was started like this:

Isengard:~ # date --rfc-3339=ns ; smartctl --test=long /dev/sdd 
2021-04-23 03:42:31.550831447+02:00
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.3.18-lp152.72-default] (SUSE RPM)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 1051 minutes for test to complete.
Test will complete after Fri Apr 23 21:13:31 2021 CEST
Use smartctl -X to abort test.
Isengard:~ # date --rfc-3339=ns ; smartctl --test=long /dev/sdd
2021-04-23 03:53:44.298240735+02:00
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.3.18-lp152.72-default] (SUSE RPM)
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 (90% remaining),
add '-t force' option to override, or run 'smartctl -X' to abort test.
Isengard:~ #




Perhaps it is that the disk enters SLEEP mode?  But that would be "aborted
because of sleep mode", not "aborted by host".  And why does it enter sleep
mode in the middle of a test?


If that is the problem, perhaps I have to do an 'ls' every minute to impede
the disk from sleeping. :-?


- -- 
Cheers

 	Carlos E. R.
 	(using openSUSE Leap 15.2 x86_64)


-----BEGIN PGP SIGNATURE-----

iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCYIKZ0hwccm9iaW4ubGlz
dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV8GsAn0p4vRfAXYjkzpKbjBK8
fAB/GMxNAJ0W7mxKrsXuWfUktL6/G+/NHTU/Ww==
=ufwE
-----END PGP SIGNATURE-----


More information about the Smartmontools-support mailing list