標籤:
mcelog 是 x86 的 Linux 系統上用來檢查硬體錯誤,特別是記憶體和CPU錯誤的工具。
1.安裝方式
yum install mcelog
2.配置mcelog後台運行
mcelog --daemon
3.查看:
cat /var/log/mcelog
mcelog日誌
Hardware event. This is not a software error.MCE 0CPU 1 BANK 8 MISC f95000051281 ADDR bf829a00 TIME 1447231148 Wed Nov 11 16:39:08 2015MCG status:MCi status:Corrected errorMCi_MISC register validMCi_ADDR register validMCA: MEMORY CONTROLLER RD_CHANNELunspecified_ERRTransaction: Memory read errorMemory read ECC errorMemory corrected error count (CORE_ERR_CNT): 1Memory transaction Tracker ID (RTId): 81Memory DIMM ID of error: 1Memory channel ID of error: 1Memory ECC syndrome: f950STATUS 8c0000400001009f MCGSTATUS 0MCGCAP 1c09 APICID 0 SOCKETID 0 CPUID Vendor Intel Family 6 Model 44
Mcelog相關檔案
/dev/mcelog 裝置檔案/var/log/mcelog messages記錄檔/etc/mcelog/mcelog.conf設定檔/var/run/mcelog.pid
預設故障日誌只記錄在/var/log/mcelog,並不記錄到系統日誌中。
如果需要在系統日誌中也體現,需修改/etc/mcelog/mcelog.conf檔案,將前面#去掉,並儲存。
# log output options# Log decoded machine checks in syslog (default stdout or syslog for daemon) #syslog = yes# Log decoded machine checks in syslog with error level#syslog-error = yes# Never log anything to syslog#no-syslog = yes # Append log output to logfile instead of stdout. Only when no syslog logging is active #logfile = filename
mcelog查看硬體