Use smartctl -h to get a usage summary(7)、显示硬盘测试信息 smartctl -l selftest /dev/sda(8)、显示硬盘SMART的全部信息 [root@localhost ~]# smartctl -a /dev/sda smartctl 7.0 2018-12-30 r4883 [x86_64-linux-3.10.0-862.el7.x86_64] (local build) Copyright © 2002-18, Bruce Alle...
1、smartctl -i <device> :显示设备的身份信息,检查硬盘是否打开了SMART支持。 看到有: SMART support is: Enabled 说明硬盘支持SMART。 如果为Disabled,使用: smartctl --smart=on --offlineauto=on --saveauto=on <device> 启用SMART。 2、smartctl -H <device> :查看硬盘的健康状况。(df -h 查看硬盘 ...
- `smartctl -H /dev/sda`:检查硬盘的健康状态。 - `smartctl -t long /dev/sda`:进行长时间自检。 - `smartctl -l error /dev/sda`:查看硬盘的错误日志。 - `smartctl -s on /dev/sda`:启用硬盘的S.M.A.R.T功能。 通过定期使用smartctl命令检测硬盘,可以早期发现硬盘的故障迹象,并及时采取措施...
1、smartctl -i <device> :显示设备的身份信息,检查硬盘是否打开了SMART支持。 看到有: SMART support is: Enabled 说明硬盘支持SMART。 如果为Disabled,使用: smartctl --smart=on --offlineauto=on --saveauto=on <device> 启用SMART。 2、smartctl -H <device> :查看硬盘的健康状况。(df -h 查看硬盘 ...
smartctl -H /dev/sda 5、详细的参数: smartctl -A /dev/sdb 6、更详细的参数: Examples (for first drive): smartctl -i sda Show identify information smartctl -H sda Show SMART health status smartctl -c sda Show SMART capabilities
安装后使用下面的命令多硬盘进行检测扫描 --- 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 smart...
hdb中的h代表IDE,如果显示位sdb,则代表SATA和SCSI。 最后一个字幕b代表Primary总线,第二块硬盘即Slave位置 下面是一些常用的smartctl命令: 首先应确认硬盘是否打开了SMART支持 smartctl -i /dev/sda [root@A01-R04-I255-59 bjzhangxinglong]#smartctl -i /dev/sdasmartctl 5.43 2012-06-30 r3573 [x86_64...
smartctl -H -d megaraid,8 /dev/bus/0根据--scan查询信息,通过raid卡的型号,获取磁盘信息,不同的raid卡,获取方式不一致. [root@centos ~]# smartctl --scan /dev/sda -d scsi # /dev/sda, SCSI device /dev/sdb -d scsi # /dev/sdb, SCSI device ...
复制代码代码如下:root@linuxtechi:~# smartctl -H /dev/sdbsmartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.13.0-32-generic] (local build)Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org=== START OF READ SMART DATA SECTION ===SMART overall-health self-...
-h 帮助信息 -V 版本信息 -i 打印基本信息(磁盘设备号、序列号、固件版本…)-a 打印磁盘所有的SMART信息 3.1.2 运行时行为参数:-q TYPE 指定输出的安静模式。TYPE可以有3种选择:eorsonly 只打印错误日志。slent 有任何打印。nserial 不打印序列号 -d TYPE 指定磁盘的...