#12 closed enhancement (wontfix)
smartmontools: In Self-test log, LifeTime wraps at 65536 hours
Reported by: | Giuseppe Iuculano | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | all | Version: | |
Keywords: | Cc: | 535298-forwarded@… |
Description
smartctl -a gives here:
[...]
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
[...]
9 Power_On_Hours 0x0012 001 001 000 Old_age Always - 66120
[...]
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% 572 -
# 2 Short offline Completed without error 00% 548 -
# 3 Short offline Completed without error 00% 524 -
# 4 Short offline Completed without error 00% 500 -
# 5 Short offline Completed without error 00% 476 -
# 6 Short offline Completed without error 00% 452 -
# 7 Short offline Completed without error 00% 428 -
# 8 Short offline Completed without error 00% 404 -
# 9 Short offline Completed without error 00% 380 -
#10 Short offline Completed without error 00% 356 -
#11 Short offline Completed without error 00% 332 -
#12 Short offline Completed without error 00% 308 -
#13 Short offline Completed without error 00% 284 -
#14 Short offline Completed without error 00% 260 -
#15 Short offline Completed without error 00% 236 -
#16 Short offline Completed without error 00% 212 -
#17 Short offline Completed without error 00% 188 -
#18 Short offline Completed without error 00% 164 -
#19 Short offline Completed without error 00% 140 -
#20 Short offline Completed without error 00% 116 -
#21 Short offline Completed without error 00% 92 -
As you can see, in the SMART attributes, the life time (Power_On_Hours)
is OK: 66120. But in the log, it has wrapped at 65536.
Found in 5.38 and svn revision 2879
Original bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=535298
Change History (3)
comment:1 by , 15 years ago
Type: | defect → enhancement |
---|
comment:2 by , 15 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
There is IMO no good solution to fix this. I have added a note to smartctl man page.
comment:3 by , 6 years ago
Hi i have also got hit by this bug. I don't understand why the developers wont fix this, it is an over 10 years old bug!
What needs to happen is to get the value from "Power_On_Hours" to the fifth column in the log statistics that is all!
The LifeTime value in '-l selftest' output is not truncated by smartctl. The 'Life timestamp' field in the ATA Self-test log data structure is a 16 bit quantity. Same applies to '-l xselftest'. See tables A.13 and A.21 of T13/1699-D Revision 6a.
If it is known (by drive database) that raw value of attribute 9 actually reports Power_On_Hours, then it would be possible to detect the overflow and adjust the log output accordingly.
The number of ATA disks with an uptime of ~7.5 years or more might be very limited, so I'm not sure whether this is worth the effort :-)