?
Solved

My RedHat 9 Linux Server keeps spontaneously restarting why is this?

Posted on 2004-09-15
19
Medium Priority
?
435 Views
Last Modified: 2007-02-13
Hi All,

I have a RedHat 9 Linux Server which seems to have a mind of its own. It keeps 'spontaneously' restarting (no trend that I can see, on average once every 1-2 weeks), are there any processes within Linux that could be causing this problem or is it more likely to be a hardware issue? (The Server is a DELL PowerEdge 4600 only 4 months old) ; there are no-cron jobs running that could cause a restart. Any suggestions would be greatly appretiated.

Many Thanks,

Mark.
0
Comment
Question by:roberm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 3
  • +2
19 Comments
 
LVL 10

Expert Comment

by:Luxana
ID: 12062930
is it possible that somehow you opened /etc/inittab and changed defauld runlevel to 6 which is reboot?

run your system in single mode and have a look also run this command to see previous and current runlevel.

# runlevel  
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12062956
cat /etc/inittab

# The default runlevel. You schould have something similar, 5 is X 3 is command line
id:2:initdefault:
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12062966
And also when it reboots after getty starts or after you login?
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:roberm
ID: 12064110
Ive checked your suggestions and all looks ok, i.e. current runlevel is 5 (X11). But thanks anyway.
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12064356
Couple questions...

did you check /var/log/mesages ?
when you change your runlevel to 3 does it restart anyway?
does the system is restarting by it self always or sometimes?
did you add new hardware recently?
when this problem occurs first?
does anybody else have root password except you ?


0
 
LVL 40

Accepted Solution

by:
jlevie earned 672 total points
ID: 12064454
Is the system up to date w/respect to the RedHat 9 errata updates? If it isn't that'd be the first thing I'd do in working towards a solution. Next I'd set the run level to three and avoid leaving the Gui running when there wasn't someone sitting at the console. I've seen systems spontaneously reboot when running X that are rock solid when not. Those always turned out to be a video card problem.
0
 

Author Comment

by:roberm
ID: 12064981
In reply: im gonna try running at runlevel 3 for a week or two and see what happens, I did check the messages log and nothing that indicates a cause, no hardware has been added since purchase, know-else has the root password, can't really be sure when the problem first started, the server has only recently been used properly. Great advice from you both.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12067165
Is the OS up to date? You need to make sure that it is since there were kernel and application bugs in the original distribution of RH 9.
0
 
LVL 17

Assisted Solution

by:owensleftfoot
owensleftfoot earned 664 total points
ID: 12070187
I would bet on a hardware problem. Ram or power supply would be my guess.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12070784
Don't neglect the possibility of a cooling fan as the cause. Especially the CPU coolers.
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12072825
If it was the cooling fan,  the chances are it would shutdown, not reboot - most modern bios act this way.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12074529
A slow running cooling fan, as opposed to one that's failed completely, have been observed as the cause of this even on very modern systems with the processor over-temp/fan-fail protection in the BIOS. But I agree that a failed fan should cause a power down, not a reboot.
0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12079536
In my limited experience, problems with failing fans cause complete freezes rather than shutdowns. But it is limited experience.
0
 
LVL 2

Assisted Solution

by:dfk
dfk earned 664 total points
ID: 12102480
Mark

A few things to note here;

firstly, running at run level 5 usually indicates a desire to run X-Windows.  If this is just a server, you neednt bother and run level 3 would suffice.
If the run level was set to 6 in your inittab, your machine would constantly reboot... ;-)

Could your machine have been compromised?  It doesnt sound like a hardware problem as these usually result in machine hangs and _not_ reboots.
A power spike could reboot your machine but I suspect you'd notice spikes on other equipment.

Check your /var/log/messages for indications of possible logins and run chkrootkit (http://www.chkrootkit.org/).  If your machine has been compromised, you may find answers from the output of chkrootkit.

Also, ensure that your firewall is blocking everything but the things you have open and, for those services that are open, make sure
a) you need them to be open to the internet and
b) you are running the latest stable code for each service.


I hope that helps (and, for what its worth, I hope you havent been compromised....its a real pain!)
Best Regards
Mark Waterhouse
{company advert removed - ai, cs admin}
0
 

Author Comment

by:roberm
ID: 12838414
Hi All thanks for all your responses (I will reward with points), I have tried upgrading using the gui update tool, all was successful up until the kernel update which failed and since which I can no-longer run 'startx', when I launch it I get the following error message:

"xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared object file: No such file or directory."

The message is repeated 5 times, I really have no clue.

Is there anyway that I can re-launch the automatic update from the command-line, to retry the update?

With the regards to the restarting issue this still happens but has become less frequent.

I feel a re-install coming on ;( OMG.
0
 
LVL 10

Expert Comment

by:Luxana
ID: 12838571
just before you reinstall it have a look if this library in in your /usr/X11R6/lib if not add it to /etc/ld.so.conf and run ldconfig.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 12841981
You can run up2date from the command line with 'up2date -u'. That's the only way I use it after having had failures in the past with the Gui interface.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 6 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question