Self-Monitoring, Analysis and Reporting Technology
The English used in this article or section may not be easy for everybody to understand. (January 2012)
Self-Monitoring, Analysis, and Reporting Technology, or S.M.A.R.T. is a system to watch computer hard disks to help stop the risk of failures. It does this by watching of the hard disks to try and see when a failure might happen and where.
Background[change | change source]
Hard drive failures fall into two categories:
- Predictable failures' happen over a longer time period. Examples for this is mechanical wear, or degradation of the surface of the storage device.
- Unpredictable failures happen suddenly, in an unforeseen manner. Examples for this is the failure of an electronic component, or sudden mechanical failure, perhaps because of bad handling.
Predictable failures can be detected by certain monitoring devices. This is like a thermometer in a vehicle that can alert the driver to do something before serious damage occurs, for example because the engine is too hot.
About 60% of all drive failures are caused by failing mechanics. Most mechanical failures result from gradual wear. An eventual failure may be catastrophic. Before complete failure occurs, there are usually certain signs that failure is imminent. These may include increased heat output, a more noisy drive, problems with reading or writing data and a big increase in the number of damaged disk sectors.
The purpose of S.M.A.R.T. is to warn a user or system administrator that a drive is about to fail. At the time of the warning, there is usually still time to do certain things to prevent data loss, for example copying the data to a different drive. Approximately 30% of failures can be predicted by S.M.A.R.T. Work at Google on over 100,000 drives has shown little overall predictive value of S.M.A.R.T. status as a whole. The study suggests that certain sub-categories of information which some S.M.A.R.T. implementations track do correlate with actual failure rates. In the 60 days after the first scan error on a drive, the drive is 39 times more likely to fail on average than it would have been had no such error occurred. Also, first errors in reallocations, offline reallocations and probational counts are strongly correlated to higher probabilities of failure.
PCTechGuide's page on S.M.A.R.T. commented in 2003 that the technology had gone through three phases:
|“||In its original incarnation SMART provided failure prediction by monitoring certain online hard drive activities. A subsequent version improved failure prediction by adding an automatic off-line read scan to monitor additional operations. The latest SMART technology not only monitors hard drive activities but adds failure prevention by attempting to detect and repair sector errors. Also, whilst earlier versions of the technology only monitored hard drive activity for data that was retrieved by the operating system, this latest SMART tests all data and all sectors of a drive by using "off-line data collection" to confirm the drive's health during periods of inactivity.||”|
History and predecessors[change | change source]
The industry's first hard disk monitoring technology was introduced by IBM in 1992 in their IBM 9337 Disk Arrays for AS/400 servers using IBM 0662 SCSI-2 disk drives. Later it was named Predictive Failure Analysis (PFA) technology. It was measuring several key device health parameters and evaluating them within the drive firmware. Communications between the physical unit and the monitoring software were limited to a binary result – namely, either "device is OK" or "drive is likely to fail soon".
Later, another variant, which was named IntelliSafe, was created by computer manufacturer Compaq and disk drive manufacturers Seagate, Quantum, and Conner. The disk drives would measure the disk’s "health parameters", and the values would be transferred to the operating system and user-space monitoring software. Each disk drive vendor was free to decide which parameters were to be included for monitoring, and what their thresholds should be. The unification was at the protocol level with the host.
Compaq submitted their implementation to Small Form Committee for standardization in early 1995. It was supported by IBM, by Compaq's development partners Seagate, Quantum, and Conner, and by Western Digital, who did not have a failure prediction system at the time. The Committee chose IntelliSafe's approach, as it provided more flexibility. The resulting jointly developed standard was named S.M.A.R.T.
SMART Information[change | change source]
The most basic information that SMART provides is the SMART status. It provides only two values: "threshold not exceeded" and "threshold exceeded". Often these are represented as "drive OK" or "drive fail" respectively. A "threshold exceeded" value is intended to indicate that there is a relatively high probability that the drive will not be able to honour its specification in the future – that is, the drive is "about to fail". The predicted failure may be catastrophic or may be something as subtle as the inability to write to certain sectors, or perhaps slower performance than the manufacturer's declared minimum.
The SMART status does not necessarily indicate the drive's past or present reliability. If a drive has already failed catastrophically, the SMART status may be inaccessible. Alternatively, if a drive has experienced problems in the past, but the sensors no longer detect such problems, the SMART status may, depending on the manufacturer's programming, suggest that the drive is now sound.
The inability to read some sectors is not always an indication that a drive is about to fail. One way that unreadable sectors may be created, even when the drive is functioning within specification, is through a sudden power failure while the drive is writing. In order to prevent this problem, modern hard drives will always finish writing at least the current sector immediately after the power fails (typically using rotational energy from the disk). Also, even if the physical disk is damaged at one location, such that a certain sector is unreadable, the disk may be able to use spare space to replace the bad area, so that the sector can be overwritten.
More detail on the health of the drive may be obtained by examining the SMART Attributes. SMART Attributes were included in some drafts of the ATA standard, but were removed before the standard became final. The meaning and interpretation of the attributes varies between manufacturers, and are sometimes considered a trade secret for one manufacturer or another. Attributes are further discussed below.
Drives with SMART may optionally support a number of 'logs'. The error log records information about the most recent errors that the drive has reported back to the host computer. Examining this log may help one to determine whether computer problems are disk-related or caused by something else.
A drive supporting SMART may optionally support a number of self-test or maintenance routines, and the results of the tests are kept in the self-test log. The self-test routines may be used to detect any unreadable sectors on the disk, so that they may be restored from back-up sources (for example, from other disks in a RAID). This helps to reduce the risk of incurring permanent loss of data.
Standards and implementation[change | change source]
Many motherboards will display a warning message when a disk drive is approaching failure. Although an industry standard among most major hard drive manufacturers, there are some remaining issues and much proprietary "secret knowledge" held by individual manufacturers as to their specific approach.
From a legal perspective, the term "S.M.A.R.T." refers only to a signalling method between internal disk drive electromechanical sensors and the host computer. Hence, a drive may be claimed by its manufacturers to include S.M.A.R.T. support even if it does not include, say, a temperature sensor, which the customer might reasonably expect to be present. Moreover, in the most extreme case, a disk manufacturer could, in theory, produce a drive which includes a sensor for just one physical attribute, and then legally advertise the product as "S.M.A.R.T. compatible".
Depending on the type of interface being used, some S.M.A.R.T.-enabled motherboards and related software may not communicate with certain S.M.A.R.T.-capable drives. For example, few external drives connected via USB and Firewire correctly send S.M.A.R.T. data over those interfaces. With so many ways to connect a hard drive (SCSI, Fibre Channel, ATA, SATA, SAS, SSA, and so on), it is difficult to predict whether S.M.A.R.T. reports will function correctly in a given system.
Even on hard drives and interfaces that support it, S.M.A.R.T. information may not be reported correctly to the computer's operating system. Some disk controllers can duplicate all write operations on a secondary "back-up" drive in real time. This feature is known as "RAID mirroring". However, many programs which are designed to analyze changes in drive behaviour and relay S.M.A.R.T. alerts to the operator do not function properly when a computer system is configured for RAID support. Generally this is because, under normal RAID operational conditions, the computer is not permitted by the RAID subsystem to 'see' (or directly access) individual physical drives, but may access only logical volumes instead.
On the Windows platform, many programs designed to monitor and report S.M.A.R.T. information will function only under an administrator account. At present, S.M.A.R.T. is implemented individually by manufacturers, and while some aspects are standardized for compatibility, others are not.
ATA S.M.A.R.T. Attributes[change | change source]
Each drive manufacturer defines a set of attributes, and sets threshold values beyond which attributes should not pass under normal operation. Each attribute has a raw value, whose meaning is entirely up to the drive manufacturer (but often corresponds to counts or a physical unit, such degrees Celsius or seconds), and a normalized value, which ranges from 1 to 253 (with 1 representing the worst case and 253 representing the best). Depending on the manufacturer, a value of 100 or 200 will often be chosen as the "normal" value.
Threshold Exceeds Condition[change | change source]
Threshold Exceeds Condition (TEC) is a supposed date when a critical drive statistic attribute will reach its threshold value. When Drive Health software reports a "Nearest T.E.C.", it should be regarded as a "Failure date".
Prognosis of this date is based on the factor "Speed of attribute change"; how many points each month the value is decreasing/increasing. This factor is calculated automatically at any change of S.M.A.R.T. attributes for each attribute individually. Note that TEC dates are not guarantees; hard drives can and will either last much longer or fail much sooner than the date given by a TEC.
References[change | change source]
- "S.M.A.R.T. attribute meaning". PalickSoft. Archived from the original on February 26, 2011. Retrieved February 3, 2006.
- Zbigniew Chlondowski. "S.M.A.R.T. Site: attributes reference table". S.M.A.R.T. Linux. Retrieved January 17, 2007.
- "S.M.A.R.T. attributes meaning". Ariolic Software, Ltd. 2007. Retrieved October 26, 2007.
- "Can we believe S.M.A.R.T. ? – How hard disk S.M.A.R.T. really works". H.D.S. Hungary. 2007. Retrieved June 4, 2008.
- "Seagate statement on enhanced smart attributes" (pdf). Seagate.
- How does S.M.A.R.T. work?
- A reallocation is the name for a move of data because the place where it is stored is about to fail.
- Eduardo Pinheiro, Wolf-Dietrich Weber and Luiz André Barroso. "Failure Trends in a Large Disk Drive Population" (PDF). Google Inc. 1600 Amphitheatre Pkwy Mountain View, CA 94043. Archived from the original (pdf) on 2009-02-13. Retrieved 2008-09-13.
- PCTechGuide's page on S.M.A.R.T. (2003)
- "IBM Announcement Letter No. ZG92-0289 dated September 1, 1992". Archived from the original on March 13, 2007. Retrieved January 24, 2021.
- Seagate – The evolution of S.M.A.R.T.
- Compaq. IntelliSafe. Technical Report SSF-8035, Small Form Committee, January 1995.
- Stephens, Curtis E, ed. (December 11, 2006), Information technology – AT Attachment 8 – ATA/ATAPI Command Set (ATA8-ACS), working draft revision 3f (PDF), ANSI INCITS, pp. 198–213, 327–344
- Hitachi Global Storage Technologies (19 September 2003), Hard Disk Drive Specification: Hitachi Travelstar 80GN, revision 2.0 (PDF), Hitachi Document Part Number S13K-1055-20, archived from the original (PDF) on 18 July 2011, retrieved 13 September 2008
- Hatfield, Jim (September 30, 2005), SMART Attribute Annex (PDF), e05148r0
- pctechguide: "Industry acceptance of PFA technology eventually led to SMART (Self-Monitoring, Analysis and Reporting Technology) becoming the industry-standard reliability prediction indicator..."