Hardware & Advanced Topics

How can we help?

Guides and technical documentation for your Server4You dedicated server or VPS.

Monitoring S.M.A.R.T. on Linux

This guide shows how to install smartmontools on a Linux server (Debian, Ubuntu, AlmaLinux, Rocky Linux), read the S.M.A.R.T. health status of your drives with smartctl, and set up email alerts with smartd.

1

Install smartmontools

Install the package using your distribution's standard package manager:

Debian / Ubuntu
apt update apt install smartmontools
AlmaLinux / Rocky Linux
dnf install smartmontools
2

Read S.M.A.R.T. Data

First, identify your drives using lsblk. Then, perform the check (replace /dev/sda with your actual drive):

Retrieve full report
smartctl -a /dev/sda

Overall Assessment

Look for: SMART overall-health self-assessment test result: PASSED.



If the line shows FAILED, the drive's internal logic has already detected a critical defect.

Critical Attributes

  • Reallocated_Sector_Ct: A value above 0 means the drive is already using spare sectors.
  • Current_Pending_Sector: Unstable sectors waiting to be remapped.
  • Offline_Uncorrectable: Sectors that could not be read or corrected during offline tests.
3

Email Notifications

Configure the smartd daemon to monitor your drives in the background. The configuration file is /etc/smartd.conf on Debian/Ubuntu and /etc/smartmontools/smartd.conf on AlmaLinux/Rocky Linux:

Edit configuration
nano /etc/smartd.conf

Add a line for each drive with your email address:

Entry in smartd.conf
/dev/sda -a -m [email protected] /dev/sdb -a -m [email protected]

Enable and start the service:

Start service
# Debian / Ubuntu systemctl restart smartmontools # AlmaLinux / Rocky Linux systemctl enable --now smartd

Defective Drive Detected?

If smartctl reports errors, we will arrange a free replacement immediately.

Ticket in PowerPanel