SATA and SAS link errors: what counters can and cannot diagnose
Published 2026-10-10 · Updated 2026-10-15
SATA error flags and SAS PHY counters identify observations in the I/O path, not the component that must be replaced. Preserve endpoint identity, timestamps and reset history before comparing counts. Historical field studies show why a disk-only view is incomplete, but their event shares are not modern SAS failure rates.
On this page12 sections
- Historical subsystem events
- Jiang et al.: about 39,000 systems, 1.8 million disks, January 2004-August 2007. Shares count classified events, not unique disks or application outages.
- Historical replacements
- Schroeder and Gibson: HPC1 August 2001-May 2006; COM1 May 2006; COM2 September 2004-April 2006. Replaced component is not necessarily root cause.
- Diagnostic implementation
- smartmontools 7.5 and Linux v6.12: separately identify ATA status, SAS device-log counters and driver-exposed PHY observations.
- Not measured
- Modern SAS failure rates, probabilities of particular component causes, and any threshold that establishes a safe or failing device.
Where storage subsystem failures came from in the NetApp logs
| System class | Disk events | Interconnect events | All four types (events) | Interconnect share (%) | Disk share (%) | Source |
|---|---|---|---|---|---|---|
| Near-line (SATA) | 10105 | 4888 | 17892 | 27.3 | 56.5 | FAST '08 paper |
| Low-end | 3230 | 4338 | 9824 | 44.2 | 32.9 | FAST '08 paper |
| Mid-range | 8989 | 7949 | 21296 | 37.3 | 42.2 | FAST '08 paper |
| High-end | 8240 | 7395 | 17364 | 42.6 | 47.5 | FAST '08 paper |
Disk failure rate is not the subsystem failure rate
Selected annualized event rates stated in Jiang et al., excluding Disk H for the first two comparisons. The paper's subsystem endpoint is RAID-layer exposed failure events, not application unavailability. Do not read an annualized event rate as the probability of at least one outage. The final row compares shelves with the same disk model. The shelf row reports AFR plus or minus a confidence-interval half-width in percentage points; Figure 6 labels intervals as at least 99.5% confidence. The authors report 99.5% confidence for the Disk A-2 shelf comparison; no interval estimator is inferred here.
| Comparison | Value A (% per year) | Value B (% per year) | What the paper concludes | Source |
|---|---|---|---|---|
| Low-end: disk AFR (A) versus whole subsystem AFR (B) | 0.9 | 4.6 | Different endpoints: disk events versus all subsystem failure types | FAST '08 paper |
| Near-line: disk AFR (A) versus whole subsystem AFR (B) | 1.9 | 3.4 | Disk and subsystem-event rates need not rank system classes in the same order | FAST '08 paper |
| Low-end interconnect AFR: shelf A versus shelf B, Disk A-2 | 2.66 ± 0.23 | 2.18 ± 0.13 | Observed shelf association, primarily in interconnect events; not a randomized causal estimate | FAST '08 paper |
Cable and backplane lines in hardware replacement logs
Schroeder and Gibson, Table 3. Numerator: replacements attributed to the listed component; denominator: all recorded hardware replacements in that dataset. These are not component failure probabilities. Service abbreviations such as SCSI BP are retained because the authors warn that meanings differ across datasets.
| Data set | Component | Share of replacements (%) | Note | Source |
|---|---|---|---|---|
| COM2 | Hard drive | 49.1 | Most replaced component in this set | FAST '07 paper |
| COM2 | RAID card | 4.1 | Adapter in the I/O path | FAST '07 paper |
| COM2 | SCSI cable | 2.2 | Same share as fans and CPUs in this list | FAST '07 paper |
| COM1 | SCSI board | 0.6 | Disk drives are 18.1% in the same list | FAST '07 paper |
| HPC1 | SCSI BP (service-log label) | 0.3 | Hard drives are 30.6% in the same list | FAST '07 paper |
One interconnect failure as the storage layers logged it
The example log in Figure 3 of Jiang et al., re-tabulated; the seconds column is this page's subtraction from the first timestamp. It shows the order of events in one system, not a measured delay for any other.
| Clock time (PDT) | Elapsed since first event (s) | Event as logged | Layer | Source |
|---|---|---|---|---|
| 05:43:36 | 0 | fci.device.timeout: adapter 8 encountered a device timeout on device 8.24 | Fibre Channel | FAST '08 paper |
| 05:43:50 | 14 | fci.adapter.reset: resetting Fibre Channel adapter 8; scsi.cmd.abortedByHost on device 8.24 | Fibre Channel, SCSI | FAST '08 paper |
| 05:44:12 | 36 | scsi.cmd.selectionTimeout: targeted device did not respond; I/O will be retried | SCSI | FAST '08 paper |
| 05:44:22 | 46 | scsi.cmd.noMorePaths: no more paths to device, all retries have failed | SCSI | FAST '08 paper |
| 05:46:22 | 166 | raid.config.filesystem.disk.missing: disk 8.24 is missing | RAID | FAST '08 paper |
Host-side signals that point at the link, and what each leaves open
Pinned Linux v6.12 sources and smartmontools 7.5 documentation. Interpret command flags, recovery actions and counters separately.
| Observation | Supported reading | Not established | Source |
|---|---|---|---|
| Emask 0x10 | AC_ERR_ATA_BUS is bit 4 in Linux's completion-error mask. | A software error category, not a cable diagnosis. | Linux error categories |
| ICRC | Transfer-integrity error. | Which physical component caused it. | libata guide |
| UNC | Uncorrectable data reported by the device. | A cable diagnosis or universal replacement rule. | libata guide |
| ABRT alone | Command rejection has several possible meanings. | A unique transport or media cause. | libata guide |
| PHYRdyChg / CommWake | Link-state context, not interchangeable with BadCRC; hotplug handling depends on link/power policy. | A broken cable from one printed token. | Linux ATA handling |
| Several failed NCQ commands | One failed tag can trigger recovery of other outstanding commands. | One independent device fault per log line. | Linux NCQ recovery |
| SMART attribute label or raw value | Model-specific interpretation is required. | A universal meaning for IDs 183 or 199. | smartctl 7.5 manual |
| Drive disappears without a media error | Availability was lost; investigate the whole path. | Proof that the media or device is healthy. | FAST '08 paper |
SATA PHY counters are different event populations
Examples decoded by smartmontools 7.5 from SATA General Purpose Log 0x11. Event identifiers are not SMART attribute IDs. Do not sum overlapping counters as unique incidents.
| Event ID | What is counted | Diagnostic boundary | Source |
|---|---|---|---|
| 0x0001 | Commands failing with ICRC | Not a count of defective cables. | SATA PHY decoder |
| 0x000a | Register responses sent following COMRESET | Reset-related activity, not proof of spontaneous failure. | SATA PHY decoder |
| 0x000b | Host-to-device FIS CRC errors | Direction matters; not all interface traffic. | SATA PHY decoder |
| Maximum value / '+' | A saturated event counter | An unchanged maximum does not prove no new events. | SATA PHY decoder |
SAS: four PHY counters and their limits
Examples decoded per PHY by smartmontools 7.5 from the SAS SSP Protocol Specific port log page. Additional event descriptors may be present. These are 32-bit reported counts, not independent failures.
| Reported counter | Observation category | What it does not establish | Source |
|---|---|---|---|
| Invalid DWORD count | Invalid received DWORD observations | A number of bad disk sectors or a unique faulty component | smartmontools SAS decoder |
| Running disparity error count | Received coding-disparity errors | A universal interpretation across all SAS generations and encodings | smartmontools SAS decoder |
| Loss of DWORD synchronization count | Loss of DWORD synchronization | Proof that the attached disk's media caused the interruption | smartmontools SAS decoder |
| Phy reset problem count | Problems associated with PHY reset | A count of every reset, or a command to reset the physical link | smartmontools SAS decoder |
Reproduce the event shares with the complete input counts and calculation module. The denominator includes all four failure categories; no new statistical uncertainty is estimated.
Read first; preserve the evidence
For a supported SAS target, smartctl -l sasphy /dev/sdX reads log page 0x18. The optional sasphy,reset form reads first and then requests a counter reset. It changes diagnostic history; it is not an extra read-only view or a physical-link repair. For SATA, the separate -l sataphy option reads PHY event log 0x11. smartctl manual.
Operational inference: identify the actual device and access path before collecting. Retain the complete output and acquisition errors, not only a four-counter screenshot. Record endpoint identifiers, collection time, link state and intervening maintenance. Preserve the initial sample before any authorized reset, and retain its success or failure. A passed health summary or an unchanged counter does not exclude faults outside the observation window.
What the evidence supports
The Table 1 arithmetic is reproducible, but its denominator is selected subsystem events. The paper's 27-68% interconnect headline excludes Disk H; the table here includes it. Keeping that distinction prevents two valid summaries from appearing contradictory. Neither selection estimates a modern SAS fleet. [jiang]
Replacement logs describe maintenance actions. The FAST 2007 paper cautions against equating replacements with confirmed defective drives. Its cited 43% no-problem-found figure is a vendor personal communication, not a measured share of cable-caused returns and not proof that those drives were healthy. [schroeder]
The NetApp log example is one incident, not a latency distribution. Its clustering comparison concerns the probability of exactly two failures of a type in a shelf-year against an independence model. The reported 10-25-fold difference for non-disk types is not the conditional risk immediately after one failure. A cluster of inaccessible drives is a reason to investigate shared dependencies, not a diagnosis by itself. [jiang]
In the documented NCQ error path, log page 0x10 identifies the failed command tag. Linux v6.12 can then clear shared error status from the other affected commands and mark them for retry. This path has guards: a frozen port, unsuccessful log read or inactive tag prevents that attribution. Repeated command messages therefore need incident-level context, not automatic counting as separate disk failures. [ata-doc] [ata-sata]
A counter is meaningful only at its reporting endpoint. Linux v6.12 optionally calls get_linkerrors before displaying a stored PHY field. If that callback is absent, the sysfs read can still succeed: a displayed zero is not proof of a fresh hardware sample. Other driver paths may update the field, so check the driver's acquisition behavior. Host or expander observations are not interchangeable with a target-device log. An unsupported read is unavailable telemetry, not a measured zero. [linux-sas]
smartmontools 7.5 uses positional JSON keys for port/PHY containers; their suffixes are not the reported port or PHY identifiers. Match the identifier fields and SAS endpoint addresses, not container order. Its LOG SENSE read and optional LOG SELECT reset are separate commands, not an atomic read-and-clear. Operational inference: events arriving between them can escape successive reset-based samples; preserve read-only baselines when possible. [sas-decoder]
For incident collection, compare the same event on the same device, port, PHY and endpoint over a recorded interval. A known reset, replacement or unexplained decrease breaks a naive subtraction. Establish a new baseline and investigate documented wrap or saturation rather than assuming either. Events per hour are not bit-error rate or annualized drive failures: those require different event definitions and exposure denominators. [smartctl] [linux-sas]
Definitions: Native Command Queuing, SATA PHY event counters, SAS PHY event counters, SAS definition, SCSI sense and kernel-log signatures, what fails most often on HDDs, SSDs and links and the SMART failure-signal note.
Method
Source review of smartmontools 7.5 and Linux v6.12 at pinned commits, plus independent rechecking of Jiang et al. (FAST 2008, Table 1 and sections 2-5) and Schroeder and Gibson (FAST 2007, Table 3). Event shares are generated from the downloadable four-category input counts and calculation module into the article data before build, so HTML and llms-full.txt use the same rows. Diagnostic guidance is an operational inference from the reporting boundaries, not a tested fault classifier. No hardware experiment, fleet measurement or paper replication was performed.
Limits
The field data describe older FC/SATA shelves and hardware replacement records, not current SAS error incidence. Jiang counts failures exposed at the RAID layer; masking above or below that boundary matters. Counter availability and meaning depend on the device, driver, transport and implementation. Pinned source behavior is not a promise for every firmware or software version. No calibrated cable-versus-drive diagnostic accuracy, universal threshold, counter-persistence guarantee or SAS bit-error denominator is available here.
Sources
- 01Jiang, Hu, Zhou, Kanevsky: Are Disks the Dominant Contributor for Storage Failures? FAST 2008 (paper PDF) · accessed 2026-10-15
- 02Schroeder, Gibson: Disk failures in the real world: What does an MTTF of 1,000,000 hours mean to you? FAST 2007 (HTML paper) · accessed 2026-10-15
- 03smartmontools 7.5: smartctl manual, vendor-specific attributes and sasphy/sataphy options · accessed 2026-10-15
- 04smartmontools 7.5: SAS port/PHY decoder and optional counter reset · accessed 2026-10-15
- 05Linux v6.12: SAS transport PHY identity and link-error acquisition · accessed 2026-10-15
- 06Linux v6.12: ATA completion-error categories · accessed 2026-10-15
- 07Linux v6.12: libata device, NCQ and bus error documentation · accessed 2026-10-15
- 08Linux v6.12: libata error classification and SError handling · accessed 2026-10-15
- 09Linux v6.12: ata_eh_analyze_ncq_error and failed-tag attribution · accessed 2026-10-15
- 10smartmontools 7.5: PrintSataPhyEventCounters decoder · accessed 2026-10-15