And*_*ria 4 disk ntfs smart 14.04
如在 SMART 日志中:
设备日志仅包含最近的五个错误
是否有可能查看 SMART Enabled 磁盘的所有记录错误?
smartctl -xall
Run Code Online (Sandbox Code Playgroud)
或者
smartctl -all
Run Code Online (Sandbox Code Playgroud)
上面的两个命令仅显示最后五个命令,我需要检索有问题的 LBA 以向其写入零并再次检查 SMART。
如果您已安装smartmontools并启用,smartd则所有日志条目都位于/var/log/syslog:
grep "smartd" /var/log/syslog*
Run Code Online (Sandbox Code Playgroud)
为了 /dev/sda
grep "smartd.*/dev/sda" /var/log/syslog*
Run Code Online (Sandbox Code Playgroud)
另一个例子:
$ grep "smartd.*/dev.*failure" /var/log/syslog*
/var/log/syslog:May 14 10:46:58 sturm smartd[608]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 120 to 104
/var/log/syslog:May 14 10:46:58 sturm smartd[608]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 117 to 119
/var/log/syslog.1:May 13 05:30:33 sturm smartd[631]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 110 to 113
/var/log/syslog.1:May 13 11:19:26 sturm smartd[651]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 113 to 115
/var/log/syslog.1:May 13 11:49:26 sturm smartd[651]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 120 to 100
/var/log/syslog.1:May 13 11:49:26 sturm smartd[651]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 115 to 117
/var/log/syslog.1:May 13 15:49:27 sturm smartd[651]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 100 to 102
/var/log/syslog.1:May 13 19:49:26 sturm smartd[651]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 102 to 104
/var/log/syslog.1:May 14 10:16:58 sturm smartd[608]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 104 to 120
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5744 次 |
| 最近记录: |