Lesson 2 of 9 · 23m
Disk Failure Signals, SMART, and the Errors That Matter
Read SMART and kernel evidence like an operator: pending sectors, reallocations, CRC errors, latency spikes, and when to replace versus investigate.
Disks rarely announce failure with a clean boolean. They become strange first: latency rises, a few sectors are reallocated, a link resets under load, or a drive disappears for thirty seconds and returns. The administrator's job is to distinguish the disk that must be replaced today from the cabling problem that is about to make you throw away good hardware.
SMART is evidence, not prophecy
SMART attributes vary by vendor, but several are operationally useful almost everywhere:
smartctl -A /dev/sdb | egrep 'Reallocated|Current_Pending|Offline_Uncorrectable|UDMA_CRC|Temperature'Interpretation matters:
Reallocated_Sector_Ct bad sectors already remapped
Current_Pending_Sector sectors unstable and awaiting read/write
Offline_Uncorrectable sectors found bad during offline tests
UDMA_CRC_Error_Count often cable, connector, or link noise
Temperature_Celsius thermal stress and cooling behaviorOne reallocation years ago on an otherwise stable disk is different from a count climbing every day. Trend lines matter more than a single integer. A nonzero pending-sector count on production storage deserves immediate attention because the filesystem may hit that sector during a rebuild or backup read.
Watch the kernel and the array together
SMART does not see everything. Kernel logs reveal transport resets and command timeouts:
journalctl -k --since '24 hours ago' | egrep -i 'ata[0-9]|nvme|scsi|reset|timeout|error'A reset burst across several disks attached to one expander points toward the shared path, not eight independent bad disks. A timeout isolated to one drive under normal load is more suspicious of the drive.
NVMe changes the vocabulary
NVMe devices expose a cleaner health log:
nvme smart-log /dev/nvme0
nvme error-log /dev/nvme0Pay attention to percentage_used, available_spare, media_errors, num_err_log_entries, and temperature. Consumer NVMe drives can throttle or corrupt performance badly under sustained writes because their small SLC cache disappears; the disk is not "failed," but it may be wrong for the workload.
Replacement discipline
Before replacing a disk, capture serial number, slot mapping, array membership, and the evidence that justified replacement:
smartctl -i /dev/sdb | egrep 'Model|Serial'
udevadm info --query=property --name=/dev/sdb | egrep 'ID_PATH|ID_SERIAL'Do not blindly dd zeros over a suspect disk before preserving evidence if the cause matters. Do not leave a flaky disk in a parity array because it still passes a short test. Use long tests and vendor tools as supporting evidence, not absolution.
Field notes
- SMART overall health
PASSEDis almost meaningless; vendors use low bars. - CRC errors usually implicate cables or connectors, but reseat one thing at a time so the cause is knowable.
- Latency outliers often precede hard failure; monitor p95/p99 disk latency, not just throughput.
- Test alert delivery; undelivered disk alerts are silent risk.
Was this lesson helpful?