Fedora
調查週末意外關機
今天早上,我執行 Fedora 22 的機器處於關機狀態,在黑色終端上以全屏白色顯示 IIRC,如下所示:
[Rebooting] ... System halted.
按住電源按鈕並重新啟動後,我正在尋找導致這種不必要的重新啟動的原因。查看一些日誌,我知道至少要到週日 14:00。系統中的某處是否有更多可用資訊?哪個程序啟動了關機?是核心恐慌、腳本、哪個使用者等?
我不知道任何硬體問題或自動更新程序。這是幾年前的台式電腦,它也執行一些 cron 作業。它最近升級到干淨的 Fedora 22 並且到目前為止執行良好。
使用
sudo journalctl -b -1
,我可以看到 systemd 在 17:36 左右開始關閉,然後是 5 分鐘後的關閉序列。還有 NetworkManager 檢查連接性並在同一時間反复失敗。以下是當時的日誌摘錄:
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)
好的,事實證明一位同事不小心在錯誤的終端中執行了延遲關閉命令。我接受了這個答案,但如果有辦法從系統中找出答案,那仍然會很有趣。