Skip to content
Snippets Groups Projects
Commit adb8eaa0 authored by (no author)'s avatar (no author)
Browse files

This commit was manufactured by cvs2svn to create tag

'RELEASE_5_0_29'.

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/tags/RELEASE_5_0_29@204 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 5e39d340
No related branches found
No related tags found
No related merge requests found
<pre><tt>
smartctl version 5.0-24 Copyright (C) 2002 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: MAXTOR 4K080H4
Serial Number: 674119123435
Firmware Version: A08.1500
ATA Version is: 5
ATA Standard is: ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.
General SMART Values:
Off-line data collection status: (0x04) Offline data collection activity was
suspended by an interrupting command from host.
Self-test execution status: ( 89) The previous self-test completed having
the electrical element of the test
failed.
Total time to complete off-line
data collection: (2536) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Automatic timer ON/OFF support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 50) minutes.
SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - 0
3 Spin_Up_Time 0x0027 074 074 020 Pre-fail - 3294
4 Start_Stop_Count 0x0032 100 100 008 Old_age - 32
5 Reallocated_Sector_Ct 0x0033 001 001 020 Pre-fail FAILING_NOW 499
7 Seek_Error_Rate 0x000b 100 001 023 Pre-fail In_the_past 0
9 Power_On_Hours 0x0012 086 086 001 Old_age - 9812
10 Spin_Retry_Count 0x0026 100 100 000 Old_age - 0
11 Calibration_Retry_Count 0x0013 100 100 020 Pre-fail - 0
12 Power_Cycle_Count 0x0032 100 100 008 Old_age - 32
13 Read_Soft_Error_Rate 0x000b 100 001 023 Pre-fail In_the_past 0
194 Temperature_Centigrade 0x0022 091 086 042 Old_age - 24
195 Hardware_ECC_Recovered 0x001a 006 004 000 Old_age - 417912090
196 Reallocated_Event_Count 0x0010 100 100 020 Old_age - 0
197 Current_Pending_Sector 0x0032 033 032 020 Old_age - 338
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age - 0
SMART Error Log Version: 1
ATA Error Count: 20255 (device log contains only the most recent five errors)
DCR = Device Control Register
FR = Features Register
SC = Sector Count Register
SN = Sector Number Register
CL = Cylinder Low Register
CH = Cylinder High Register
D/H = Device/Head Register
CR = Content written to Command Register
ER = Error register
STA = Status register
Timestamp is seconds since the previous disk power-on.
Note: timestamp "wraps" after 2^32 msec = 49.710 days.
Error 1 occurred at disk power-on lifetime: 9574 hours
When the command that caused the error occurred, the device was in a vendor specific or reserved state.
After command completion occurred, registers were:
ER:40 SC:60 SN:b8 CL:c6 CH:02 D/H:e5 ST:d1
Sequence of commands leading to the command that caused the error were:
DCR FR SC SN CL CH D/H CR Timestamp
02 05 60 b8 c6 02 e5 c4 474.857
02 05 f8 20 c6 02 e5 c4 470.748
02 05 08 18 c6 02 e5 c4 470.746
00 00 f8 20 c5 02 e5 c4 470.732
00 00 08 18 c5 02 e5 c4 470.730
Error 2 occurred at disk power-on lifetime: 9574 hours
When the command that caused the error occurred, the device was in a vendor specific or reserved state.
After command completion occurred, registers were:
ER:40 SC:68 SN:b0 CL:c6 CH:02 D/H:e5 ST:d1
Sequence of commands leading to the command that caused the error were:
DCR FR SC SN CL CH D/H CR Timestamp
02 05 f8 20 c6 02 e5 c4 470.748
02 05 08 18 c6 02 e5 c4 470.746
00 00 f8 20 c5 02 e5 c4 470.732
00 00 08 18 c5 02 e5 c4 470.730
02 05 f8 20 c4 02 e5 c4 470.717
Error 3 occurred at disk power-on lifetime: 9574 hours
When the command that caused the error occurred, the device was in a vendor specific or reserved state.
After command completion occurred, registers were:
ER:40 SC:08 SN:c0 CL:3e CH:0e D/H:e5 ST:d1
Sequence of commands leading to the command that caused the error were:
DCR FR SC SN CL CH D/H CR Timestamp
0e 05 08 c0 3e 0e e5 c4 181.677
d0 04 08 b0 67 d0 e4 c5 181.651
0e 05 08 a0 45 0e e5 c4 181.646
0e 05 80 20 43 0e e5 c4 181.635
0e 05 80 20 41 0e e5 c4 181.622
Error 4 occurred at disk power-on lifetime: 9574 hours
When the command that caused the error occurred, the device was in a vendor specific or reserved state.
After command completion occurred, registers were:
ER:40 SC:60 SN:c0 CL:3e CH:0e D/H:e5 ST:d1
Sequence of commands leading to the command that caused the error were:
DCR FR SC SN CL CH D/H CR Timestamp
0e 05 80 a0 3e 0e e5 c4 172.530
0e 05 80 20 3d 0e e5 c4 172.335
0e 05 80 20 3c 0e e5 c4 164.744
0e 05 10 10 3b 0e e5 c4 164.736
0e 05 f8 18 3a 0e e5 c4 157.202
Error 5 occurred at disk power-on lifetime: 9574 hours
When the command that caused the error occurred, the device was in a vendor specific or reserved state.
After command completion occurred, registers were:
ER:40 SC:c0 SN:18 CL:04 CH:d3 D/H:e4 ST:d1
Sequence of commands leading to the command that caused the error were:
DCR FR SC SN CL CH D/H CR Timestamp
d3 04 c0 18 04 d3 e4 c4 502.837
d3 04 f8 e0 03 d3 e4 c4 498.739
d3 04 f8 e8 02 d3 e4 c4 498.716
55 01 c8 90 70 55 e1 c4 498.705
55 01 38 48 70 55 e1 c4 498.680
SMART Self-test log, version number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short off-line Completed: electrical failure 90% 9786
# 2 Extended captive Completed: servo/seek failure 90% 9676 0x04b7ed3d
# 3 Extended captive Completed 00% 9575
# 4 Extended off-line Completed 00% 9432
# 5 Extended off-line Completed 00% 9415
</tt></pre>
<pre><tt>
smartctl version 5.0-24 Copyright (C) 2002 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: MAXTOR 4K080H4
Serial Number: 674119113862
Firmware Version: A08.1500
ATA Version is: 5
ATA Standard is: ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.
General SMART Values:
Off-line data collection status: (0x05) Offline data collection activity was
aborted by an interrupting command from host.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete off-line
data collection: ( 44) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Automatic timer ON/OFF support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 50) minutes.
SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - 0
3 Spin_Up_Time 0x0027 075 075 020 Pre-fail - 3249
4 Start_Stop_Count 0x0032 100 100 008 Old_age - 31
5 Reallocated_Sector_Ct 0x0033 100 100 020 Pre-fail - 0
7 Seek_Error_Rate 0x000b 100 001 023 Pre-fail In_the_past 0
9 Power_On_Hours 0x0012 086 086 001 Old_age - 9754
10 Spin_Retry_Count 0x0026 100 100 000 Old_age - 0
11 Calibration_Retry_Count 0x0013 100 100 020 Pre-fail - 0
12 Power_Cycle_Count 0x0032 100 100 008 Old_age - 31
13 Read_Soft_Error_Rate 0x000b 100 100 023 Pre-fail - 0
194 Temperature_Centigrade 0x0022 035 032 042 Old_age FAILING_NOW 168
195 Hardware_ECC_Recovered 0x001a 100 002 000 Old_age - 880099716
196 Reallocated_Event_Count 0x0010 100 100 020 Old_age - 0
197 Current_Pending_Sector 0x0032 100 100 020 Old_age - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log, version number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short off-line Completed 00% 9691
# 2 Short captive Completed 00% 9691
# 3 Extended captive Completed 00% 9618
# 4 Extended captive Interrupted (host reset) 90% 9563
# 5 Short captive Completed 00% 9563
# 6 Short off-line Completed 00% 9563
# 7 Short captive Completed 00% 9545
# 8 Extended off-line Completed 00% 9541
# 9 Short captive Completed 00% 9541
#10 Extended off-line Completed 00% 9537
#11 Extended off-line Completed 00% 9536
#12 Extended off-line Interrupted (host reset) 90% 9534
#13 Extended off-line Completed 00% 9517
#14 Extended off-line Completed 00% 9484
</tt></pre>
<pre><tt>
smartctl version 5.0-24 Copyright (C) 2002 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: MAXTOR 6L080J4
Serial Number: 664201100034
Firmware Version: A93.0500
ATA Version is: 5
ATA Standard is: ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Off-line data collection status: (0x00) Offline data collection activity was
never started.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete off-line
data collection: ( 35) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Automatic timer ON/OFF support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 40) minutes.
SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - 0
3 Spin_Up_Time 0x0027 069 066 020 Pre-fail - 3984
4 Start_Stop_Count 0x0032 100 100 008 Old_age - 110
5 Reallocated_Sector_Ct 0x0033 100 100 020 Pre-fail - 0
7 Seek_Error_Rate 0x000b 100 100 023 Pre-fail - 0
9 Power_On_Hours 0x0012 099 099 001 Old_age - 1294
10 Spin_Retry_Count 0x0026 100 100 000 Old_age - 0
11 Calibration_Retry_Count 0x0013 100 100 020 Pre-fail - 0
12 Power_Cycle_Count 0x0032 100 100 008 Old_age - 110
13 Read_Soft_Error_Rate 0x000b 100 100 023 Pre-fail - 0
194 Temperature_Centigrade 0x0022 092 087 042 Old_age - 22
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age - 1163
196 Reallocated_Event_Count 0x0010 100 100 020 Old_age - 0
197 Current_Pending_Sector 0x0032 100 100 020 Old_age - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log, version number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended off-line Completed 00% 1038
# 2 Extended off-line Aborted by host 00% 786
# 3 Extended off-line Aborted by host 00% 786
</tt></pre>
<pre><tt>
smartctl version 5.0-24 Copyright (C) 2002 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Device Model: MAXTOR 6L080J4
Serial Number: 664205757172
Firmware Version: A93.0500
ATA Version is: 5
ATA Standard is: ATA/ATAPI-5 T13 1321D revision 1
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Off-line data collection status: (0x04) Offline data collection activity was
suspended by an interrupting command from host.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete off-line
data collection: ( 35) seconds.
Offline data collection
capabilities: (0x1b) SMART execute Offline immediate.
Automatic timer ON/OFF support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 40) minutes.
SMART Attributes Data Structure revision number: 11
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x0029 100 253 020 Pre-fail - 0
3 Spin_Up_Time 0x0027 065 064 020 Pre-fail - 4481
4 Start_Stop_Count 0x0032 100 100 008 Old_age - 81
5 Reallocated_Sector_Ct 0x0033 100 100 020 Pre-fail - 0
7 Seek_Error_Rate 0x000b 100 100 023 Pre-fail - 0
9 Power_On_Hours 0x0012 098 098 001 Old_age - 1767
10 Spin_Retry_Count 0x0026 100 100 000 Old_age - 0
11 Calibration_Retry_Count 0x0013 100 100 020 Pre-fail - 0
12 Power_Cycle_Count 0x0032 100 100 008 Old_age - 81
13 Read_Soft_Error_Rate 0x000b 100 100 023 Pre-fail - 0
194 Temperature_Centigrade 0x0022 091 084 042 Old_age - 24
195 Hardware_ECC_Recovered 0x001a 100 100 000 Old_age - 52795
196 Reallocated_Event_Count 0x0010 100 100 020 Old_age - 0
197 Current_Pending_Sector 0x0032 100 100 020 Old_age - 0
198 Offline_Uncorrectable 0x0010 100 253 000 Old_age - 0
199 UDMA_CRC_Error_Count 0x001a 200 200 000 Old_age - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log, version number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended off-line Completed 00% 1283
</tt></pre>
#!/bin/bash
# execute this script in the current shell, using for example
# . cvs_script
unset CVS_SERVER
export CVS_RSH=ssh
export CVSROOT=:ext:ballen4705@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>smartmontools Home Page</title>
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1">
<meta name="author" content="Bruce Allen">
<meta name="description"
content="SMART S.M.A.R.T. linux disk monitoring">
</head>
<body>
<div align="center">
<h1><font color="#3333ff">smartmontools HOME PAGE &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
</font> <a href="http://sourceforge.net"><img
src="http://sourceforge.net/sflogo.php?group_id=64297&amp;type=5"
width="210" height="62" border="0" alt="SourceForge.net Logo"
align="middle">
</a> </h1>
</div>
<div align="left">This is the home page for smartmontools. &nbsp;The smartmontools
package contains two utility programs (<font
color="#3333ff"><b>smartctl</b></font> and <font
color="#3333ff"><b>smartd</b></font>) to control and monitor
storage systems using the Self-Monitoring, Analysis and Reporting
Technology System (S.M.A.R.T.) built into most modern ATA and SCSI
hard disks. It is derived from the smartsuite package, and includes
support for ATA/ATAPI-5 disks. It should run on any modern linux
system.<br>
<br>
For printing convenience, everything except for the
<a href="#sampleoutput">example output</a> is on a single page.<br>
<hr width="100%" size="2">
<ul>
<li><a href="#howtodownload">How to download and
install smartmontools</a></li>
<li><a href="#FAQ">Frequently Asked Questions</a></li>
<li><a href="#testinghelp">The code needs to be
tested on SCSI disks/tapes</a></li>
<li><a href="#differfromsmartsuite">How does
smartmontools differ from smartsuite?</a></li>
<li><a href="#references">Useful references
on S.M.A.R.T. and ATA/ATAPI-5, -6, and -7</a></li>
<li><a href="#sampleoutput">Example output from
smartmontools <b>smartctl</b> utility</a></li>
<li><a
href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/smartmontools/">Smartmontools
CVS Archive</a> and <a
href="http://sourceforge.net/projects/smartmontools">Sourceforge Projects
Group page</a></li>
<li><a
href="http://lists.sourceforge.net/mailman/listinfo/smartmontools-support">
Mailing List and Archives</a> for smartmontools support<br>
</li>
</ul>
<b><br>
</b>
<hr width="100%" size="2"><b><br>
</b><b><a name="howtodownload"></a></b><b> How to
download and install smartmontools<br>
</b>There are three different ways to get and install
smartmontools. &nbsp;You can use any one of these three procedures.
&nbsp;Just after "Method 3" below are some instructions for trying
out smartmontools once you have completed the installation.<br>
<ol>
<li><b>First Method - Install from the RPM file:</b><br>
<ul>
<li>Download the latest binary RPM file (<tt>*.rpm</tt>)
from <a
href="http://sourceforge.net/project/showfiles.php?group_id=64297">here</a>
. &nbsp;Don't get the SRPM file (<tt>*.src.rpm</tt>).</li>
<li>Install it using RPM. &nbsp;<i>You must be
root to do this</i>:<br>
<tt>&nbsp; su root</tt> &nbsp;<i>(enter root
password)</i><br>
<tt>&nbsp; rpm -ivh smartmontools-5.0-1.i386.rpm<br>
</tt>For most users, this is all that is needed.<br>
</li>
<li>If you receive an error message, you have
probably previously installed the <tt>smartsuite</tt> package, or
RedHat's <tt>kernel-utils</tt> package, which provide older
versions of the <tt>smartd</tt> and <tt> smartctl</tt>
utilities. &nbsp;In this case you should use the <tt> --nodeps</tt>
or <tt> --force</tt> arguments of rpm to replace these
two utilities:<br>
<tt>&nbsp; rpm -ivh --nodeps --force smartmontools-5.0-1.i386.rpm</tt></li>
<li>If you want to remove the package (<tt>rpm -e s</tt><tt>martmontools</tt>)
and your system does not have <tt>chkconfig</tt> installed, you may
need to use: <tt><br>
&nbsp; rpm -e</tt> <tt>--noscripts</tt> <tt>s</tt><tt>martmontools</tt><br>
</li>
</ul>
</li>
<li><b>Second Method - Install from the source
tarball</b>:<br>
<ul>
<li>Download the latest source-code tarball
from <a
href="http://sourceforge.net/project/showfiles.php?group_id=64297">here</a>.
Note: you probably want the most recent release. </li>
<li>Uncompress the tarball:<br>
<tt>&nbsp; tar zxvf smartmontools-5.0-1.tar.gz</tt></li>
<li>The previous step created a directory called
smartmontools-5.0-1 containing the code. &nbsp;Go to that directory,
build, and install:<br>
<tt>&nbsp; cd smartmontools-5.0-1<br>
&nbsp; make<br>
&nbsp; make install &nbsp;</tt> &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<i>[only
root can do this]</i><br>
</li>
</ul>
</li>
<li><b>Third Method - Download code directly from
the CVS archive:</b><br>
<ul>
<li>&nbsp; Download the latest code snapshot from
CVS. If prompted for a password, simply press the Enter key. &nbsp;Note
that the two lines below that start "<tt>cvs</tt>" &nbsp; are long!
<br>
<tt>&nbsp; cvs -d:pserver:anonymous@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
login</tt> <tt><br>
&nbsp; cvs -z3 -d:pserver:anonymous@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
co sm5</tt><br>
</li>
<li>The previous step created a subdirectory called
<tt>sm5/</tt> containing the code. Go to that directory,
build, and install:<br>
<tt>&nbsp; cd sm5<br>
&nbsp; make<br>
&nbsp; make install &nbsp;</tt> <i>&nbsp;[only root
can do this]<br>
</i> </li>
</ul>
</li>
</ol>
<b>After installing using Method 1, 2 or 3 above,
you can read the man pages, and try out the commands:</b><br>
<blockquote>
<blockquote><tt>&nbsp; man 8 smartctl</tt><br>
<tt>&nbsp; man 8 smartd</tt><br>
<tt>&nbsp; /usr/sbin/smartctl -etf /dev/hda &nbsp;</tt><i>[only
root can do this]</i><br>
<tt>&nbsp; /usr/sbin/smartctl -a /dev/hda &nbsp;
&nbsp;</tt><i>[only root can do this]</i><br>
<br>
<p> Note that the default location for the manual pages is in <tt>/usr/share/man/man8</tt>
. &nbsp;If "<tt>man</tt>" does not find the manual pages, then you
may need to add <tt>/usr/share/man</tt> to your <tt>MANPATH</tt> environment
variable.<br>
<a href="#cvshelp"><br>
<br>
<b>How to use CVS to get any version of smartmontools</b></a><br>
</p>
</blockquote>
</blockquote>
<hr width="100%" size="2"><br>
<br>
<a name="FAQ"></a><b>Frequently-asked questions<br>
</b>If your question is not here, please <a
href="mailto:smartmontools-support@lists.sourceforge.net"> email me</a>.<br>
<ul>
<li><b>What do I do if I have problems, or need
support? &nbsp;Suppose I want to become a developer, or suggest some
new extensions?</b><br>
Please send an email to the <a
href="http://lists.sourceforge.net/mailman/listinfo/smartmontools-support">
smartmontools-support mailing list</a>. &nbsp;Note that you won't
get the mail sent to the list unless you subscribe to it. &nbsp;Please
take a look through the archives to see if your question has been answered.<br>
</li>
<li><b>What are the future plans for smartmontools?</b><br>
My plan is that smartmontools-5.x will support ATA/ATAPI-5
disks. &nbsp;Eventually, we'll do smartmontools-6.x to support
ATA/ATAPI-6 disks, smartmontools-7.x for the ATA/ATAPI-7 standard,
and so on. &nbsp;The "x" will denote revision level, as bugs get
found and fixed, and as enhancements get added. &nbsp; If it's possible
to maintain backwards compatibility, that would be nice, but I don't
know if it will be possible or practical.</li>
<li><b>Why are you doing this?</b><br>
My research group runs a beowulf cluster with 300
ATA-5 disks. &nbsp;We have more than 20 TB of data stored on the
system. &nbsp;It's nice to have advanced warning when a disk is going
to fail.</li>
<li><b>I see some strange output from smartctl.
&nbsp;What does it mean?</b><br>
The raw S.M.A.R.T. attributes (temperature, power-on
lifetime, and so on) are stored in vendor-specific structures. &nbsp;Sometime
these are strange. &nbsp;Hitachi disks (at least some of them) store
power-on lifetime in minutes, rather than hours. &nbsp;IBM disks (at
least some of them) have three temperatures stored in the raw structure,
not just one. And so on. &nbsp;If you find strange output, or unknown
attributes, please send an email to <a
href="http://lists.sourceforge.net/mailman/listinfo/smartmontools-support">
smartmontools-support</a> and we'll help you try and figure it out.</li>
<li><b>What attributes does smartmontools not yet
recognize?<br>
</b>From a Hitachi disk: (230)(250)<br>
If you can attach names/meanings to these attributes,
please send me a note to <a
href="http://lists.sourceforge.net/mailman/listinfo/smartmontools-support">
smartmontools-support</a>.</li>
<li><b>When I run <tt>smartd</tt> , the SYSLOG&nbsp;
<tt>/var/log/messages</tt> &nbsp;contains messages like this:</b><br>
<tt>&nbsp; smartd: Reading Device /dev/sdv <br>
&nbsp; modprobe: modprobe: Can't locate module block-major-65<br>
</tt>This is because when <tt>smartd</tt> starts,
it looks for all ATA and SCSI devices to monitor (matching the pattern
<tt>/dev/hd[a-z]</tt> or <tt>/dev/sd[a-z]</tt>). &nbsp;The
log messages appear because your system doesn't have most of these
devices.<br>
The latest release of smartd can use a configuration file
<tt>/etc/smartd.conf</tt> to specify which devices to include
or exclude from start-up search.</li>
<li><b><a name="cvshelp"></a>How can I use CVS to get different
versions of smartmontools?<br>
</b>One of the really cool things about CVS is that you can
get <i>any </i>version of the code you want, from the first release
up the the most current development version. &nbsp;And it's trivial, because
each release is <u>tagged</u>&nbsp; with a name like <tt>RELEASE_5_0_22</tt>.
&nbsp;You can see what the different names are by looking at the <a
href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/smartmontools/">Smartmontools
CVS archive.</a> You'll see the tag names in the little scroll
window where it says "Show only the files with Tag". &nbsp;All you need
to do is:<br>
<tt>&nbsp; cvs -d:pserver:anonymous@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
login</tt> <tt><br>
&nbsp; cvs -z3 -d:pserver:anonymous@cvs.smartmontools.sourceforge.net:/cvsroot/smartmontools
co -r RELEASE_5_0_17</tt><tt> sm5</tt><br>
If prompted for a password, just do &lt;ENTER&gt;. This will create
a subdirectory called <tt>sm5/</tt> containing the code. Go to
that directory, build, install, and enjoy:<br>
<tt>&nbsp; cd sm5<br>
&nbsp; make<br>
&nbsp; make install &nbsp;</tt> &nbsp;<i> [only root can do this]</i></li>
<li><b>What's the story on IBM S.M.A.R.T. disks?</b><br>
Apparently some of the older S.M.A.R.T. firmware on IBM disks can
interfere with the regular operation of the disk. &nbsp;If you have this
problem, here is an&nbsp; <a
href="http://www.geocities.com/dtla_update/">IBM DISK FIRMWARE UPGRADE</a>
&nbsp;that fixes the problem. &nbsp;<br>
</li>
</ul>
<hr width="100%" size="2">&nbsp;<b><a name="testinghelp"></a>Help needed
in testing smartmontools, especially on SCSI disks/systems<br>
</b>I have access to a number of systems with ATA
S.M.A.R.T. disks, but I don't have any access to systems with SCSI
S.M.A.R.T. devices. &nbsp;I'd be very grateful to find someone who
could help me test the smartmontools code on SCSI disks. &nbsp;Since
it's derived from the smartsuite package, it should initially work
about the same way with SCSI devices as the smartsuite tools did.<br>
<br>
I'd be especially happy if someone would like to
take on the task, as a developer, of maintaining the SCSI code.
&nbsp;Do you have a beowulf cluster with a few hundred SCSI disks?
Please volunteer!<br>
<hr width="100%" size="2"><a name="differfromsmartsuite"></a><b>How does
smartmontools differ from smartsuite?<br>
</b>The smartsuite code was originally developed as a Senior
Thesis by Michael Cornwell at the Concurrent Systems Laboratory (now part
of the <a href="http://ssrc.soe.ucsc.edu">Storage Systems Research Center</a>),
Jack Baskin School of Engineering, University of California, Santa Cruz.
<br>
<b><br>
</b>Smartmontools was derived directly from smartsuite
. It differs from smartsuite in that it supports the ATA/ATAPI-5 standard.
So for example <tt>smartctl</tt> from smartsuite has no facility for
printing the S.M.A.R.T. self-test logs, and doesn't print timestamp information
in the most usable way. The <tt>smartctl</tt> utility in smartmontools
has added functionality for this (<tt>-q,-Q,</tt><tt>-L,-f, -F and -m</tt>
options), updated documentation, and also fixes small technical bugs
in smartsuite. &nbsp; See the <a
href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/smartmontools/sm5/CHANGELOG">CHANGELOG</a>
file in CVS for a summary of what's been done. The <tt>smartd</tt>
utility differs from the smartsuite <tt>smartd</tt> in major&nbsp; ways.
&nbsp;First, it prints somewhat more informative error messages to the
syslog. &nbsp;Second, on startup it looks for a configuration file <tt>/etc/smartd.conf</tt>,
and if <tt>smartd</tt> finds this file, it monitors the list of devices
therein, rather than querying all IDE and SCSI devices on your system.
&nbsp;[If the configuration file does not exist, then it does query all
IDE and SCSI devices.] &nbsp;Finally, it's a well-behaved daemon and doesn't
leave open file descriptors and other detrius behind. In addition, the
<tt>smartmontools</tt> version of <tt>smartd</tt> can be instructed (via
Directives in the configuration file) to monitor for changes in a number
of different disk properties: the SMART status, failure or prefailure
attributes going below threshold, new errors appearing in the ATA Error
Log or the SMART Self-Test Log, and so on.<br>
<br>
The other principle difference is that smartmontools is an open-source
development project, meaning that we keep the files in CVS, and that
other developers who wish to contribute can commit changes to the archive.
&nbsp;If you would like to contribute, please write to to <a
href="http://lists.sourceforge.net/mailman/listinfo/smartmontools-support">
smartmontools-support</a>.<br>
<br>
But the bottom line is that the code in smartmontools is derived
directly from smartsuite and is similar. The smartsuite package
can be found <a href="http://sourceforge.net/projects/smartsuite/">here</a>.
&nbsp;<br>
<hr width="100%" size="2"><br>
<a name="references"></a><big><b>Useful references
on S.M.A.R.T. and the ATA/ATAPI standards<br>
</b>If you are having trouble understanding the
output of smartctl or smartd, please first read the manual pages:<tt><br>
&nbsp;&nbsp;&nbsp; man 8 smartctl<br>
&nbsp;&nbsp;&nbsp; man 8 smartd</tt><br>
If you'd like to know more about S.M.A.R.T., then
the following references may be helpful: <br>
</big>
<ul>
<li>The <a
href="http://www.t13.org/project/d1321r1c.pdf"> ATAPI/ATA-5 Revision
1 specification</a> (start with Section 8.41)<br>
</li>
<li><a href="http://www.t13.org/#FTP_site">Earlier
and later revisions of the ATAPI/ATA Specs</a></li>
<li>The original S.M.A.R.T. specification is
SFF-8035i from the <a href="http://www.sffcommittee.com/ns/">SFF Committee</a>
. Here is their <a
href="ftp://ftp.seagate.com/sff/INF-8035.TXT"> "link"</a> .</li>
<li>The <a href="http://cmrr.ucsd.edu/smart/">UCSD SMART Project</a>
has some interesting publications:<br>
<ul>
<li><a
href="http://cmrr.ucsd.edu/smart/tech_papr/HamerlySmartPaper.pdf">Bayesian
Approaches to Failure Prediction for Disk Drives</a></li>
<li><a
href="http://cmrr.ucsd.edu/smart/tech_papr/SmtPapTransReliFinalWeb.pdf">Improved
Disk-Drive Failure Warnings</a> <br>
</li>
</ul>
</li>
<li><font color="#0000ff"><a
href="http://seagate.com/docs/pdf/whitepaper/drive_reliability.pdf"
target="_blank">Estimating Drive Reliability in Desktop Computers and Consumer
Electronics Systems</a></font> (Seagate)<br>
</li>
<li><font color="#0000ff"><a
href="http://seagate.com/docs/pdf/whitepaper/enhanced_smart.pdf"
target="_blank">Enhanced SMART - Get S.M.A.R.T. For Reliability</a></font>
(Seagate)<br>
</li>
<li><font color="#0000ff"><a
href="http://www.seagate.com/docs/pdf/whitepaper/smart_u8.pdf"
target="_blank">Playing it S.M.A.R.T.</a><font color="#008080" size="2"
face="Verdana"> </font></font>(Seagate)<br>
</li>
<li><font color="#0000ff"><a
href="http://www.seagate.com/docs/pdf/whitepaper/Enhanced_DST_Tech_Paper.pdf"
target="_blank">Enhanced Drive Self-Test</a><font color="#008080"
size="2" face="Verdana"> </font></font>(Seagate)<br>
</li>
<li><a
href="http://www.maxtor.com/products/DiamondMax/software/maxsafe.pdf"
target="_blank">Drive reliability and safety system: MaxSafe</a> (Maxtor)<br>
</li>
<li><u>Specifying Reliability in the Disk Drive Industry: No More
MTBF's</u>, Jon G. Elerath (IBM Storage Systems Division) in <i>Proceedings
of the IEEE 2000 Annual Reliability and Maintainability Symposium, pg 194,
0-7803-5848-1/00/$10.00.</i><br>
</li>
</ul>
<hr width="100%" size="2"><a name="sampleoutput"></a><b>Example output from
smartmontools smartctl utility:</b>
<ul>
<li> <a
href="http://smartmontools.sourceforge.net/MAXTOR-0.html">MAXTOR 4K080H4</a>&nbsp;
80 GB 5400 RPM<br>
</li>
<li> <a
href="http://smartmontools.sourceforge.net/MAXTOR-1.html">MAXTOR 4K080H4</a>
&nbsp;80 GB 5400 RPM &nbsp;(has failing SMART status)<br>
</li>
<li><a href="http://smartmontools.sourceforge.net/MAXTOR-2.html">MAXTOR
4K080H4</a> &nbsp;80 GB 5400 RPM &nbsp;(has had failing SMART test in the
past. &nbsp;Look at the Seek Error Rate)<br>
</li>
<li> <a
href="http://smartmontools.sourceforge.net/MAXTOR-3.html">MAXTOR 6L080J4</a>
&nbsp; &nbsp;80 GB 7200 RPM<br>
</li>
<li> <a
href="http://smartmontools.sourceforge.net/MAXTOR-4.html">MAXTOR 6L080J4</a>
&nbsp;&nbsp; 80 GB 7200 RPM<br>
</li>
<li> <a
href="http://smartmontools.sourceforge.net/IC35L120AVVA07-0-0.html">IBM IC35L120AVVA07</a>
IBM 120 GB 7200 RPM<br>
</li>
<li> <a
href="http://smartmontools.sourceforge.net/IC35L120AVVA07-0-1.html">IBM IC35L120AVVA07</a>
IBM 120 GB 7200 RPM</li>
<li> <a
href="http://smartmontools.sourceforge.net/HITACHI_DK23BA-20-0.html">HITACHI_DK23BA-20</a>
Hitachi 20 GB Laptop Disk<br>
</li>
</ul>
<hr width="100%" size="2">
<ul>
</ul>
<ul>
</ul>
Page maintained by <a
href="mailto:smartmontools-support@lists.sourceforge.net">Bruce Allen</a><br>
<big> </big></div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</body>
</html>
#! /bin/bash
# This is a script to wrap smartctl output into http:// displayable form
# It requires a filename as input, and produces an file with a .html extension as output
if [ $# -ne 1 ] ; then
echo This script requires one a file as input
exit 1
fi
model=`grep "Device Model" $1 | awk '{print $3}' `
# see if file name in use
let i=0
while [ -f $model-$i.html ] ; do
let i+=1
done
filename=$model-$i
echo -e "<pre><tt>\n" > $filename.html
cat $1 >> $filename.html
echo -e "</tt></pre>\n" >> $filename.html
echo created file $filename.html
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment