有时服务器启动后会突然关闭,大约 5 分钟后自动重启

有时服务器启动后会突然关闭,大约 5 分钟后自动重启

我通过局域网唤醒唤醒我的家庭服务器。大多数时候,大约 45 秒后我就可以通过 ssh 连接到机器。那完全没问题。看起来,当上次登录时间较长(几个小时)时,我无法在大约 45 秒后立即访问服务器。我还需要等待大约 5 分钟才能进入。我在 /var/log/ 中没有找到任何提示。这是我可以观察到的:

ME@Laptop:~$ date
Wed 29 Dec 2021 07:04:57 PM CET

ME@Laptop:~$ wakeonlan 17:F2:42:54:04:A6
Sending magic packet to 255.255.255.255:9 with 17:F2:42:54:04:A6

ME@Laptop:~$ ping 192.168.0.201
PING 192.168.0.201 (192.168.0.201) 56(84) bytes of data.
From 192.168.0.22 icmp_seq=1 Destination Host Unreachable
From 192.168.0.22 icmp_seq=2 Destination Host Unreachable
...
From 192.168.0.22 icmp_seq=35 Destination Host Unreachable
From 192.168.0.22 icmp_seq=36 Destination Host Unreachable
64 bytes from 192.168.0.201: icmp_seq=38 ttl=64 time=8.96 ms       <--- There it is shortly
From 192.168.0.22 icmp_seq=78 Destination Host Unreachable         <--- ... and gone!
From 192.168.0.22 icmp_seq=79 Destination Host Unreachable
...
From 192.168.0.22 icmp_seq=361 Destination Host Unreachable
From 192.168.0.22 icmp_seq=362 Destination Host Unreachable
64 bytes from 192.168.0.201: icmp_seq=363 ttl=64 time=1352 ms
64 bytes from 192.168.0.201: icmp_seq=364 ttl=64 time=329 ms
...
64 bytes from 192.168.0.201: icmp_seq=389 ttl=64 time=2.03 ms
64 bytes from 192.168.0.201: icmp_seq=390 ttl=64 time=4.15 ms
^C
--- 192.168.0.201 ping statistics ---
390 packets transmitted, 29 received, +273 errors, 92.5641% packet loss, time 1100ms
rtt min/avg/max/mdev = 1.714/62.398/1352.149/250.840 ms, pipe 4

ME@Laptop:~$ ssh S02
ME@s02's password: 
Linux S02 4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Dec 29 11:28:52 2021 from 2001:4dd7:2e8c:0:61de:9f:e12f:ba74

ME@Server:~$ sudo shutdown now
[sudo] Passwort für ME: 
Connection to s02 closed by remote host.
Connection to s02 closed.

ME@Laptop:~$ ping 192.168.0.201
PING 192.168.0.201 (192.168.0.201) 56(84) bytes of data.
^C
--- 192.168.0.201 ping statistics ---
12 packets transmitted, 0 received, 100% packet loss, time 262ms

ME@Laptop:~$ date
Wed 29 Dec 2021 07:12:53 PM CET

ME@Laptop:~$ wakeonlan 17:F2:42:54:04:A6
Sending magic packet to 255.255.255.255:9 with 17:F2:42:54:04:A6

ME@Laptop:~$ ping 192.168.0.201
PING 192.168.0.201 (192.168.0.201) 56(84) bytes of data.
From 192.168.0.22 icmp_seq=1 Destination Host Unreachable
From 192.168.0.22 icmp_seq=2 Destination Host Unreachable
...
From 192.168.0.22 icmp_seq=38 Destination Host Unreachable
From 192.168.0.22 icmp_seq=39 Destination Host Unreachable
64 bytes from 192.168.0.201: icmp_seq=40 ttl=64 time=493 ms          <--- There it is and it stays on!!!
64 bytes from 192.168.0.201: icmp_seq=41 ttl=64 time=1.67 ms
...
64 bytes from 192.168.0.201: icmp_seq=264 ttl=64 time=2.09 ms
64 bytes from 192.168.0.201: icmp_seq=265 ttl=64 time=2.82 ms
^C
--- 192.168.0.201 ping statistics ---
265 packets transmitted, 226 received, +39 errors, 14.717% packet loss, time 512ms
rtt min/avg/max/mdev = 1.631/5.289/493.460/32.711 ms, pipe 4

ME@Laptop:~$ date

我的系统突然死机了怎么解释?大约 5 分钟后它会神奇地自行重启,该如何解释呢?我可以在哪里查找发生的情况?我强烈认为这不是温度问题,因为只有当我在几个小时后冷启动机器时才会发生这种情况。通过手动关闭并在不需要的重新启动后立即启动,似乎不再有问题。

答案1

最后,我能够找出问题所在。它不必直接对 debian 操作系统执行任何操作。这是一个硬件问题 - 我会尝试为这篇文章添加更好的标签 - 也许它可能会对某人有所帮助。这篇文章属于另一个论坛 - 我无法更改。

我的华硕主板 P8P67-M Pro 显然 RAM 内存模块有问题。该主板有一个 MemOK! 开关,我只需激活它,然后将一些收集到的内存模块知识保存到 BIOS 中。在 MemOK! 之前激活 DRAM LED 在启动时呈红色,然后在启动后突然关闭,并在几分钟后神秘地重新启动。自动重启后,一切似乎都很好。主板似乎在下一次手动关闭和通电时正常工作,就好像主板记得它必须找到内存模块通信的解决方法一样。关闭电源几个小时后,问题再次出现,就好像主板忘记了解决方法一样。使用Mem-OK!手动,似乎让董事会永久记住。不幸的是,拔掉计算机电源需要再次手动按下 MemOK! 开关。因此,我对所有使用华硕主板的计算机突然自动重启的人的建议是检查 DRAM LED,并最终使主板使用 MemOK! 开关(如果存在)手动学习。顺便说一句,是的,我之前将BIOS更新到了最新版本,并在主板上安装了一块新电池。在我的特殊情况下,我需要再次设置我的操作系统 - UEFI 不允许我在 BIOS 更新后选择已安装的 debian。除了重新安装操作系统之外,华硕支持没有其他解决方法。更新 BIOS 时要小心 - 最好不要更新;-) 希望这对某人有帮助。

相关内容