Now Reading: Monitor HDD and SSD with SmartD and SmartCTL – The Ranjan.info

Loading
svg
Open

Monitor HDD and SSD with SmartD and SmartCTL – The Ranjan.info

January 23, 20241 min read

basic information

smartad is a daemon that monitors the Self-Monitoring, Analysis, and Reporting Technology (SMART) system that is built into most ATA/SATA and SCSI/SAS drives and solid-state drives.

smartctl is a command-line utility designed to perform smart tasks such as printing smart self-test and error logs, enabling and disabling smart automated tests, and starting device self-tests.

installation

Both can be installed with smartmontools in a Debian-like system:

# apt-get install smartmontools

Or CentOS system:

# yum install smartmontools

Basic SmartD Configuration

Here is a basic SmartD configuration to monitor 2 HDD drives. The following lines need to be added /etc/smartd.conf,

/dev/sda -d sat -o on -S on -m [email protected] -M test -a -s (S/../.././01|L/../../6/03)
/dev/sdb -d sat -o on -S on -m [email protected] -M test -a -s (S/../.././01|L/../../6/03)

Basic SmartCTL usage

To check if smart exists on disk:

To get reports about all disk health:

# smartctl -i -a /dev/sda

How do you vote?

0 People voted this article. 0 Upvotes - 0 Downvotes.
svg

What do you think?

Show comments / Leave a comment

Leave a reply

You may like
Loading
svg