调查周末意外停机事件

调查周末意外停机事件

今天早上,我运行 Fedora 22 的机器处于关闭状态,在黑色终端上以全屏白色显示 IIRC,如下所示:

[Rebooting] ...
System halted.

按住电源按钮并重新启动后,我希望确定是什么导致了这种不必要的重新启动。查看一些日志,我知道它至少持续到周日 14:00。系统中是否有更多可用信息?哪个进程发起关闭?是内核恐慌、脚本、哪个用户等等?

我不知道有任何硬件问题或自动更新程序。这是一台已有几年历史的台式计算机,也运行一些 cron 作业。它最近升级到了干净的 Fedora 22,并且到目前为止运行良好。

使用sudo journalctl -b -1,我可以看到 systemd 在 17:36 左右启动关闭,紧接着是 5 分钟后的关闭序列。

还有网络管理器检查连接并大约在同一时间反复失败。以下是当时日志的摘录:

Dec 20 17:20:49 <myhostname> NetworkManager[844]: <info>  connectivity: check for uri 'http://fedoraproject.org/static/hotspot.txt' failed with 'Impossible de se connecter : Le réseau n'est pas accessible'
Dec 20 17:25:49 <myhostname> NetworkManager[844]: <info>  connectivity: check for uri 'http://fedoraproject.org/static/hotspot.txt' failed with 'Impossible de se connecter : Le réseau n'est pas accessible'
Dec 20 17:30:49 <myhostname> NetworkManager[844]: <info>  connectivity: check for uri 'http://fedoraproject.org/static/hotspot.txt' failed with 'Impossible de se connecter : Le réseau n'est pas accessible'
Dec 20 17:35:49 <myhostname> NetworkManager[844]: <info>  connectivity: check for uri 'http://fedoraproject.org/static/hotspot.txt' failed with 'Impossible de se connecter : Le réseau n'est pas accessible'
Dec 20 17:36:53 <myhostname> systemd-shutdownd[16731]: Creating /run/nologin, blocking further logins...
Dec 20 17:40:49 <myhostname> NetworkManager[844]: <info>  connectivity: check for uri 'http://fedoraproject.org/static/hotspot.txt' failed with 'Impossible de se connecter : Le réseau n'est pas accessible'
Dec 20 17:41:53 <myhostname> systemd[1]: Stopping Manage Sound Card State (restore and store)...
Dec 20 17:41:53 <myhostname> systemd[1]: Stopping LVM2 PV scan on device 8:2...
Dec 20 17:41:53 <myhostname> systemd[1]: Stopping Restore /run/initramfs on shutdown...
Dec 20 17:41:53 <myhostname> systemd[1]: Stopped Session c1 of user gdm.
... etc (shutdown)

这是 lspci 的输出:

00:00.0 Host bridge: Intel Corporation 5520/5500/X58 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:10.0 PIC: Intel Corporation 7500/5520/5500/X58 Physical and Link Layer Registers Port 0 (rev 13)
00:10.1 PIC: Intel Corporation 7500/5520/5500/X58 Routing and Protocol Layer Registers Port 0 (rev 13)
00:11.0 PIC: Intel Corporation 7500/5520/5500 Physical and Link Layer Registers Port 1 (rev 13)
00:11.1 PIC: Intel Corporation 7500/5520/5500 Routing & Protocol Layer Register Port 1 (rev 13)
00:14.0 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 7500/5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:15.0 PIC: Intel Corporation 7500/5520/5500/X58 Trusted Execution Technology Registers (rev 13)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.5 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 6
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller
00:1f.2 RAID bus controller: Intel Corporation SATA Controller [RAID mode]
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5764M Gigabit Ethernet PCIe (rev 10)
0f:00.0 VGA compatible controller: NVIDIA Corporation GF108GL [Quadro 600] (rev a1)
0f:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
37:05.0 FireWire (IEEE 1394): LSI Corporation FW322/323 [TrueFire] 1394a Controller (rev 70)
3f:00.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture Generic Non-Core Registers (rev 05)
3f:00.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QuickPath Architecture System Address Decoder (rev 05)
3f:02.0 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Link 0 (rev 05)
3f:02.1 Host bridge: Intel Corporation Xeon 5500/Core i7 QPI Physical 0 (rev 05)
3f:03.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller (rev 05)
3f:03.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Target Address Decoder (rev 05)
3f:03.4 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Test Registers (rev 05)
3f:04.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Control Registers (rev 05)
3f:04.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Address Registers (rev 05)
3f:04.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Rank Registers (rev 05)
3f:04.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 0 Thermal Control Registers (rev 05)
3f:05.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Control Registers (rev 05)
3f:05.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Address Registers (rev 05)
3f:05.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Rank Registers (rev 05)
3f:05.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 1 Thermal Control Registers (rev 05)
3f:06.0 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Control Registers (rev 05)
3f:06.1 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Address Registers (rev 05)
3f:06.2 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Rank Registers (rev 05)
3f:06.3 Host bridge: Intel Corporation Xeon 5500/Core i7 Integrated Memory Controller Channel 2 Thermal Control Registers (rev 05)

答案1

好吧,事实证明一位同事不小心在错误的终端中运行了延迟关闭命令。我接受这个答案,但如果有一种方法可以从系统中找出答案,那仍然会很有趣。

相关内容