A drive reported 5,876 failures. We missed it for 37 days.
One of our servers logged 238 I/O errors and 5,876 SATA command failures. The alert fired four times. Nobody acted for 37 days.
By Shanky Gupta, Founder of Opservo (LinkedIn) · Updated
One of our servers had a drive reporting I/O errors straight from the hardware. The alert fired four times over 37 days. Nobody acknowledged it. The server kept running, so it felt fine. It was not fine.
What the alert said
The alert text was exact: 238 I/O errors and 5,876 SATA command failures recorded by the kernel since boot. That is not a flaky filesystem or a misconfigured mount. It is the drive itself telling the OS that commands are failing at the hardware level. The OS logs these as I/O errors in the kernel ring buffer, and they accumulate until the drive is replaced or the machine reboots.
Four notifications went to one configured channel over those 37 days. None were acknowledged by a person.
Why teams miss this kind of alert
Disk I/O error alerts are easy to ignore because the server usually keeps responding. Web requests come back. SSH works. Nothing looks broken from the outside. The damage is happening underneath: writes silently fail or get retried, databases occasionally see corruption, and backups may be incomplete if the failing sectors are under backup-relevant data.
We had one alert channel configured. If that channel was noisy or unmonitored, every alert from every server went into the same stream. A hardware failure alert looks the same as a low-priority recommendation when they share a channel and nobody is triaging.
What not to do when a drive is failing
Do not run fsck on a drive that is actively reporting I/O errors. fsck writes to the disk to repair inconsistencies. On a dying drive, that makes data loss more likely, not less. Back up first, replace the drive, then restore.
The right order is: confirm the drive is actually failing, back up everything on it immediately, replace the physical disk (or the cloud volume), then restore from backup. Running repair tools on a drive in this state can turn a recoverable situation into an unrecoverable one.
How to check a drive yourself
If you suspect a drive is failing, these commands give you the facts before you act. Run them in order.
# Check the kernel ring buffer for I/O errors on a specific device
sudo dmesg | grep -i 'error\|failed\|ata\|sda\|sdb' | tail -30
# Look for reallocated sectors and pending sector counts in SMART data
# Install smartmontools first if needed: sudo apt install smartmontools
sudo smartctl -a /dev/sda
# Key lines to look for in smartctl output:
# Reallocated_Sector_Ct -- non-zero means the drive has already remapped bad sectors
# Current_Pending_Sector -- sectors the drive has flagged as unstable
# Offline_Uncorrectable -- sectors that could not be read during offline testing
# Raw_Read_Error_Rate -- manufacturer-specific, but a rising value is a warning
# See if the filesystem has already gone read-only as a protective measure
mount | grep '(ro'
# Any entry with (ro,...) that you did not set manually means the OS gave up writingIf smartctl shows non-zero Reallocated_Sector_Ct or Current_Pending_Sector, treat the drive as failing even if it is still responding. Those numbers mean the drive is running out of spare sectors to remap bad ones onto.
A short checklist for your own servers
- Run sudo dmesg | grep -i error on each server and look for ata or I/O error lines. Even one or two is worth watching.
- Install smartmontools and run sudo smartctl -a /dev/sda (replace sda with your device). Check Reallocated_Sector_Ct and Current_Pending_Sector.
- Check whether any filesystem is already mounted read-only: mount | grep '(ro'. If the OS has already flipped a filesystem read-only, the drive situation may be worse than smartctl shows.
- Confirm your backups actually completed recently. A failing drive is the worst time to discover the last successful backup was three weeks ago.
- If you see active I/O errors, back up before you do anything else. Do not run fsck.
- Check that your alert channel is one you actually read. A single noisy channel means critical hardware alerts and low-priority recommendations look identical.
How Opservo catches this
Opservo spotted the I/O errors and SATA command failures on that server automatically and filed a health alert with the exact counts and the advice not to run fsck. The gap was not detection -- it was acknowledgement. If you want to avoid the same gap, separate your alert channels by severity so a hardware failure does not share a stream with routine recommendations. Opservo supports per-alert routing to Slack, email, PagerDuty and OpsGenie, so a disk failure can page someone immediately while a recommendation goes to a weekly digest.
Try Opservo free on 2 servers — one command installs a read-only agent and your first findings arrive in five minutes: start free.