Skip to content
Snippets Groups Projects
Commit 48964a6e authored by ballen4705's avatar ballen4705
Browse files

Revised smartd documentation to include some sample output

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@107 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 99b5ed1e
No related branches found
No related tags found
No related merge requests found
CHANGELOG for smartmontools CHANGELOG for smartmontools
$Id: CHANGELOG,v 1.17 2002/10/24 07:50:45 ballen4705 Exp $ $Id: CHANGELOG,v 1.18 2002/10/24 10:53:50 ballen4705 Exp $
Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> Copyright (C) 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
...@@ -29,6 +29,9 @@ NOTES FOR NEXT RELEASE: ...@@ -29,6 +29,9 @@ NOTES FOR NEXT RELEASE:
smartmontools-5.0-11 smartmontools-5.0-11
smartd now prints the name of a failed or changed attribute
into logfile, not just ID number
Changed name of -p (print version) option to -V Changed name of -p (print version) option to -V
Minor change in philosophy: if a SMART command fails or the device Minor change in philosophy: if a SMART command fails or the device
......
12 11
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
\# at the Concurrent Systems Laboratory (now part of the Storage Systems \# at the Concurrent Systems Laboratory (now part of the Storage Systems
\# Research Center), Jack Baskin School of Engineering, University of \# Research Center), Jack Baskin School of Engineering, University of
\# California, Santa Cruz. http://ssrc.soe.ucsc.edu/ \# California, Santa Cruz. http://ssrc.soe.ucsc.edu/
.TH SMARTD 8 "$Date: 2002/10/24 07:50:45 $" "smartmontools-5.0" .TH SMARTD 8 "$Date: 2002/10/24 10:53:50 $" "smartmontools-5.0"
.SH NAME .SH NAME
smartd \- S.M.A.R.T. Daemon smartd \- S.M.A.R.T. Daemon
.SH SYNOPSIS .SH SYNOPSIS
...@@ -60,15 +60,15 @@ messages are harmless.] ...@@ -60,15 +60,15 @@ messages are harmless.]
.SH .SH
OPTIONS OPTIONS
.TP .TP
p .B V
Version: Prints license, copyright, and CVS version information onto STDOUT or into the SYSLOG Version: Prints license, copyright, and CVS version information onto
log (normally /var/log/messages) and then exits. Please include this information if you are reporting bugs. STDOUT or into the SYSLOG log (normally /var/log/messages) and then
exits. Please include this information if you are reporting bugs.
.TP .TP
X .B X
eXamine: Runs smartd in "debug" mode. In this mode, it does not fork and eXamine: Runs smartd in "debug" mode. In this mode, it does not fork and
displays status information to STDOUT. displays status information to STDOUT.
.SH EXAMPLES .SH EXAMPLES
.B .B
...@@ -93,9 +93,9 @@ and stop it by using ...@@ -93,9 +93,9 @@ and stop it by using
.B '/etc/rc.d/init.d/smartd stop'. .B '/etc/rc.d/init.d/smartd stop'.
If you want If you want
.B .B smartd
smartd to start running whenever your machine is booted, this can be enabled
to start running whenever your machine is booted, this can be enabled by using the command: by using the command:
.nf .nf
.B '/sbin/chkconfig --add smartd' .B '/sbin/chkconfig --add smartd'
.fi .fi
...@@ -103,7 +103,27 @@ and disabled using the command: ...@@ -103,7 +103,27 @@ and disabled using the command:
.nf .nf
.B '/sbin/chkconfig --del smartd' .B '/sbin/chkconfig --del smartd'
.SH NOTES
.B smartd
will make log entries if SMART attribute values have changed,
for example:
.nf
.B 'Device: /dev/hda, SMART Attribute: 194 Temperature_Centigrade changed from 94 to 93'
.fi
Note that in this message, the value given is the 'Normalized' not
the 'Raw' Attribute value (the disk temperature in this case is about 22
centigrade). See the
.B smartctl
manual page for further explanation.
.B smartd
will also make log entries if a SMART attribute has failed, for example:
.nf
.B 'Device: /dev/hdc, Failed SMART attribute: 5 Reallocated_Sector_Ct. Use smartctl -v /dev/hdc.'
.fi
Such entries should not be ignored - they mean that the disk is failing. Use the
.B smartctl
utility to investigate.
.PP .PP
.SH AUTHOR .SH AUTHOR
Bruce Allen Bruce Allen
...@@ -178,4 +198,4 @@ Please let us know if there is an on\-line source for this document. ...@@ -178,4 +198,4 @@ Please let us know if there is an on\-line source for this document.
.SH .SH
CVS ID OF THIS PAGE: CVS ID OF THIS PAGE:
$Id: smartd.8,v 1.8 2002/10/24 07:50:45 ballen4705 Exp $ $Id: smartd.8,v 1.9 2002/10/24 10:53:50 ballen4705 Exp $
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include "ataprint.h" #include "ataprint.h"
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid3="$Id: smartd.c,v 1.22 2002/10/24 10:23:29 ballen4705 Exp $" const char *CVSid3="$Id: smartd.c,v 1.23 2002/10/24 10:53:50 ballen4705 Exp $"
CVSID1 CVSID4 CVSID7; CVSID1 CVSID4 CVSID7;
int daemon_init(void){ int daemon_init(void){
...@@ -250,8 +250,8 @@ int ataCheckDevice( atadevices_t *drive){ ...@@ -250,8 +250,8 @@ int ataCheckDevice( atadevices_t *drive){
loc=attributename; loc=attributename;
while (*loc && *loc==' ') while (*loc && *loc==' ')
loc++; loc++;
printout(LOG_CRIT,"Device: %s, Failed SMART attribute: %s. Use smartctl -v.\n", printout(LOG_CRIT,"Device: %s, Failed SMART attribute: %s. Use smartctl -v %s.\n",
drive->devicename,loc); drive->devicename,loc,drive->devicename);
} }
// WHEN IT WORKS, we should here add a call to ataSmartStatus2() // WHEN IT WORKS, we should here add a call to ataSmartStatus2()
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include "ataprint.h" #include "ataprint.h"
extern const char *CVSid1, *CVSid2; extern const char *CVSid1, *CVSid2;
const char *CVSid3="$Id: smartd.cpp,v 1.22 2002/10/24 10:23:29 ballen4705 Exp $" const char *CVSid3="$Id: smartd.cpp,v 1.23 2002/10/24 10:53:50 ballen4705 Exp $"
CVSID1 CVSID4 CVSID7; CVSID1 CVSID4 CVSID7;
int daemon_init(void){ int daemon_init(void){
...@@ -250,8 +250,8 @@ int ataCheckDevice( atadevices_t *drive){ ...@@ -250,8 +250,8 @@ int ataCheckDevice( atadevices_t *drive){
loc=attributename; loc=attributename;
while (*loc && *loc==' ') while (*loc && *loc==' ')
loc++; loc++;
printout(LOG_CRIT,"Device: %s, Failed SMART attribute: %s. Use smartctl -v.\n", printout(LOG_CRIT,"Device: %s, Failed SMART attribute: %s. Use smartctl -v %s.\n",
drive->devicename,loc); drive->devicename,loc,drive->devicename);
} }
// WHEN IT WORKS, we should here add a call to ataSmartStatus2() // WHEN IT WORKS, we should here add a call to ataSmartStatus2()
......
...@@ -102,6 +102,8 @@ fi ...@@ -102,6 +102,8 @@ fi
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog %changelog
* Thu Oct 24 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net> * Thu Oct 24 2002 Bruce Allen <smartmontools-support@lists.sourceforge.net>
- smartd now prints the name of a failed or changed attribute into logfile,
not just ID number
- Changed name of -p (print version) option to -V - Changed name of -p (print version) option to -V
- Minor change in philosophy: if a SMART command fails or the device - Minor change in philosophy: if a SMART command fails or the device
appears incapable of a SMART command that the user has asked for, appears incapable of a SMART command that the user has asked for,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment