I am using a couple SAS SSDs. A while ago I started a "background long test" on one of them, unfortunately there was a blackout and the test was therefore interrupted.
After the power was back again, I re-run the background long test, and this time, it succeeded.
However, I have now in my SCSI LOG PAGE a nasty entry like the following (entry #3 in the self test log)
SMART Self-test log
Num Test Status segment LifeTime LBA_first_err [SK ASC ASQ]
Description number (hours)
# 1 Background long Completed - 48721 - [- - -]
# 2 Background long Completed - 48253 - [- - -]
# 3 Background long Self test in progress ... 8 48251 - [- - -]
it is clearly a wrong entry and it irritates me a lot, because this test is definitely aborted due to the power cut. I know it is possible with the sg_utils package to manipulate certain log pages. For instance, with
sg_logs -R /dev/sda
one can reset the statistical counters on how many gigabytes were read/written.
So I wonder, is it somehow possible to clear the self test log as well? According to the sg_utils manual I think yes, but I don't understand yet how. I just want to clear this self test log as it annoys me a lot when looking at my disks - I regularly run the tests and from time to time, I scroll through the test results and then this one is always standing out a bit.
Can I probably clear all this by a FORMAT UNIT command?
Asked by T. Pluess
(626 rep)
Jul 9, 2024, 07:02 AM
Last activity: Jul 9, 2024, 08:44 AM
Last activity: Jul 9, 2024, 08:44 AM