LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-29-2005, 03:38 PM   #1
glaz
Member
 
Registered: Jun 2004
Posts: 58

Rep: Reputation: 15
Linux box locks-up


I'm having a problem with one of the linux machines. It's running a RedHat 7 (i believe) and is used frequently by several users at a time, mostly just telneting and vi'ing documents, and maybe internet browsing. But the problem is that at random times (and random because no indication of overload) the box just feezes up and you can't do anyhting to it but restart. Now I have no idea, what is going on with it. Some ideas were, maybe /tmp folder was running out of space, because users are telneting and vi'ing, and also maybe some application is craping out (samba?). I've checked the /var/log/messages, but it doesn't seem to indicate any problems (or maybe i just can't see any).

Any ideas on what may be causing these lockups, or how can i trace the problem?

TIA
 
Old 06-29-2005, 03:43 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
try emptying /tmp and, really, RH 7 is really old now, it just might be an age thing. try a newer install, such as fedora.

titanium_geek
 
Old 06-29-2005, 06:35 PM   #3
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
/tmp running out of space can do some scary stuff (especially to KDE) but it hasn't crashed my machine yet. I am running the slack though. Also, normally, a crapping out application shouldn't be able to take down your machine (unless you are running Windows, hihi). Maybe you should check your memory and hd for bad blocks, 'cause that'll definitely do it.
 
Old 06-29-2005, 06:54 PM   #4
glaz
Member
 
Registered: Jun 2004
Posts: 58

Original Poster
Rep: Reputation: 15
well, how do i see what amount of space /tmp was allocated and how much it has used? It's not a separate partition, it's a part of hda partition. After the machine freezes/crashes, sometimes the disk check finds bad blocks and sometimes it doesn't. So i'm not sure how to go about emptying out /tmp, because what if it gets full again fast? Can I monitor it?
 
Old 06-29-2005, 07:04 PM   #5
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
you should be able to cd to the directory and rm - but I would be darn careful about doing that. umm.. does df help you?

titanium_geek
 
Old 06-29-2005, 07:31 PM   #6
glaz
Member
 
Registered: Jun 2004
Posts: 58

Original Poster
Rep: Reputation: 15
no df only shows the size of the actual partitioning of the hd, but not the filesystem
 
Old 06-29-2005, 07:59 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
cd /tmp
du -sh

Since /tmp is on the root filesystem in your case, it will expand to fill all free space on the root filesystem and that would definitely cause bad things to happen (which is why untrusted users should not be allowed to write to the root fs unless there are quotas).

Also, bad blocks being found is bad -- you can try running badblocks directly. Running memtest would probably also be a good idea.
 
Old 06-30-2005, 11:16 AM   #8
glaz
Member
 
Registered: Jun 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Is there any way to bring up the console (/dev/console) to see if the system is dumping some errors right before it freezes?
Any other place errors might be dumped after it locks-up
 
Old 06-30-2005, 11:22 AM   #9
glaz
Member
 
Registered: Jun 2004
Posts: 58

Original Poster
Rep: Reputation: 15
In var/log/messages, this is what is there right before the system locked up, as you can see the fourth line is the actual restart. The first line probably is nothing, since it happens 22 minutes before the lock-up.
Does this provide any clues to my problem?

Jun 30 09:48:53 localhost kernel: udf: registering filesystem
Jun 30 10:10:29 localhost kernel: kernel BUG in header file at line 254
Jun 30 10:10:29 localhost kernel: ------------[ cut here ]------------
Jun 30 10:15:41 localhost syslogd 1.4.1: restart.
 
Old 06-30-2005, 12:47 PM   #10
titanium_geek
Senior Member
 
Registered: May 2002
Location: Horsham Australia
Distribution: elementary os 5.1
Posts: 2,479

Rep: Reputation: 50
perhaps you could try recompiling your kernel? That looks to me to be standard programming bug notification- there's a problem with the kernel, perhaps corrupted with the bad blocks.

titanium_geek
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux box calling a batch script on a windows box to run? Is it possible? joelhop Programming 8 05-17-2004 04:49 PM
Ethernet locks box at ifup! (Kernel 2.4.X, RH7.2) zaphraud Linux - Hardware 28 04-19-2004 08:19 AM
Box locks hard when exiting X MalcolmV8 Linux - General 3 04-02-2004 12:51 PM
Mouse Locks up Box BittaBrotha Linspire/Freespire 9 03-07-2004 05:08 AM
Linux box occasionally locks at 100% usage Harimwakairi Linux - Newbie 1 09-10-2003 02:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:55 PM.

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