Your Disk Will Warn You Before It Dies (If You're Listening)

Disk monitoring covers capacity, I/O performance, array state and device health. Some failures produce warnings, while others are abrupt. Keep tested backups and recovery procedures even when monitoring and SMART results look healthy.

Disk monitoring on Linux isn't complicated, but it requires actually doing it. The tools are built in or a package install away. The challenge is knowing what to look at, understanding what the numbers mean, and ideally automating the whole thing so you don't have to remember to check manually. For a broader view of what to track beyond just disks, see our guide on comprehensive Linux server monitoring.

I/O metrics tell you if your disk is the bottleneck

When a server feels slow, the disk is often the culprit, but people check CPU and memory first because those numbers are easier to interpret. Disk I/O requires a bit more context to understand.

The tool you want is iostat, which comes from the sysstat package. Running iostat -xz 1 gives you a continuously updating view of what your disks are actually doing:

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          13.06    0.00    1.78    2.18    0.00   82.98

Device            r/s     w/s   %util   r_await   w_await
nvme0n1          0.00  197.00   55.92      0.00      1.74
nvme1n1          0.00  197.00   57.84      0.00      1.92

%iowait is CPU accounting associated with outstanding I/O while the CPU is idle, not direct application wait time. It cannot identify a storage bottleneck alone. Correlate it with the affected service, device latency, queues and throughput.

r_await and w_await are average request completion times, including queueing, in milliseconds. Compare them with a baseline for the same device and workload. %util measures device activity time and is not a universal saturation indicator for parallel NVMe or RAID devices. Use iostat -y -xz 1 5 to omit the initial since-boot report. See the iostat manual.

If you need to figure out which process is hammering the disk, iotop shows per-process I/O in real time. It's useful for catching that backup job or log rotation that's saturating your storage, but it requires root and can itself add some overhead, so it's more of a diagnostic tool than something you'd run continuously.

Space monitoring is simple but still catches people

Running out of disk space is embarrassing because it's so predictable. Disks don't suddenly fill up (usually). They fill gradually, and df -h has been telling you about it for weeks if you'd bothered to look.

Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p3  455G  204G  229G  48% /
/dev/nvme0n1p1  974M  180M  795M  19% /boot

Track available bytes, percentage used, inodes and growth rate for each relevant filesystem. Choose warning levels from the application’s reserve and response time. A rapidly growing small volume may need action before a larger, stable volume at the same percentage.

Our disk space calculator can help you estimate how quickly you'll approach these thresholds based on current growth rates.

Investigate the intended filesystem with a scoped command such as du -xhd1 /var/log on GNU/Linux. It can be I/O-intensive and may need additional permissions. A difference between df and du can result from deleted-but-open files, reserved blocks, snapshots or mount boundaries; do not delete files blindly.

Logrotate helps manage file retention, but runs only when scheduled and cannot guarantee a log will never fill storage between runs. Verify rotation, application reopening and collection continuity.

One subtlety worth knowing: Linux reserves some space (typically 5%) for root on ext4 filesystems. A disk showing 100% used in df might actually have a few gigabytes available if you're root. This is intentional, so the system can still function enough to let you fix things, but it also means the "full" disk isn't quite as full as it appears.

RAID status is fine until it isn't

RAID fault tolerance depends on its level and topology; RAID 0 provides no redundancy. A degraded array needs prompt investigation and a verified backup, but the effect of another disk failure depends on which disks and redundancy groups are affected. RAID does not replace backups.

For Linux software RAID (mdadm), the quick check is /proc/mdstat:

md2 : active raid1 nvme1n1p3[1] nvme0n1p3[0]
      994827584 blocks super 1.2 [2/2] [UU]

md1 : active raid1 nvme1n1p2[1] nvme0n1p2[0]
      1046528 blocks super 1.2 [2/2] [UU]

For the illustrated mirror, [2/2] means two expected members and two active members; [UU] shows both up. [2/1] [U_] indicates one active member out of two. Interpret other layouts using their own array metadata.

If you're rebuilding after replacing a failed disk, you'll see a progress line showing percentage complete and estimated time remaining. Rebuilds can take hours or days depending on array size and I/O load, and during that entire time you're vulnerable to a second failure. Some people reduce I/O load during rebuilds to speed them up; others just accept the risk and let it run at whatever pace it runs.

For more detail on a specific array, mdadm --detail /dev/md0 shows the full picture: which physical devices are members, their state, when the array was last updated, and whether any devices have failed. Hardware RAID controllers have their own tools (megacli for LSI, arcconf for Adaptec, etc.) with different syntax but similar concepts.

SMART data is your early warning system

SMART (Self-Monitoring, Analysis, and Reporting Technology) is the disk's own assessment of its health. Drives track dozens of internal metrics and will tell you about them if you ask. The tool is smartctl from the smartmontools package.

smartctl -a /dev/nvme0

The output is verbose, but a few fields matter more than others. The overall health assessment at the top is the disk's pass/fail self-evaluation. If this says anything other than PASSED, take it seriously.

For SSDs and NVMe drives, look at:

Percentage Used is the NVMe vendor’s estimate of endurance consumed. It is not a countdown of remaining calendar lifetime, and reaching 100 does not necessarily mean the device has failed. Review the vendor limits and the trend alongside critical warnings and errors.

Available Spare indicates how much reserve capacity remains for replacing worn-out cells. When this gets low, the drive is running out of room to compensate for wear.

Media and Data Integrity Errors should be zero. Any non-zero value means the drive has experienced unrecoverable errors, which is bad.

Temperature should be compared with the device’s own warning and critical thresholds. There is no universal 70°C failure threshold for all NVMe models; investigate sustained thermal warnings or throttling.

For traditional spinning disks, the concerning SMART attributes are Reallocated_Sector_Ct (sectors that have gone bad and been remapped to spares), Current_Pending_Sector (sectors that couldn't be read and are waiting to be remapped), and Offline_Uncorrectable (sectors that failed during background scans). Any non-zero values in these fields indicate physical media problems. A few reallocated sectors might be fine and the drive could run for years, but a rising count over weeks or months suggests progressive failure.

The challenge with SMART is that it's predictive, not deterministic. A drive with perfect SMART data can still fail suddenly from controller issues or other problems that SMART doesn't monitor. And a drive with some warnings might keep working for years. SMART shifts the odds in your favor by catching gradual degradation, but it's not a guarantee.

Manual monitoring doesn't scale

All of these commands work fine for checking on a server that's misbehaving. They don't work for making sure nothing is wrong across a fleet of servers when you're not actively looking. The failure mode is predictable: you set up monitoring, check it diligently for a few weeks, then gradually stop checking as other priorities take over. Six months later a disk fails and you realize you haven't looked at SMART data since January.

Automated monitoring solves this by checking continuously and only bothering you when something needs attention. The basic requirements are: collect the metrics on a schedule, store them somewhere so you can see trends, and alert when thresholds are crossed.

You can build this yourself with scripts, cron jobs, and whatever alerting system you already use. Plenty of people do. The downside is that you're now maintaining monitoring infrastructure in addition to the servers you're actually trying to monitor.

FiveNines (the company whose blog you're reading) handles disk metrics as part of its server monitoring. The agent collects I/O stats, space usage, and can optionally monitor RAID and SMART data. You get dashboards showing trends over time and alerts when things cross thresholds you set. Whether that's worth paying for versus building your own depends on how much you value your time and how many servers you're managing.

You can build custom monitoring dashboards that visualize disk usage trends alongside other system metrics.

Set notification urgency using growth and required reserve, not just a percentage: a volume at 92% may be an immediate incident if it will fill in minutes.

Prioritize alerts without promising prediction

If you're setting up alerting and need to prioritize, these are the signals most likely to catch real problems:

Disk space above 85% means you're getting close. Above 95% means you're in danger. Some applications (especially databases) behave badly well before hitting 100%, so don't wait until the last minute.

Sustained latency and queue growth at a comparable workload warrant investigation. Do not infer saturation solely from a fixed %util threshold.

SMART warnings of any kind on the overall health assessment deserve immediate attention. Individual attributes like reallocated sectors are worth watching over time, with the trend mattering more than the absolute number.

Route degraded-array or device-health warnings to an owner with a replacement and recovery procedure. Severity depends on redundancy remaining, backup health and the service’s impact.

Everything else is useful context for troubleshooting but doesn't necessarily need to wake anyone up. High I/O latency matters if users are experiencing slowness; it's just data if performance is fine. Temperature spikes matter if they're causing throttling; they're informational if they're within spec.

The goal is catching the problems that would otherwise become outages, without generating so many alerts that you start ignoring them. Start with fewer alerts at conservative thresholds, then add more based on what incidents you miss.

A read-only disk checklist

df -h
df -i
iostat -y -xz 1 5
cat /proc/mdstat
sudo smartctl -a /dev/nvme0

Adapt device names and permissions to the host. Do not run destructive write tests or rebuild commands as part of a routine check. The smartmontools project documents device-specific health interpretation. In Fivenines, enable supported RAID/SMART collection deliberately and verify that missing readings are distinguishable from healthy ones.