LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-30-2009, 01:53 AM   #1
toravionly
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
RHEL 4.4: Unexpected shutdown


Hi,
I am encountering a wierd problem on my Linux Server. There has been 2 unexpected shutdowns in the last 10 days and the reason is unknown. The strange thing is that I have some other Linux servers, but it is only 1 particular server which shuts down.

The /var/log/messages files show the following entries.

Mar 27 07:49:17 icsinoierd013 kernel: ide-cd: cmd 0x25 timed out
Mar 27 07:49:17 icsinoierd013 kernel: hda: irq timeout: status=0xd0 { Busy }
Mar 27 07:49:17 icsinoierd013 kernel: hda: irq timeout: error=0x00
Mar 27 07:49:17 icsinoierd013 kernel: hda: ATAPI reset complete
Mar 29 04:02:35 icsinoierd013 cups: cupsd shutdown succeeded
Mar 29 04:02:36 icsinoierd013 cups: cupsd startup succeeded


Mar 29 04:02:36 icsinoierd013 syslogd 1.4.1: restart.
Mar 29 10:26:50 icsinoierd013 shutdown: shutting down for system halt
Mar 29 10:26:51 icsinoierd013 init: Switching to runlevel: 0
Mar 29 10:26:52 icsinoierd013 gpm[3548]: *** info [mice.c(1766)]:
Mar 29 10:26:52 icsinoierd013 gpm[3548]: imps2: Auto-detected intellimouse PS/2
Mar 29 10:26:52 icsinoierd013 cups-config-daemon: cups-config-daemon -TERM succeeded
Mar 29 10:26:52 icsinoierd013 haldaemon: haldaemon -TERM succeeded
Mar 29 10:26:52 icsinoierd013 messagebus: messagebus -TERM succeeded
Mar 29 10:26:52 icsinoierd013 atd: atd shutdown succeeded
Mar 29 10:26:52 icsinoierd013 cups: cupsd shutdown succeeded
Mar 29 10:26:52 icsinoierd013 xfs[3581]: terminating
Mar 29 10:26:52 icsinoierd013 xfs: xfs shutdown succeeded
Mar 29 10:26:52 icsinoierd013 gpm: gpm shutdown succeeded
Mar 29 10:26:52 icsinoierd013 sshd: sshd -TERM succeeded
Mar 29 10:26:53 icsinoierd013 sendmail: sendmail shutdown succeeded
Mar 29 10:26:53 icsinoierd013 sendmail: sm-client shutdown succeeded
Mar 29 10:26:53 icsinoierd013 smartd: smartd shutdown failed
Mar 29 10:26:53 icsinoierd013 vsftpd: vsftpd shutdown succeeded
Mar 29 10:26:53 icsinoierd013 xinetd[3500]: Exiting...
Mar 29 10:26:53 icsinoierd013 xinetd: xinetd shutdown succeeded
Mar 29 10:26:53 icsinoierd013 acpid: acpid shutdown succeeded
Mar 29 10:26:53 icsinoierd013 crond: crond shutdown succeeded
Mar 29 10:26:53 icsinoierd013 rpc.statd[3310]: Caught signal 15, un-registering and exiting.
Mar 29 10:26:54 icsinoierd013 nfslock: rpc.statd shutdown succeeded
Mar 29 10:26:54 icsinoierd013 irqbalance: irqbalance shutdown succeeded
Mar 29 10:26:54 icsinoierd013 portmap: portmap shutdown succeeded
Mar 29 10:26:54 icsinoierd013 kernel: Kernel logging (proc) stopped.
Mar 29 10:26:54 icsinoierd013 kernel: Kernel log daemon terminating.
Mar 29 10:26:55 icsinoierd013 syslog: klogd shutdown succeeded
Mar 29 10:26:55 icsinoierd013 exiting on signal 15


Any clues as to why this might be happening?
Regards,
Ravi
 
Old 03-30-2009, 10:21 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by toravionly View Post
Hi,
I am encountering a wierd problem on my Linux Server. There has been 2 unexpected shutdowns in the last 10 days and the reason is unknown. The strange thing is that I have some other Linux servers, but it is only 1 particular server which shuts down.

Mar 29 10:26:50 icsinoierd013 shutdown: shutting down for system halt

Any clues as to why this might be happening?
Looks like someone is shutting the server down, either manually or via CRON. Check all your cron jobs, for all users. Also, since you have the time/date a system was shut down, type in "last", and see if there are any users that log in just before the shutdown. Look at their shell histories, and see if they're doing it.

Most of the time, hardware-related problems that cause an orderly shutdown (temperature, UPS sending a shutdown signal, etc.), will leave very noticeable events in your syslogs, telling you WHY the system is shutting down.
 
Old 03-31-2009, 01:58 AM   #3
toravionly
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the reply TBone.

I am new to Linux Administration.

Well I checked the existing cron jobs using:
crontabs -l

And it didnt return any rows.

When I checked the users using:
last

There was no suspicious activity or logons.

Finally I started checking system logs using the command:
system-logviewer

When I check the system log then I see a lot of segment faults of the following nature:

kernel: frmweb[11078]: segfault at 0000000000697465e rip 00000000000f7dd92c1 rsp 0000000000000000ffff6794 error 4

Could this be an issue?
 
Old 03-31-2009, 11:54 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by toravionly View Post
Thanks for the reply TBone.
I am new to Linux Administration.
Well I checked the existing cron jobs using:
crontabs -l
And it didnt return any rows.
Do it as root, as well as a normal user. If you type in crontab -l as you, you'll only see YOUR jobs. You can also try to peek into /var/spool/cron/tabs (that's what it is on OpenSuSE), and see what files are in there, Cat them out...those are the cron entries for the various users.

Also check /etc/cron*, for jobs in there.

Quote:
When I checked the users using:
last
There was no suspicious activity or logons.
Wouldn't be suspicious necessarily...but if the same user had logged in before both shutdown events, I'd give them a deeper look. Check the .bash_history files for those users.

Quote:
Finally I started checking system logs using the command:
system-logviewer

When I check the system log then I see a lot of segment faults of the following nature:

kernel: frmweb[11078]: segfault at 0000000000697465e rip 00000000000f7dd92c1 rsp 0000000000000000ffff6794 error 4

Could this be an issue?
Do you happen to have Oracle on that server??
 
Old 04-01-2009, 07:23 AM   #5
toravionly
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
There are 2 files in /var/spool/cron/ which are applprod and oraprod and but the content is empty in both the files.



As

[root@icsinoierp011 cron]# cd /etc
[root@icsinoierp011 etc]# ls cron*
cron.deny crontab

cron.d:
sysstat

cron.daily:
00-logwatch 00-makewhatis.cron 00webalizer 0anacron certwatch logrotate mcelog.cron prelink rpm slocate.cron tetex.cron tmpwatch

cron.hourly:

cron.monthly:
0anacron

cron.weekly:
00-makewhatis.cron 0anacron
[root@icsinoierp011 etc]# vi crontab
[root@icsinoierp011 etc]# cd cron.daily/
[root@icsinoierp011 cron.daily]# ls
00-logwatch 00-makewhatis.cron 00webalizer 0anacron certwatch logrotate mcelog.cron prelink rpm slocate.cron tetex.cron tmpwatch
[root@icsinoierp011 cron.daily]# vi 0anacron
[root@icsinoierp011 cron.daily]# grep shutdown *
[root@icsinoierp011 cron.daily]# cd ../cron.monthly
[root@icsinoierp011 cron.monthly]# grep shutdown *
[root@icsinoierp011 cron.monthly]# cd ../cron.weekly
[root@icsinoierp011 cron.weekly]# grep shutdown *
[root@icsinoierp011 cron.weekly]#

Hence I believe that none of the cron jobs are causing shutdown. Please correct me if I am wrong.



Yes I have an Oracle Server running.
 
Old 04-01-2009, 09:21 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,617

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by toravionly View Post
There are 2 files in /var/spool/cron/ which are applprod and oraprod and but the content is empty in both the files.

Hence I believe that none of the cron jobs are causing shutdown. Please correct me if I am wrong.

Yes I have an Oracle Server running.
You are correct..doesn't look like the shutdowns are caused by a cron job. Sometimes that's the first place to look...I know I've cron'ned a shutdown for maintenance before, and forgot to remove it later.

Based on that error you mentioned, I've seen that on an Oracle server before, and it has caused a shutdown to occur. If these are totally random (not like EXACTLY a week apart, or something like that), I'd run the logs past Oracle, to see what they can make of them. Also, check with your DBA's...see if they've upgraded/changed any Oracle stuff, and see when they normally do data-loads or run reports. That could coincide with the shutdowns....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpected Shutdown dastech Linux - Enterprise 3 11-03-2008 02:31 AM
remote shutdown of rhel 3 asgr86 Linux - Networking 6 08-11-2008 10:07 AM
"shutdown now "problem for RHEL 4 server shipon_97 Linux - Newbie 3 09-19-2007 08:43 PM
Unexpected shutdown ammaro Linux - Software 1 04-21-2007 05:42 PM
error while RHEL 4 shutdown Ayman.mashal Linux - Newbie 3 08-05-2005 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration