I have installed smartmontools and I wrote a script (scheduled in crontab) which periodically sends me a log on the health status of the disk. It performs a rapid test.
Apart from the airflow issue, which was reported to me only once, the rapid tests are always ok. Since I have no interest in keeping successful logs how could I delete all those Short captive Completed without error
instead of accumulating them?
Just for the sake of clarity in reading logs...
I looked at the man of the various commands, but I still haven't found anything about it...
Here there is an example of the log:
mar 1 giu 2021, 07.00.01, CEST
smartctl 6.6 2017-11-05 r4594 [armv6l-linux-5.10.17+] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.14 (AF)
Device Model: ST3000DM001-9YN166
Serial Number: W1F0W1XT
LU WWN Device Id: 5 000c50 052b9f7ef
Firmware Version: CC9F
User Capacity: 3.000.592.982.016 bytes [3,00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: In smartctl database [for details use: -P show]
ATA Version is: ATA8-ACS T13/1699-D revision 4
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is: Tue Jun 1 07:00:02 2021 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
smartctl 6.6 2017-11-05 r4594 [armv6l-linux-5.10.17+] (local build) Copyright (C) 2002-17, 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 captive mode".
Drive command "Execute SMART Short self-test routine immediately in captive mode" successful.
Testing has begun.
Please wait 1 minutes for test to complete.
Test will complete after Tue Jun 1 07:02:00 2021
smartctl 6.6 2017-11-05 r4594 [armv6l-linux-5.10.17+] (local build) Copyright (C) 2002-17, 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 captive Completed without error 00% 4867 -
# 2 Short captive Completed without error 00% 4484 -
# 3 Short captive Completed without error 00% 4125 -
# 4 Short captive Completed without error 00% 3766 -
# 5 Short captive Completed without error 00% 3680 -
# 6 Short captive Completed without error 00% 3409 -
# 7 Short captive Completed without error 00% 2907 -
# 8 Short captive Completed without error 00% 2595 -
# 9 Short captive Completed without error 00% 2338 -
#10 Short offline Completed without error 00% 2237 -
#11 Short captive Completed without error 00% 2236 -
#12 Short captive Completed without error 00% 2236 -
#13 Short captive Completed without error 00% 2074 -
#14 Short captive Completed without error 00% 2074 -
#15 Short captive Completed without error 00% 2072 -
smartctl 6.6 2017-11-05 r4594 [armv6l-linux-5.10.17+] (local build) Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED Please note the following marginal Attributes:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
190 Airflow_Temperature_Cel 0x0022 054 039 045 Old_age Always In_the_past 46 (Min/Max 42/53 #135)