下载安装smartctl程序:
—-
cd /tmp
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/8/Everything/i386/os/Packages/smartmontools-5.37-7.fc8.i386.rpm
wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/8/Fedora/i386/os/Packages/mailx-8.1.1-46.fc7.i386.rpm
rpm -hiv smartmontools-5.37-7.fc8.i386.rpm mailx-8.1.1-46.fc7.i386.rpm
—-
安装后使用下面的命令多硬盘进行检测扫描
—-
smartctl -t short /dev/sda
smartctl -t short /dev/sdb
—-
大约10分钟以后可以通过下面的命令查看硬盘(SMART)是否出现错误
—-
smartctl -l selftest /dev/sda
smartctl -H /dev/sda
smartctl -l selftest /dev/sdb
smartctl -H /dev/sdb
—-
运行“-l”时 Completed without error 00%
运行“-H”时,应该看到一个“PASSED”消息。
smartctl -x short /dev/sda
smartctl -x short /dev/sdb
结束检查
Centos安装:
yum -y install smartmontools
转载于:https://blog.51cto.com/taihaikj/1661242