In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the knowledge of "how to check hardware errors in linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In linux, you can use mcelog to view hardware errors; mcelog is a tool for checking hardware errors, which can be obtained according to the hot restart or hard restart caused by the error. The error message of the hot restart will be captured, but the error of the hard restart can not be captured, so you can install it with the "yum install mcelog" command.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
How does linux check for hardware errors
1. Mcelog is a tool used on Linux systems to check for hardware errors, especially memory and CPU errors.
Uncorrected errors are critical exceptions, and if CPU cannot be recovered, it will often result in kernel errors on the system. This can cause the application to reset and break.
For uncorrected errors, mcelog's ability to catch errors depends on whether the error causes a hot restart or a hard restart.
If it is a hot restart, the information will be captured by mcelog and can be seen after recovery. A hard restart can result in data loss, and mcelog may not be able to capture the event.
2. Installation
[root@RedHat_test ~] # yum install mcelog.x86_64
3. The startup mode of mcelog
Cron: the oldest way, there are certain, timed tasks, will lose some
Daemon: the way daemons are used on el7
Trigger: a more advanced way. When triggered, watch man mcelog.
4. Mcelog related documents
/ dev/mcelog device file
/ var/log/mcelog messages log file
/ etc/mcelog/mcelog.conf configuration file
/ var/run/mcelog.pid
The default fault log is recorded only in / var/log/mcelog, not in the system log.
If you need to reflect it in the system log, you need to modify the / etc/mcelog/mcelog.conf file, remove the previous #, and save it.
5. Mcelog runs in the background
[root@RedHat_test] # mcelog-- daemon
6. Check whether the system is abnormal
1. The way to run mcelog manually
[root@RedHat_test] # mcelog-- daemon
two。 View mcelog Log
[root@RedHat_test ~] # tail / var/log/mcelog # output nothing, indicating normal
3. Check to see if the mcelog daemon detected an error message
[root@RedHat_test ~] # mcelog-- client # output nothing, indicating normal
4. Parsing the mcelog output of a system exception
This is the end of [root@RedHat_test ~] # mcelog-- ascii < file.log # or or [root@RedHat_test ~] # mcelog-- ascii-- file file.log "how to check hardware errors for linux". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.