Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
my server crashes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Fri Feb 04, 2005 10:52 am    Post subject: my server crashes Reply with quote

hi there !

I've setup a fileserver at home for sharing my files with the rest of the family.
It runs gentoo for a month. since gentoo is installed the box is acting verry wierd , It crashed constantly, first I thought it was bad ram but I tested with some other ram and it did just the same. I ran top whole night and the lasted thing I saw it was processing with a load of 443(!) with the whole ram and swap full. kswapd was processing a lot.
So what could be the problem here ? A memory leak in one of the apps I run ?

I run on this box :
Lamp
vsftpd
mrtg
webmin
rsyncd
samba

I'm away for the weekend so I can't reply untill monday , sry for that.

Grtz & Thx

Disturbed
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Fri Feb 04, 2005 10:58 am    Post subject: Reply with quote

Is your box open to the internet (ie no firewall or port forwarding)?

rsyncd and ftp ports are very attractive to hackers/script kiddies.

G.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Fri Feb 04, 2005 11:48 am    Post subject: Reply with quote

GordSki wrote:
Is your box open to the internet (ie no firewall or port forwarding)?

rsyncd and ftp ports are very attractive to hackers/script kiddies.

G.

no the box is firewalled, It can access the internet but internet can't access the box.
I haven't got any bandwithprobs either so I don't think that's the prob.

thx 4 reply ;)
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Fri Feb 04, 2005 11:55 am    Post subject: Reply with quote

Is there anything in the '/var/log/message' file about kernel panics or stuff like that?

G.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Fri Feb 04, 2005 12:20 pm    Post subject: Reply with quote

GordSki wrote:
Is there anything in the '/var/log/message' file about kernel panics or stuff like that?

G.

well yeah , it said the swap and the ram is running full.
dmesg also said programs are terminated because of the ram and swap.
btw ; I'm running 2.6.9 vanilla sources.
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Fri Feb 04, 2005 2:14 pm    Post subject: Reply with quote

In top you can press 'shift-m' and it'll sort by memory usage and you can see which process is using all the memory.

G.
Back to top
View user's profile Send private message
massheep
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2005
Posts: 81

PostPosted: Fri Feb 04, 2005 2:36 pm    Post subject: Reply with quote

how big is your swapspace and ram?
Back to top
View user's profile Send private message
t3rm1nal
Apprentice
Apprentice


Joined: 17 May 2004
Posts: 173
Location: US

PostPosted: Fri Feb 04, 2005 10:11 pm    Post subject: Reply with quote

well, at this point could be a number of things...

a compromised box? incorrect server setups? incorrect hardware config?

need more context..

what kind of hardware are you running? if its ancient stuff, then ya, prolly gonna take a beating. i would isolate individual services and test them that way, make sure you are up to date, then go from there.

yeah and why not post up a

Code:
ps aux

_________________

Adopt an unanswered post.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Mon Feb 07, 2005 4:14 pm    Post subject: Reply with quote

I got a tip from a friend of mine, he told me to turn off the swap.
so I'm going to test this , maybe the swapspace is corrupted or does it have some bad blocks.
btw my server has 192Meg ram and 250Meg swap. I'm running a fileserver on a Compaq P3 600 with additional satacard with some disks , and a gigabit nic , all runned fine untill some weeks ago.
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Tue Feb 08, 2005 10:47 am    Post subject: Reply with quote

update :
My server runs for over 18 hours without crashing.
All programs are running in the ram so some programs are terminated due ram size.
so I'm sure that the swap is corrupted or has bad blocks , how do I check it ?
this doesn't work that well :
Quote:

root@Bender jo # fsck /dev/hda4
fsck 1.35 (28-Feb-2004)
fsck: fsck.swap: not found
fsck: Error 2 while executing fsck.swap for /dev/hda4


grtz & thx
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Feb 08, 2005 1:54 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Tue Feb 08, 2005 2:54 pm    Post subject: Reply with quote

I've had a quick look and I can't see any tools for checking the integrity of a swap partition..... However, I did notice that you can create a swap file (swapon filename) which you might want to try.

Create your self a 250mb file on one of your other disk and use it as a swap.

G.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Tue Feb 08, 2005 5:51 pm    Post subject: Reply with quote

Hey GordSki ; thx for the info , this is working great.
I think I'm going to convert the swappartition to a reiserfspartition and make the swapfile. that way I can check the partition one's in a while :)
I'm doing a emerge -u system and so far so good.
@Deathwing00: what has this got to do with security & networking ? this is an gentoo system issue.
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Feb 08, 2005 8:12 pm    Post subject: Reply with quote

disturbed wrote:

@Deathwing00: what has this got to do with security & networking ? this is an gentoo system issue.


Indeed, I made a mistake while moving it. Anyway, do not post in Installing Gentoo anything that is not related to install Gentoo.
Back to top
View user's profile Send private message
GordSki
Guru
Guru


Joined: 18 Oct 2004
Posts: 329

PostPosted: Wed Feb 09, 2005 12:04 am    Post subject: Reply with quote

Glad it worked disturbed, but I would suggest you keep an eye on the disk you were using for the swap......

It seems very odd for it to break so much. Is it an old disk?

G.
Back to top
View user's profile Send private message
disturbed
Apprentice
Apprentice


Joined: 18 May 2003
Posts: 216
Location: Belgium , Antwerp

PostPosted: Wed Feb 09, 2005 1:35 am    Post subject: Reply with quote

GordSki wrote:
It seems very odd for it to break so much. Is it an old disk?

G.

well its a 60gig maxtor , I guess its 3 years or 4 years old. you might be right, I'm going to replace it soon.

thx 4 the help guys
Quote:
jo@Bender jo $ uptime
02:36:16 up 1 day, 9:49, 3 users, load average: 0.01, 0.01, 0.00

hope this problem is solved....
_________________
A computer is like airconditioning. When you open windows, it doesn't work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum