⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smartd.conf.5.in

📁 硬盘各项性能的测试,如温度容量版本健康度型号
💻 IN
📖 第 1 页 / 共 4 页
字号:
.I none\- Assume that the device firmware obeys the ATA specifications.  This isthe default, unless the device has presets for \'\-F\' in the devicedatabase..I samsung\- In some Samsung disks (example: model SV4012H Firmware Version:RM100-08) some of the two- and four-byte quantities in the SMART datastructures are byte-swapped (relative to the ATA specification).Enabling this option tells \fBsmartd\fP to evaluate these quantitiesin byte-reversed order.  Some signs that your disk needs this optionare (1) no self-test log printed, even though you have run self-tests;(2) very large numbers of ATA errors reported in the ATA error log;(3) strange and impossible values for the ATA error log timestamps..I samsung2\- In more recent Samsung disks (firmware revisions ending in "\-23") thenumber of ATA errors reported is byte swapped.  Enabling this optiontells \fBsmartd\fP to evaluate this quantity in byte-reversed order..I samsung3\- Some Samsung disks (at least SP2514N with Firmware VF100\-37) reporta self\-test still in progress with 0% remaining when the test was alreadycompleted. If this directive is specified, \fBsmartd\fP will not skip thenext scheduled self\-test (see Directive \'\-s\' above) in this case.Note that an explicit \'\-F\' Directive will over-ride any presetvalues for \'\-F\' (see the \'\-P\' option below).[Please see the \fBsmartctl \-F\fP command-line option.].TP.B \-v N,OPTIONModifies the labeling for Attribute N, for disks which usenon-standard Attribute definitions.  This is useful in connection withthe Attribute tracking/reporting Directives.This Directive may appear multiple times. Valid arguments to thisDirective are:.I 9,minutes\- Raw Attribute number 9 is power-on time in minutes.  Its raw valuewill be displayed in the form \'Xh+Ym\'.  Here X is hours, and Y isminutes in the range 0-59 inclusive.  Y is always printed with twodigits, for example \'06\' or \'31\' or \'00\'..I 9,seconds\- Raw Attribute number 9 is power-on time in seconds.  Its raw valuewill be displayed in the form \'Xh+Ym+Zs\'.  Here X is hours, Y isminutes in the range 0-59 inclusive, and Z is seconds in the range0-59 inclusive.  Y and Z are always printed with two digits, forexample \'06\' or \'31\' or \'00\'..I 9,halfminutes\- Raw Attribute number 9 is power-on time, measured in units of 30seconds.  This format is used by some Samsung disks.  Its raw valuewill be displayed in the form \'Xh+Ym\'.  Here X is hours, and Y isminutes in the range 0-59 inclusive.  Y is always printed with twodigits, for example \'06\' or \'31\' or \'00\'..I 9,temp\- Raw Attribute number 9 is the disk temperature in Celsius..I 192,emergencyretractcyclect\- Raw Attribute number 192 is the Emergency Retract Cycle Count..I 193,loadunload\- Raw Attribute number 193 contains two values. The first is thenumber of load cycles.  The second is the number of unload cycles.The difference between these two values is the number of times thatthe drive was unexpectedly powered off (also called an emergencyunload). As a rule of thumb, the mechanical stress created by oneemergency unload is equivalent to that created by one hundred normalunloads..I 194,10xCelsius\- Raw Attribute number 194 is ten times the disk temperature inCelsius.  This is used by some Samsung disks (example: model SV1204Hwith RK100-13 firmware)..I 194,unknown\- Raw Attribute number 194 is NOT the disk temperature, and itsinterpretation is unknown. This is primarily useful for the -P(presets) Directive..I 198,offlinescanuncsectorct\- Raw Attribute number 198 is the Offline Scan UNC Sector Count..I 200,writeerrorcount\- Raw Attribute number 200 is the Write Error Count..I 201,detectedtacount\- Raw Attribute number 201 is the Detected TA Count..I 220,temp\- Raw Attribute number 220 is the disk temperature in Celsius.Note: a table of hard drive models, listing which Attributecorresponds to temperature, can be found at:\fBhttp://www.guzu.net/linux/hddtemp.db\fP.I N,raw8\- Print the Raw value of Attribute N as six 8-bit unsigned base-10integers.  This may be useful for decoding the meaning of the Rawvalue.  The form \'N,raw8\' prints Raw values for ALL Attributes in thisform.  The form (for example) \'123,raw8\' only prints the Raw value forAttribute 123 in this form..I N,raw16\- Print the Raw value of Attribute N as three 16-bit unsigned base-10integers.  This may be useful for decoding the meaning of the Rawvalue.  The form \'N,raw16\' prints Raw values for ALL Attributes in thisform.  The form (for example) \'123,raw16\' only prints the Raw value forAttribute 123 in this form..I N,raw48\- Print the Raw value of Attribute N as a 48-bit unsigned base-10integer.  This may be useful for decoding the meaning of the Rawvalue.  The form \'N,raw48\' prints Raw values for ALL Attributes inthis form.  The form (for example) \'123,raw48\' only prints the Rawvalue for Attribute 123 in this form..TP.B \-P TYPESpecifies whether\fBsmartd\fPshould use any preset options that are available for this drive.  Thevalid arguments to this Directive are:.I use\- use any presets that are available for this drive.  This is the default..I ignore\- do not use any presets for this drive..I show\- show the presets listed for this drive in the database..I showall\- show the presets that are available for all drives and then exit.[Please see the.B smartctl \-Pcommand-line option.].TP.B \-aEquivalent to turning on all of the following Directives: .B \'\-H\' to check the SMART health status,.B \'\-f\' to report failures of Usage (rather than Prefail) Attributes,.B \'\-t\' to track changes in both Prefailure and Usage Attributes,.B \'\-l\ selftest\' to report increases in the number of Self-Test Log errors,.B \'\-l\ error\' to report increases in the number of ATA errors,.B \'\-C 197\'to report nonzero values of the current pending sector count, and.B \'\-U 198\'to report nonzero values of the offline pending sector count.Note that \-a is the default for ATA devices.  If none of these otherDirectives is given, then \-a is assumed..TP.B #Comment: ignore the remainder of the line..TP.B \eContinuation character: if this is the last non-white or non-commentcharacter on a line, then the following line is a continuation of the currentone..PPIf you are not sure which Directives to use, I suggest experimentingfor a few minutes with.B smartctlto see what SMART functionality your disk(s) support(s).  If you donot like voluminous syslog messages, a good choice of\fBsmartd\fPconfiguration file Directives might be:.nf.B \-H \-l\ selftest \-l\ error \-f..fiIf you want more frequent information, use:.B -a..TP.B ADDITIONAL DETAILS ABOUT DEVICESCANIf the first non-comment entry in the configuration file is the textstring \fBDEVICESCAN\fP in capital letters, then \fBsmartd\fP willignore any remaining lines in the configuration file, and will scanfor devices.If \fBDEVICESCAN\fP is not followed by any Directives, then smartdwill scan for both ATA and SCSI devices, and will monitor all possibleSMART properties of any devices that are found.\fBDEVICESCAN\fP may optionally be followed by any valid Directives,which will be applied to all devices that are found in the scan.  Forexample.nf.B DEVICESCAN -m root@example.com.fiwill scan for all devices, and then monitor them.  It will send oneemail warning per device for any problems that are found..nf.B  DEVICESCAN -d ata -m root@example.com.fiwill do the same, but restricts the scan to ATA devices only.  .nf.B  DEVICESCAN -H -d ata -m root@example.com.fiwill do the same, but only monitors the SMART health status of thedevices, (rather than the default \-a, which monitors all SMARTproperties)..TP.B EXAMPLES OF SHELL SCRIPTS FOR \'\-M exec\'These are two examples of shell scripts that can be used with the \'\-Mexec PATH\' Directive described previously.  The paths to these scriptsand similar executables is the PATH argument to the \'\-M exec PATH\'Directive.Example 1: This script is for use with \'\-m ADDRESS -M exec PATH\'.  It appendsthe output of.B smartctl -ato the output of the smartd email warning message and sends it to ADDRESS..nf\fB#! /bin/bash# Save the email message (STDIN) to a file:cat > /root/msg# Append the output of smartctl -a to the message:/usr/local/sbin/smartctl -a -d $SMART_DEVICETYPE $SMARTD_DEVICE >> /root/msg # Now email the message to the user at address ADD:/bin/mail -s "$SMARTD_SUBJECT" $SMARTD_ADDRESS < /root/msg\fP.fiExample 2: This script is for use with \'\-m <nomailer> \-M execPATH\'. It warns all users about a disk problem, waits 30 seconds, andthen powers down the machine..nf\fB#! /bin/bash# Warn all users of a problemwall \'Problem detected with disk: \' "$SMARTD_DEVICESTRING"wall \'Warning message from smartd is: \' "$SMARTD_MESSAGE"wall \'Shutting down machine in 30 seconds... \' # Wait half a minutesleep 30 # Power down the machine/sbin/shutdown -hf now\fP.fiSome example scripts are distributed with the smartmontools package,in /usr/local/share/doc/smartmontools-5.1/examplescripts/.Please note that these scripts typically run as root, so any filesthat they read/write should not be writable by ordinary users orreside in directories like /tmp that are writable by ordinary usersand may expose your system to symlink attacks.As previously described, if the scripts write to STDOUT or STDERR,this is interpreted as indicating that there was an internal errorwithin the script, and a snippet of STDOUT/STDERR is logged to SYSLOG.The remainder is flushed..\" ENDINCLUDE.\" DO NOT MODIFY THIS OR PREVIOUS/NEXT LINES. THIS DEFINES THE .\" END OF THE INCLUDED SECTION FROM smartd.8.in.PP.SH AUTHOR\fBBruce Allen\fP smartmontools-support@lists.sourceforge.net.fiUniversity of Wisconsin \- Milwaukee Physics Department.PP.SH CONTRIBUTORSThe following have made large contributions to smartmontools:.nf\fBCasper Dik\fP (Solaris SCSI interface)\fBChristian Franke\fP (Windows interface and Cygwin package)\fBDouglas Gilbert\fP (SCSI subsystem)\fBGuido Guenther\fP (Autoconf/Automake packaging)\fBGeoffrey Keating\fP (Darwin ATA interface)\fBEduard Martinescu\fP (FreeBSD interface)\fBFr\*'ed\*'eric L. W. Meunier\fP (Web site and Mailing list)\fBKeiji Sawada\fP (Solaris ATA interface)\fBSergey Svishchev\fP (NetBSD interface)\fBDavid Snyder and Sergey Svishchev\fP (OpenBSD interface)\fBPhil Williams\fP (User interface and drive database)\fBShengfeng Zhou\fP (Linux Highpoint RocketRaid interface).fiMany other individuals have made smaller contributions and corrections..PP.SH CREDITS.fiThis code was derived from the smartsuite package, written by MichaelCornwell, and from the previous ucsc smartsuite package. It extendsthese to cover ATA-5 disks. This code was originally developed as aSenior Thesis by Michael Cornwell at the Concurrent Systems Laboratory(now part of the Storage Systems Research Center), Jack Baskin Schoolof Engineering, University of California, SantaCruz. \fBhttp://ssrc.soe.ucsc.edu/\fP ..SHHOME PAGE FOR SMARTMONTOOLS: .fiPlease see the following web site for updates, further documentation, bugreports and patches:.nf.Bhttp://smartmontools.sourceforge.net/.SHSEE ALSO:\fBsmartd\fP(8), \fBsmartctl\fP(8), \fBsyslogd\fP(8),\fBsyslog.conf\fP(5), \fBbadblocks\fP(8), \fBide\-smart\fP(8), \fBregex\fP(7)..SHCVS ID OF THIS PAGE:$Id: smartd.conf.5.in,v 1.87 2008/03/04 22:09:47 ballen4705 Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -