linux 在没有系统日志消息的情况下崩溃

标签 linux crash kernel syslog

<分区>

我有一个崩溃的服务器。服务器运行少量 (3-5) 台 VMware 机器。当我启动一个新的 VM 时,它有时会崩溃。 syslog 或 vmware 日志中没有消息。我在控制台上看到的只是引导消息。

系统有 32Gb 内存。每个 VM 使用 2-4Gb。我怀疑是内存问题,但是完整运行 memtest86 没有显示任何问题。

关于如何捕获崩溃原因的任何建议?

最佳答案

您可以使用内核模块“netconsole”,将内核 printk 消息发送到远程系统日志服务器。

然后您可以在远程系统日志服务器中查看日志消息,如果机器崩溃了。

Introduction:

This module logs kernel printk messages over UDP allowing debugging of problem where disk logging fails and serial consoles are impractical.

It can be used either built-in or as a module. As a built-in, netconsole initializes immediately after NIC cards and will bring up the specified interface as soon as possible. While this doesn't allow capture of early kernel panics, it does capture most of the boot process. Check kernel document for more information: https://www.kernel.org/doc/Documentation/networking/netconsole.txt

关于linux 在没有系统日志消息的情况下崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21351694/

相关文章:

c++ - "Event ID 26 Source Application Popup"之类的错误有何帮助

android.media.MediaCodec.finalize() 10 秒后超时

macos - 删除迁移到其他 mac 后导致内核崩溃的内核扩展

c - 如何理解 "__xg"这个宏?

linux - 如何在 linux 中激活所有的 ksoftirqds? (关于linux内核的net stack)

node.js - centOS无法通过yum安装nodejs

python - 在 jupyter notebook 的单元格中使用 sudo

linux - 安装 mpi4py

Linux Centos Web 服务器软链接(soft link)(符号链接(symbolic link))问题

购买订阅后 iOS 应用程序在启动时崩溃,但只有在发布到 AppStore 时,TestFlight 才能正常工作