server restaring after syslogd starts

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
deltamail
Posts: 16
Joined: 2006/10/02 19:50:39

server restaring after syslogd starts

Post by deltamail » 2010/03/29 16:09:16

I am facing strange problem.. the server is restarting once the syslogd restart. I checked the /var/log/message

[root@localhost logrotate.d]# cat /var/log/messages | egrep restart
Mar 28 04:02:04 localhost syslogd 1.4.1: restart.
Mar 29 03:34:58 localhost syslogd 1.4.1: restart.
Mar 29 11:02:31 localhost syslogd 1.4.1: restart.


Any idea how to debug it?

Thanks

chuina
Posts: 355
Joined: 2009/12/11 10:25:56

Re: server restaring after syslogd starts

Post by chuina » 2010/03/29 16:21:38

From a wild guess what are the output of:
[code]grep kernel /boot/grub/grub.conf
grep initdefault /etc/inittab[/code]

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: server restaring after syslogd starts

Post by AlanBartlett » 2010/03/29 17:45:28

[quote]
I am facing strange problem.. the server is restarting once the syslogd restart.
[/quote]
The only information you have provided tells me that the syslog daemon, [i]syslogd[/i], has been restarted on your system and nothing more.

Please show the output returned by --

[code]
[b]grep -A 10 restart /var/log/messages[/b]
[/code]

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: server restaring after syslogd starts

Post by pschaff » 2010/03/29 18:10:00

I'd change that a bit to
[code]
[b]grep -C 10 restart /var/log/messages[/b]
[/code]to show both lines before and after the restart.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: server restaring after syslogd starts

Post by AlanBartlett » 2010/03/29 20:27:56

Certainly. :-D

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: server restaring after syslogd starts

Post by TrevorH » 2010/03/30 09:48:40

The output from `uptime` would almost certainly answer the query too.

deltamail
Posts: 16
Joined: 2006/10/02 19:50:39

Re: server restaring after syslogd starts

Post by deltamail » 2010/03/31 15:52:21

Ok Rebooted the server again...

#rep -C 10 restart /var/log/messages
Mar 28 04:02:04 localhost syslogd 1.4.1: restart.
Mar 28 06:45:54 localhost kernel: Fatal resource shortage: privvmpages, UB 3690.
Mar 28 06:45:54 localhost kernel: Fatal resource shortage: privvmpages, UB 3690.
Mar 28 13:11:05 localhost kernel: CT: 3630: stopped
Mar 28 13:11:06 localhost kernel: CT: 3630: started
Mar 28 14:02:34 localhost kernel: CT: 3630: stopped
Mar 28 14:02:41 localhost kernel: CT: 3630: started
Mar 28 14:38:57 localhost kernel: CT: 3630: stopped
Mar 28 14:38:58 localhost kernel: CT: 3630: started
Mar 28 18:12:51 localhost kernel: CT: 3630: stopped
Mar 28 18:12:51 localhost kernel: CT: 3630: started
Mar 28 18:25:51 localhost kernel: CT: 3630: stopped
Mar 28 18:25:51 localhost kernel: CT: 3630: started
Mar 29 03:34:58 localhost syslogd 1.4.1: restart.
Mar 29 03:34:58 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Mar 29 03:34:58 localhost kernel: Linux version 2.6.18-164.11.1.el5.028stab068.5 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Mon Mar 15 19:26:36 MSK 2010
Mar 29 03:34:58 localhost kernel: Command line: ro root=LABEL=/
Mar 29 03:34:58 localhost kernel: BIOS-provided physical RAM map:
Mar 29 03:34:58 localhost kernel: BIOS-e820: 0000000000010000 - 0000000000097800 (usable)
Mar 29 03:34:58 localhost kernel: BIOS-e820: 0000000000097800 - 00000000000a0000 (reserved)
Mar 29 03:34:58 localhost kernel: BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Mar 29 03:34:58 localhost kernel: BIOS-e820: 0000000000100000 - 00000000bd929000 (usable)
Mar 29 03:34:58 localhost kernel: BIOS-e820: 00000000bd929000 - 00000000bd94b000 (ACPI NVS)
Mar 29 03:34:58 localhost kernel: BIOS-e820: 00000000bd94b000 - 00000000bda50000 (reserved)
--
Mar 29 03:43:44 localhost kernel: CT: 3630: started
Mar 29 03:51:36 localhost kernel: CT: 3690: started
Mar 29 03:54:32 localhost kernel: CT: 5635: started
Mar 29 04:17:06 localhost kernel: u32 classifier
Mar 29 04:17:06 localhost kernel: Performance counters on
Mar 29 04:17:06 localhost kernel: input device check on
Mar 29 04:17:06 localhost kernel: Actions configured
Mar 29 06:46:04 localhost kernel: Fatal resource shortage: privvmpages, UB 3690.
Mar 29 06:46:04 localhost kernel: Fatal resource shortage: privvmpages, UB 3690.
Mar 29 07:50:01 localhost auditd[6741]: Audit daemon rotating log files
Mar 29 11:02:31 localhost syslogd 1.4.1: restart.
Mar 29 11:02:31 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Mar 29 11:02:31 localhost kernel: Linux version 2.6.18-164.11.1.el5.028stab068.5 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Mon Mar 15 19:26:36 MSK 2010
Mar 29 11:02:31 localhost kernel: Command line: ro root=LABEL=/
Mar 29 11:02:31 localhost kernel: BIOS-provided physical RAM map:
Mar 29 11:02:31 localhost kernel: BIOS-e820: 0000000000010000 - 0000000000097800 (usable)
Mar 29 11:02:31 localhost kernel: BIOS-e820: 0000000000097800 - 00000000000a0000 (reserved)
Mar 29 11:02:31 localhost kernel: BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Mar 29 11:02:31 localhost kernel: BIOS-e820: 0000000000100000 - 00000000bd929000 (usable)
Mar 29 11:02:31 localhost kernel: BIOS-e820: 00000000bd929000 - 00000000bd94b000 (ACPI NVS)
Mar 29 11:02:31 localhost kernel: BIOS-e820: 00000000bd94b000 - 00000000bda50000 (reserved)
--
Mar 29 11:14:53 localhost smartd[9134]: Device: /dev/sda, opened
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sda, not found in smartd database.
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sdb, opened
Mar 29 11:14:54 localhost smartd[9134]: Device /dev/sdb: using '-d sat' for ATA disk behind SAT layer.
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sdb, opened
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sdb, not found in smartd database.
Mar 29 11:14:54 localhost smartd[9134]: Device: /dev/sdb, is SMART capable. Adding to "monitor" list.
Mar 29 11:14:54 localhost smartd[9134]: Monitoring 0 ATA and 2 SCSI devices
Mar 29 11:14:55 localhost smartd[9138]: smartd has fork()ed into background mode. New PID=9138.
Mar 31 11:41:23 localhost syslogd 1.4.1: restart.
Mar 31 11:41:23 localhost kernel: klogd 1.4.1, log source = /proc/kmsg started.
Mar 31 11:41:23 localhost kernel: Linux version 2.6.18-164.11.1.el5.028stab068.5 (root@rhel5-build-x64) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Mon Mar 15 19:26:36 MSK 2010
Mar 31 11:41:23 localhost kernel: Command line: ro root=LABEL=/
Mar 31 11:41:23 localhost kernel: BIOS-provided physical RAM map:
Mar 31 11:41:23 localhost kernel: BIOS-e820: 0000000000010000 - 0000000000097800 (usable)
Mar 31 11:41:23 localhost kernel: BIOS-e820: 0000000000097800 - 00000000000a0000 (reserved)
Mar 31 11:41:23 localhost kernel: BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Mar 31 11:41:23 localhost kernel: BIOS-e820: 0000000000100000 - 00000000bd929000 (usable)
Mar 31 11:41:23 localhost kernel: BIOS-e820: 00000000bd929000 - 00000000bd94b000 (ACPI NVS)
Mar 31 11:41:23 localhost kernel: BIOS-e820: 00000000bd94b000 - 00000000bda50000 (reserved)
[root@localhost ~]#


grep initdefault /etc/inittab
# 0 - halt (Do NOT set initdefault to this)
# 6 - reboot (Do NOT set initdefault to this)
id:3:initdefault:



[root@localhost ~]# grep kernel /boot/grub/grub.conf
# all kernel and initrd paths are relative to /boot/, eg.
# kernel /vmlinuz-version ro root=/dev/mapper/isw_gcahaajh_defaultp5
kernel /vmlinuz-2.6.18-164.11.1.el5.028stab068.5 ro root=LABEL=/
kernel /vmlinuz-2.6.18-128.1.1.el5.028stab062.3 ro root=LABEL=/
kernel /vmlinuz-2.6.18-128.el5 ro root=LABEL=/
[root@localhost ~]#

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

server restaring after syslogd starts

Post by gerald_clark » 2010/03/31 16:26:18

1. You are not running CentOS, you are running OpenVZ.
2. What do you claim as the problem?

deltamail
Posts: 16
Joined: 2006/10/02 19:50:39

Re: server restaring after syslogd starts

Post by deltamail » 2010/03/31 17:11:46

Problem is "Syslogd started this reboot the server."

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: server restaring after syslogd starts

Post by gerald_clark » 2010/03/31 17:20:31

Your OpenVZ is misconfigured. Try the OpenVZ forum.
http://forum.openvz.org/

Post Reply