Server restarts on his own
Hy all,
I have a problem with one a server installed with Debian 3.1, that is restarting almost every day at the same hour, 6,25 AM. Here are the messages obtained with #cerberus:/etc# grep -C 5 restart /var/log/messages .....missing displays.... Oct 6 06:25:27 cerberus kernel: device eth2 left promiscuous mode Oct 6 06:25:27 cerberus kernel: device eth2 entered promiscuous mode Oct 6 06:25:29 cerberus syslogd 1.4.1#17: restart. .....missing displays.... Oct 7 06:25:47 cerberus kernel: device eth2 left promiscuous mode Oct 7 06:25:47 cerberus kernel: device eth2 entered promiscuous mode Oct 7 06:25:49 cerberus syslogd 1.4.1#17: restart. Oct 7 06:37:03 cerberus -- MARK -- Oct 7 06:57:03 cerberus -- MARK -- Oct 7 07:17:02 cerberus -- MARK -- Oct 7 07:37:02 cerberus -- MARK -- Oct 7 07:57:02 cerberus -- MARK -- As I said, there are days when the system is not restarting, but more often it does. For example, on 6th October it didn't restart, but on 7th it did, and the messages are the same. Any ideas? |
Quote:
Again check the /etc/sysconfig/syslog and /etc/syslog.conf file for any clue, post them here if you can. |
Quote:
Since you're getting messages regarding your network interfaces, and then the system is restarting, it would hint at a network-related issue. It mentions promiscious mode...are you running a sniffer/analyzer on that box? If so, it could be core-dumping/getting overloaded, and shutting your box down. |
Quote:
#crontab -e ......... #Run pingmon - for locations monitoring #* * * * * /usr/local/bin/pingmon .......... but I decommented it few weeks ago, as you can see from this output... I don't have any other scheduled event in crontab at this specific time ...6,25 AM. And, to be honest, I don't believe that there's overload at that hour in the morning, because we are starting our workday at 8.00 AM, so, with one hour and so after. |
leaving your network interface in promiscous mode is a bad thing.
ifconfig -v | grep -i promisc -see if still open to turn off ifconfig eth2 -promisc |
Quote:
|
Quote:
#ifconfig .............. eth2 Link encap:Ethernet HWaddr xxxxxxxxxxxxxxxx inet addr:xxxxxxxxxxxx Bcast:xxxxxxxxxxxx Mask:xxxxxxxxxxxxx UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1407753 errors:0 dropped:0 overruns:0 frame:0 TX packets:1156515 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:239756633 (228.6 MiB) TX bytes:1164451100 (1.0 GiB) Interrupt:20 Base address:0xdc00 Memory:ff8fe000-ff8fe038 .............. if it were it must have the line: ................ UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 .............. I believe that it's something else that in forcing eth2 to enter in promiscuous mode and then to give those messages at 6.25 AM. |
My old webserver (running Woody) did the exact same thing with the same messages in the syslog. Turned out it was failing hardware (although I can't remember exactly what it was). The reason it restarted itself at the exact same time almost daily, was because it was running some heavy indexing program daily at the same time which caused the hardware to fail.
So what I'm trying to say is, first make sure you don't have failing hardware. Those usually don't generate nice error messages in your log file but simply do stuff like crash or reboot your machine. |
PS: As for the NIC entering and leaving promiscuous mode, I had those lines in my syslog as well and tracked them down to a network traffic analyzer I had running (MRTG). So it was actually "normal behavior".
|
Quote:
Thanks! |
Things to check:
|
Quote:
Thanks again |
All times are GMT -5. The time now is 02:08 AM. |