1
回答
请问大家有没碰到过rsyslogd服务重启导致的系统重启?
利用AWS快速构建适用于生产的无服务器应用程序,免费试用12个月>>>   

最近一台fedora服务器不定期重启,查了一下日志/var/log/messages,发现每次rsyslogd自动重启都会带动系统重启,其中原因不是很了解,贴出日志给大家看看,求大神帮分析,谢谢!ps:cifs的那个问题是服务器连接的nas问题,log一直都在,貌似跟rsyslogd没有什么关系。

Jun 20 08:06:50 localhost kernel:  CIFS VFS: server not responding
Jun 20 08:06:50 localhost kernel:  CIFS VFS: No response for cmd 50 mid 12704
Jun 20 08:06:50 localhost kernel:  CIFS VFS: No response to cmd 47 mid 12702
Jun 20 08:06:50 localhost kernel:  CIFS VFS: Write2 ret -11, wrote 0
Jun 20 08:06:50 localhost kernel:  CIFS VFS: No response for cmd 50 mid 12703
Jun 20 08:06:51 localhost kernel:  CIFS VFS: Write2 ret -9, wrote 0
Jun 20 08:09:35 localhost kernel:  CIFS VFS: server not responding
Jun 20 08:09:35 localhost kernel:  CIFS VFS: No response for cmd 50 mid 15921
Jun 20 08:09:35 localhost kernel:  CIFS VFS: No response for cmd 50 mid 15922
Jun 20 08:09:41 localhost kernel:  CIFS VFS: No response to cmd 47 mid 15920
Jun 20 08:09:41 localhost kernel:  CIFS VFS: Write2 ret -11, wrote 0
Jun 20 08:09:41 localhost kernel:  CIFS VFS: Write2 ret -9, wrote 0
Jun 20 08:45:17 localhost rsyslogd: [origin software="rsyslogd" swVersion="1.19.6" x-pid="1940"][x-configInfo udpReception="No" udpPort="514" tcpReception="No" tcpPort="0
"] restart
Jun 20 08:45:18 localhost kernel: rklogd 1.19.6, log source = /proc/kmsg started.
Jun 20 08:45:18 localhost kernel: Linux version 2.6.23.1-42.fc8 (kojibuilder@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Tue
 Oct 30 13:55:12 EDT 2007
Jun 20 08:45:18 localhost kernel: BIOS-provided physical RAM map:
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 0000000000000000 - 0000000000097000 (usable)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 0000000000097000 - 00000000000a0000 (reserved)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 0000000000100000 - 000000007f7b0000 (usable)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 000000007f7b0000 - 000000007f7be000 (ACPI data)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 000000007f7be000 - 000000007f7f0000 (ACPI NVS)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 000000007f7f0000 - 000000007f800000 (reserved)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
Jun 20 08:45:18 localhost kernel:  BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved)
Jun 20 08:45:18 localhost kernel: 1143MB HIGHMEM available.
Jun 20 08:45:18 localhost kernel: 896MB LOWMEM available.
Jun 20 08:45:18 localhost kernel: found SMP MP-table at 000ff780
Jun 20 08:45:18 localhost kernel: Using x86 segment limits to approximate NX protection
Jun 20 08:45:18 localhost kernel: Zone PFN ranges:
Jun 20 08:45:18 localhost kernel:   DMA             0 ->     4096
Jun 20 08:45:18 localhost kernel:   Normal       4096 ->   229376
Jun 20 08:45:18 localhost kernel:   HighMem    229376 ->   522160
Jun 20 08:45:18 localhost kernel: Movable zone start PFN for each node
Jun 20 08:45:18 localhost kernel: early_node_map[1] active PFN ranges
Jun 20 08:45:18 localhost kernel:     0:        0 ->   522160
Jun 20 08:45:18 localhost kernel: DMI present.
Jun 20 08:45:18 localhost kernel: Using APIC driver default

举报
JamesLiang
发帖于1年前 1回/1K+阅
共有1个答案 最后回答: 1年前
upd: /etc/logrotate.d/rsyslog,配置了/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true,所以每次weeklyrotate过后会重新启动rsyslog服务,生成新的文件。已经设置为monthly了,但是任然不知道为何/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true之后,系统会重新启动,也许是版本配合的不好吧。
顶部