On 08/08/2020 15.47, Per Jessen wrote:
Carlos E.R. wrote:
On 08/08/2020 07.49, David Haller wrote:
Hello,
On Sat, 08 Aug 2020, Carlos E. R. wrote:
It worked :-)
Problem is back:
<3.2> 2020-08-07T04:55:34.474986+02:00 Isengard smartd 18959 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], failed to read SMART Attribute Data
[..]
The configuration line is:
/dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 -d removable -d sat -a -s (S/../.././02|L/../../6/03) -m root@telcontar.valinor
Obviously I'm removing the mail part again.
Hm. Try: '-d sat,auto -T permissive' (see 'man 5 smartd.conf')... Otherwise, I'd say that USB-SATA bridge is just b0rked.
Can't be borked, the disk works fine.
It _could_ still be broken - using SMART ATA commands is not the same as just doing IO.
I have two units bought on different years, both show the same issue. With smartctl there is no problem, it is with smartd only.
Huh, no, doesn't like it:
<3.6> 2020-08-08T14:25:00.839082+02:00 Isengard smartd 32172 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0, type changed from 'sat,auto' to 'scsi'
So your change to sata was ignored, presumably because the USB driver presents the drive as SCSI.
The reverse.
<3.6> 2020-08-08T14:25:00.841711+02:00 Isengard smartd 32172 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SCSI], IE (SMART) not enabled, skip device <3.6> 2020-08-08T14:25:00.842439+02:00 Isengard smartd 32172 - - Try 'smartctl -s on /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SCSI]' to turn on SMART features
Did you try that?
Yes.
The disk works fine with smartctl, it is smartd which has problems.
I wonder if the issue might be your "-d sat" in the config - seen from the kernel, the disk is not a SATA drive, but a SCSI drive.
I have tried with and without. Same problem.
See, I have connected the second disk this time.
Config:
/dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 -s on -d removable -d sat -T permissive -a -s (S/../.././02|L/../../6/03) /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 -d removable -d sat -a -s (S/../.././02|L/../../6/03)
<3.6> 2020-08-08T20:12:48.752675+02:00 Isengard smartd 32653 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD80EZAZ_11TDBA0-2TKST2SD.ata.state <3.6> 2020-08-08T20:12:48.917825+02:00 Isengard smartd 9086 - - File /etc/smartd.conf line 129 (drive /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0): warning, character 1 (o) looks odd in extended regular expression on
Line 120 is the first disk above.
<3.6> 2020-08-08T20:12:48.918253+02:00 Isengard smartd 9086 - - File /etc/smartd.conf line 129 (drive /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0): ignoring previous Test Directive -s on <3.6> 2020-08-08T20:12:49.799946+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], opened <3.6> 2020-08-08T20:12:49.800413+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], WDC WD80EZAZ-11TDBA0, S/N:2TKST2SD, WWN:5-000cca-26..., FW:83.H0A83, 8.00 TB <3.6> 2020-08-08T20:12:49.813096+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], found in smartd database: WDC HGST Ultrastar He10 <3.6> 2020-08-08T20:12:49.822400+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], is SMART capable. Adding to "monitor" list. <3.6> 2020-08-08T20:12:49.823702+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], state read from /var/lib/smartmontools/smartd.WDC_WD80EZAZ_11TDBA0-2TKST2SD.ata.state <3.6> 2020-08-08T20:12:49.824274+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], opened <3.6> 2020-08-08T20:12:49.825880+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], WDC WD80EZAZ-11TDBA0, S/N:7HKSUKBJ, WWN:5-000cca-25..., FW:83.H0A83, 8.00 TB <3.6> 2020-08-08T20:12:49.838672+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], found in smartd database: WDC HGST Ultrastar He10 <3.6> 2020-08-08T20:12:49.853064+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], is SMART capable. Adding to "monitor" list. <3.6> 2020-08-08T20:12:49.854560+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], state read from /var/lib/smartmontools/smartd.WDC_WD80EZAZ_11TDBA0-7HKSUKBJ.ata.state <3.6> 2020-08-08T20:12:50.415168+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 141 to 250 <3.6> 2020-08-08T20:12:50.419602+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD80EZAZ_11TDBA0-2TKST2SD.ata.state <3.6> 2020-08-08T20:12:50.420068+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], state written to /var/lib/smartmontools/smartd.WDC_WD80EZAZ_11TDBA0-7HKSUKBJ.ata.state <3.6> 2020-08-08T20:42:58.521194+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], not capable of SMART self-check <3.2> 2020-08-08T20:43:00.471274+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], failed to read SMART Attribute Data <3.6> 2020-08-08T20:43:02.420908+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], Read SMART Self Test Log Failed <3.6> 2020-08-08T20:43:11.536628+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], not capable of SMART self-check <3.2> 2020-08-08T20:43:13.486658+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], failed to read SMART Attribute Data <3.6> 2020-08-08T20:43:15.436411+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], Read SMART Self Test Log Failed <3.6> 2020-08-08T20:43:17.386206+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], Read Summary SMART Error Log failed <3.6> 2020-08-08T20:43:17.386830+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], old test of type L not run at Sat Jul 4 03:00:00 2020 CEST, starting now. <3.2> 2020-08-08T20:43:19.336063+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], not capable of Offline or Self-Testing. <3.6> 2020-08-08T21:12:51.964169+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 250 to 162 <3.6> 2020-08-08T21:42:58.551103+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], not capable of SMART self-check <3.2> 2020-08-08T21:43:00.500978+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], failed to read SMART Attribute Data <3.6> 2020-08-08T21:43:10.933802+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], not capable of SMART self-check <3.2> 2020-08-08T21:43:12.883854+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], failed to read SMART Attribute Data <3.6> 2020-08-08T21:43:14.833631+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], Read SMART Self Test Log Failed <3.6> 2020-08-08T21:43:16.784271+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], Read Summary SMART Error Log failed <3.6> 2020-08-08T22:12:52.396979+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], SMART Prefailure Attribute: 3 Spin_Up_Time changed from 253 to 251 <3.6> 2020-08-08T22:12:52.397599+02:00 Isengard smartd 9086 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 162 to 154
It says it is not self check capable, this is not true, they are both perfectly capable with default settings:
Isengard:~ # smartctl --test=short /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.12.14-lp151.28.52-default] (SUSE RPM) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === Sending command: "Execute SMART Short self-test routine immediately in off-line mode". Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful. Testing has begun. Please wait 2 minutes for test to complete. Test will complete after Sat Aug 8 22:48:48 2020 CEST Use smartctl -X to abort test. Isengard:~ # smartctl --test=short /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.12.14-lp151.28.52-default] (SUSE RPM) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION === Sending command: "Execute SMART Short self-test routine immediately in off-line mode". Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful. Testing has begun. Please wait 2 minutes for test to complete. Test will complete after Sat Aug 8 22:48:55 2020 CEST Use smartctl -X to abort test. Isengard:~ #
And the logs can be read just fine:
Isengard:~ # smartctl --log=selftest /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.12.14-lp151.28.52-default] (SUSE RPM) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 10205 - # 2 Extended offline Aborted by host 90% 10186 - # 3 Short offline Completed without error 00% 10184 - # 4 Short offline Completed without error 00% 10160 - # 5 Short offline Completed without error 00% 10136 - # 6 Short offline Completed without error 00% 10112 - # 7 Short offline Completed without error 00% 10088 - # 8 Short offline Completed without error 00% 10064 - # 9 Short offline Completed without error 00% 10040 - #10 Short offline Completed without error 00% 10034 - #11 Extended offline Aborted by host 80% 10019 - #12 Short offline Completed without error 00% 10016 - #13 Short offline Completed without error 00% 9992 - #14 Short offline Completed without error 00% 9968 - #15 Short offline Completed without error 00% 9944 - #16 Short offline Completed without error 00% 9920 - #17 Short offline Completed without error 00% 9896 - #18 Short offline Completed without error 00% 9872 - #19 Extended offline Aborted by host 90% 9850 - #20 Short offline Completed without error 00% 9848 - #21 Short offline Completed without error 00% 9824 -
Isengard:~ # smartctl --log=selftest /dev/disk/by-id/usb-WD_My_Book_25EE_3 usb-WD_My_Book_25EE_32544B5354325344-0:0 usb-WD_My_Book_25EE_37484B53554B424A-0:0 usb-WD_My_Book_25EE_32544B5354325344-0:0-part1 usb-WD_My_Book_25EE_37484B53554B424A-0:0-part1 Isengard:~ # smartctl --log=selftest /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 smartctl 7.1 2019-12-30 r5022 [x86_64-linux-4.12.14-lp151.28.52-default] (SUSE RPM) Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION === SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error # 1 Short offline Completed without error 00% 5207 - # 2 Short offline Completed without error 00% 5184 - # 3 Short offline Completed without error 00% 5160 - # 4 Short offline Completed without error 00% 5136 - # 5 Short offline Completed without error 00% 5113 - # 6 Short offline Completed without error 00% 5089 - # 7 Short offline Completed without error 00% 5065 - # 8 Short offline Completed without error 00% 5017 - # 9 Short offline Completed without error 00% 4993 - #10 Short offline Completed without error 00% 4969 - #11 Short offline Completed without error 00% 4945 - #12 Short offline Completed without error 00% 4921 - #13 Short offline Completed without error 00% 4897 - #14 Short offline Completed without error 00% 4849 - #15 Short offline Completed without error 00% 4801 - #16 Short offline Completed without error 00% 4777 - #17 Short offline Completed without error 00% 4729 - #18 Short offline Completed without error 00% 4681 - #19 Short offline Completed without error 00% 4658 - #20 Short offline Completed without error 00% 4634 - #21 Short offline Completed without error 00% 4586 -
Isengard:~ #
Isengard:~ # smartctl --scan-open /dev/sda -d sat # /dev/sda [SAT], ATA device /dev/sdb -d sat # /dev/sdb [SAT], ATA device /dev/sdc -d sat # /dev/sdc [SAT], ATA device /dev/sdd -d sat # /dev/sdd [SAT], ATA device /dev/sde -d sat # /dev/sde [SAT], ATA device /dev/sdf -d sat # /dev/sdf [SAT], ATA device Isengard:~ #
It is some problem with smartd, and I had it for years. Since I bought some disks it doesn't like. Then, one year the software gets an update and one disk that failed then works. It is a software problem in the daemon.
I'm testing now:
/dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 -s on -d removable -d sat,12 -T permissive -a -s (S/../.././02|L/../../6/03)
/dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0 -d removable -d sat,16 -T permissive -T permissive -T permissive -T permissive -a -s (S/../.././02|L/../../6/03)
I tried "verypermissive", which is listed in the man page, but it complains:
Aug 08 23:06:12 Isengard smartd[13611]: File /etc/smartd.conf line 137 (drive /dev/disk/by-id/usb-WD_My_Book_25EE_37484B53554B424A-0:0): Invalid argument to -T Directive: verypermissive