← All posts
Operations· 5 min read

A failing disk alert sat unacknowledged for 10 days

A disk-is-failing alert fired on one of our servers and no one acknowledged it for 10 days. What we missed, and a checklist for your own servers.

By , Founder of Opservo (LinkedIn) · Updated

Your monitoring says a disk is failing, and you are not sure how urgent that is. We know how easy it is to wait, because it happened to us. An alert that said a drive was failing stayed open on one of our servers for 10 days. No person acknowledged it. This post covers what the alert said, what else happened on that server, and what to check on yours today.

What happened on one of our servers

On 19 October our monitoring raised an alert called "Disk /dev/sda is failing". The detail said the kernel had logged 41 I/O errors and 54 SATA command failures since the last boot. It said this was a failing drive, not a software fault. It told us to back up anything on the disk, replace it, then restore.

One alert channel was configured for that server. The alert was sent four times. No person acknowledged it. It stayed open for about 10 days.

Three more alerts followed on the same server. Nine days after the disk alert, the mysql service went into a failed state. Ten days after the disk alert, fail2ban and apache2 did the same. The mysql alert lasted about 1 day and the fail2ban alert about 1 day. The apache2 alert stayed open for about 19 days. Each of the three was sent four times. None was acknowledged.

The alerts do not tell us whether these events are linked, so we will not guess. What we know is the order, and that nobody acknowledged any of them.

Why a failing-disk alert is different from other alerts

Most alerts can wait a day. A failing disk cannot. The kernel is getting errors straight from the hardware, and the drive will not get better by itself. Every day you wait is a day your only copy of the data sits on a drive that is already misbehaving.

The alert text also carried a warning that is easy to get wrong under pressure.

Do not run fsck first. Repairs on a dying disk make data loss more likely. Copy the data off, then replace the disk.

We missed this one. The alert was sent four times and no person acknowledged it. Sending an alert is not the same as someone taking it.

How to check your own servers for a failing disk

Run these on any server you have not looked at in a while. The first command reads the kernel log for the current boot. The second pair asks the drive itself, using smartmontools. The last two list failed services and copy your data to another machine. Replace /dev/sda and the rsync paths with your own.

sudo journalctl -k -b | grep -iE 'i/o error|ata[0-9]+.*(failed|error)'
sudo apt install -y smartmontools
sudo smartctl -H /dev/sda
sudo smartctl -A /dev/sda | grep -iE 'reallocated|pending|uncorrectable|crc'
systemctl --failed
rsync -aH --partial /srv/data/ backup-host:/backups/this-server/

What the results mean and what to do next

If the first command prints nothing, the kernel has seen no disk errors this boot. You do not need to change anything. Check again after your next reboot, because the count starts over each boot.

If it prints repeated I/O errors or SATA command failures, treat the disk as failing. A SMART line that says PASSED does not cancel kernel errors. Non-zero values for reallocated, pending or uncorrectable sectors point the same way.

Then work in this order:

  • Copy the data off first, to another machine. Do not run fsck on the failing disk.
  • Replace the disk, then restore from the copy.
  • Run systemctl --failed. Look at every failed unit on that server, not only the disk. Databases and web servers are the ones that hurt.
  • On a cloud VM, the disk is virtual. Open a ticket with the provider instead of swapping hardware.

Last, decide who owns this kind of alert. Name one person. Tell them what acknowledging means. An alert nobody has claimed is easy to leave open for days.

How Opservo catches this

This is how we got the "Disk /dev/sda is failing" alert. Opservo discovers your systemd services automatically and explains findings in plain English, with what to do next. The health score lists every rule that costs a server points.

Incident management supports on-call rotations and escalation. An alert nobody takes can then go to the next person instead of sitting open.

Try Opservo free on 2 servers — one command installs a read-only agent and your first findings arrive in five minutes: start free.