LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-20-2009, 04:27 AM   #1
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Rep: Reputation: 16
smartmontools gives a 0 lifetime. What does it mean?


I ran a long test on my harddrive:

Code:
daedalus ~ # smartctl -t long /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 53 minutes for test to complete.
Test will complete after Thu Aug 20 11:14:58 2009

Use smartctl -X to abort test.
daedalus ~ # smartctl -l selftest /dev/sda
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== 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  Extended offline    Completed without error       00%       854         -
# 2  Short offline       Completed without error       00%       842         -
# 3  Extended offline    Completed without error       00%       638         -
# 4  Short offline       Completed without error       00%       638         -
# 5  Short offline       Completed without error       00%         0         -

As you can see it gives a zero lifetime. What does that mean? Is it the remaining lifetime of my disk (so i have to replace it now) or is it the age of the disk (which means the output isn't correct since the harddrive is nearly 6 years old)?
 
Old 08-20-2009, 09:02 PM   #2
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
It's the number of hours the disk has spent online. The manufacturer probably ran that test before shipping the drive.

We'd live in a very different world if disks could predict their own demises with that kind of certainty.
 
Old 08-21-2009, 04:52 AM   #3
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Original Poster
Rep: Reputation: 16
But the test with #1 is the last test, right?

What do you mean with 'online', because I'm sure the disk is used longer than 854 hours.
 
Old 08-21-2009, 03:23 PM   #4
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
Online is hours spent powered. Run `smartctl -A` on your disk, and one of the attributes should be Power_On_Hours. I believe that value is written to the LifeTime column when a self-test is run.

So I'm not sure how you can be right about that. I suppose it's possible that the disk is internally not recording time correctly, but that seems extraordinarily unlikely.
 
Old 08-22-2009, 07:16 AM   #5
konqi
Member
 
Registered: Oct 2007
Distribution: Gentoo, Slackware
Posts: 162

Original Poster
Rep: Reputation: 16
I ran 'smartctl -A /dev/sda' and this is my output:

Code:
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0007   144   139   021    Pre-fail  Always       -       3325
  4 Start_Stop_Count        0x0032   094   094   040    Old_age   Always       -       6229
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   253   051    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   084   084   000    Old_age   Always       -       11802
 10 Spin_Retry_Count        0x0013   100   100   051    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x0013   100   100   051    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   094   094   000    Old_age   Always       -       6203
194 Temperature_Celsius     0x0022   111   253   000    Old_age   Always       -       39
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0012   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0012   200   200   000    Old_age   Always       -       0
199 UDMA_CRC_Error_Count    0x000a   200   253   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0009   200   155   051    Pre-fail  Offline      -       0
11802 hours seems correct to me. But the value is different from the value I get with 'smartctl -l selftest /dev/sda'.

Thanks for your help.
 
Old 08-22-2009, 10:42 AM   #6
karamarisan
Member
 
Registered: Jul 2009
Location: Illinois, US
Distribution: Fedora 11
Posts: 374

Rep: Reputation: 55
That is awfully weird. To be entirely sure, I just checked with one of my drives, and yeah, LifeTime is clearly meant to be a timestamp for when in the drive's life the test was performed. What kind of drive is this? Anything weird, old?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
smartmontools on SAS drive? alirezan1 Linux - Newbie 1 03-19-2009 03:37 PM
don't know how to run smartmontools newbiesforever Linux - Software 4 12-03-2008 01:18 PM
Smartmontools Tid Bits Woodsman Slackware 4 04-20-2008 05:05 AM
smartmontools shawniecas Linux - Newbie 2 06-11-2007 11:58 AM
smartmontools shawniecas Linux - Software 1 06-11-2007 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration