您的位置:首页 > 运维架构 > Linux

请问LINUX下,怎么检查硬件损坏的情况?

2015-08-20 16:49 615 查看
查看/var/log/message

dmesg |egrep "sd|eth/memory/disk"

cat /var/log/messages |grep -i fail

dmesg |grep -i err

检查硬盘是否正常

smartctl简单用法
smartctl -A /dev/sda 查看硬盘的详细信息

smartctl -a <device> 检查该设备是否已经打开SMART技术。

smartctl -s on <device> 如果没有打开SMART技术,使用该命令打开SMART技术。

smartctl -t short <device> 后台检测硬盘,消耗时间短;

smartctl -t long <device> 后台检测硬盘,消耗时间长;

smartctl -C -t short <device> 前台检测硬盘,消耗时间短;

smartctl -C -t long <device> 前台检测硬盘,消耗时间长。其实就是利用硬盘SMART的自检程序。

smartctl -X <device> 中断后台检测硬盘。

smartctl -l selftest <device> 显示硬盘检测日志。

smartctl -l error <device> 显示硬盘错误汇总。

内存可以看这个日志

/var/log下的mcelog

如果内存有问题就会出现下面的日志信息

Corrected error

MCi_MISC register valid

MCi_ADDR register valid

MCA: MEMORY CONTROLLER RD_CHANNELunspecified_ERR

Transaction: Memory read error

Memory read ECC erro
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: