[smartmontools-support] Smartd is not running selective tests

Christian Franke Christian.Franke at t-online.de
Tue Mar 28 09:05:19 CEST 2023


Anthony Desmarais wrote:
> Hi wonder if anyone can help me.
>
> I have two drives in my one linux box running Fedora 37. I also have 
> smartmontools ver 7.3-3.
>
> The box has a western digital purple 8TB drive as well as a Seagate 
> Skyhawk 6TB drive.
>
> I am trying to get smartd to run a selective test every monday at 1am, 
> performing a test of about a quarter of the drive every week.
>
> To start with I executed the first selective test manually with the 
> following commands:
>
> smartctl -t select,0-3907013292 
> /dev/disk/by-id/ata-WDC_WD80PURZ-85YNPY0_R6GE804Z
> smartctl -t select,0-2930261292 
> /dev/disk/by-id/ata-ST6000VX001-2BD186_ZR13347M
>
> Both of these ran just fine and I can see in the smart report that the 
> tests completed successfully (see attached text file containing both 
> reports).
>

Do these disks preserve Selective Self-test log across power cycles?
If not, is smartd state persistence enabled (see -s option on smartd man 
page for details) ?


> Then in smartd.conf i have added these two lines:
>
> /dev/disk/by-id/ata-SQF-S25M8-256G-SAC_2FA6078110F500505907 -I 194 -d 
> ata -f -l error -l selftest -l selfteststs  -m anthony at tunguydesmarais>
> /dev/disk/by-id/ata-WDC_WD80PURZ-85YNPY0_R6GE804Z -I 194 -d ata -a -m 
> anthony at tunguydesmarais.com -n standby,12,q -s (S/../../3/03|c/../../1>
> /dev/disk/by-id/ata-ST6000VX001-2BD186_ZR13347M -I 194 -d ata -a -m 
> anthony at tunguydesmarais.com -n standby,12,q -s (S/../../3/03|c/../../1/0>
>
> So the last two disks should run a selective test every monday at 1am. 
> However this test in not running. Looking is me syslog i see the 
> following errors:
>
> Mar 27 01:53:02 daemon.crit [26]: smartd - smartd[1076]: - Device: 
> /dev/disk/by-id/ata-WDC_WD80PURZ-85YNPY0_R6GE804Z, prepare Selective 
> Self-Test failed
> Mar 27 01:53:02 daemon.crit [26]: smartd - smartd[1076]: - Device: 
> /dev/disk/by-id/ata-ST6000VX001-2BD186_ZR13347M, prepare Selective 
> Self-Test failed

Please try to continue the test manually and report the output of smartctl:

smartctl -t select,cont /dev/disk/by-id/ata-...


>
>
> Out of interest I have another box running debian with two identical 
> drive in it (my backup NAS). I have the same setting in that one and I 
> see that the selective tests run just fine.

Is the Debian box running 24x7 but the Fedora box is not?

Regards,
Christian



More information about the Smartmontools-support mailing list