MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on December 10, 2014, 02:43:25 PM

Title: How To Install smartctl Utility On CentOS?
Post by: Dipak Bhoi on December 10, 2014, 02:43:25 PM
Hello Guys,

Smartctl (Self-Monitoring, Analysis and Reporting Technology) is a command line utility or a tool in UNIX like operating system that perform SMART tasks such as printing the SMART self-test and error logs, enabling and disabling SMART automatic testing, and initiating device self-tests.

Steps to install of Smartcl in CentOS:


1. Login to your server via SSH as a root user.

2. Use yum command to install Smartctl.

Quote
#yum install smartmontools

3. Now start the service of Smartctl.

Quote
#service smartd start
# chkconfig smartd on

3. To enable Smart Capability for the disk run below command.

Quote
#smartctl -s on /dev/sdb

4. To disable Smart Capability for the disk run below command.

Quote
#smartctl -s off  /dev/sdb

5. To display details Smart info for the disk run below command.

Quote
#smartctl -a /dev/sdb              // For IDE drive
#smartctl -a -d ata /dev/sdb       // For SATA drive

That's it, Enjoy !!