On 22/10/2019 14.16, Dave Howorth wrote:
Prompted by recent discussions about SSD vs HDD I decided to check out my devices with smartctl. But I'm overwhelmed by the smartctl man page!
My main disk - sda - is reported to be fine :)
Now you have to test them. First the short test, wait the specified time, ask for the results, analyze them. Then repeat with the long test.
My backup disk - sdb - is not found
# smartctl -P show /dev/sdb smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.12.14-lp150.12.7-default] (SUSE RPM) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
/dev/sdb: Unknown USB bridge [0x4971:0xce23 (0x000)] Please specify device type with the -d option.
It is found, but it doesn't know how to access it.
Use smartctl -h to get a usage summary
So I tried telling it that the disk is SATA and with that it can find it:
# smartctl -P show -d sat /dev/sdb smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.12.14-lp150.12.7-default] (SUSE RPM) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
Drive found in smartmontools Database. Drive identity strings: MODEL: Hitachi HDS721010CLA332 FIRMWARE: JP4OA3EA match smartmontools Drive Database entry: MODEL REGEXP: (Hitachi )?HDS7210((16|25)CLA[36]82|(32|50)CLA[36]62|(64|75|10)CLA[36]3[02]) FIRMWARE REGEXP: .* MODEL FAMILY: Hitachi Deskstar 7K1000.C ATTRIBUTE OPTIONS: None preset; no -v options are required.
but how do I get it to actually scan it regularly like my main disk?
Same as the others, adding the -d sat parameter.
I installed GSmartControl in the hope it would be simpler to use.
I'm not familiar with it. I use the daemon. You edit "/etc/smartd.conf" For example, sda could have an entry such as - notice: as you seem to have disks on USB, do not use /dev/sdb denominations: /dev/disk/by-id/wwn-0x5000... -a -o on -S on -s \ (S/../.././02|L/../../6/03) -m root@telcontar.valinor (do the short test every day at 02:xx, and the long test Saturdays at 03:xx; mail errors to root@telcontar.valinor) And the problematic USB disk something like: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 \ -d sat,16 -a -o on -S on -s (S/../.././02|L/../../6/03) \ -m root@telcontar.valinor but it fails I don't remember why.
/var/log/messages-20190414.xz:<3.6> 2019-03-25T01:59:51.969880+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 154 to 147 /var/log/messages-20190414.xz:<3.6> 2019-03-25T02:29:59.390740+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], not capable of SMART self-check /var/log/messages-20190414.xz:<3.2> 2019-03-25T02:30:01.340565+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], failed to read SMART Attribute Data /var/log/messages-20190414.xz:<3.6> 2019-03-25T02:30:04.899351+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], starting scheduled Short Self-Test. /var/log/messages-20190414.xz:<3.6> 2019-03-25T02:59:52.246052+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], read SMART Attribute Data worked again, warning condition reset after 1 email /var/log/messages-20190414.xz:<3.6> 2019-03-25T02:59:52.246510+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], previous self-test completed without error /var/log/messages-20190414.xz:<3.6> 2019-03-25T03:59:58.855623+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], not capable of SMART self-check /var/log/messages-20190414.xz:<3.2> 2019-03-25T04:00:00.806086+01:00 Isengard smartd 976 - - Device: /dev/disk/by-id/usb-WD_My_Book_25EE_32544B5354325344-0:0 [SAT], failed to read SMART Attribute Data /var/log/messages-20190414.xz:<3.6> 2019-03-25T04:07:34.692918+01:00 Isengard smartd 976 - - 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
Maybe yours work. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org