View previous topic :: View next topic |
Author |
Message |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Fri Feb 04, 2005 10:52 am Post subject: my server crashes |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Fri Feb 04, 2005 10:58 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Fri Feb 04, 2005 11:48 am Post subject: |
|
|
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 ![Wink ;)](images/smiles/icon_wink.gif) _________________ A computer is like airconditioning. When you open windows, it doesn't work. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Fri Feb 04, 2005 11:55 am Post subject: |
|
|
Is there anything in the '/var/log/message' file about kernel panics or stuff like that?
G. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Fri Feb 04, 2005 12:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Fri Feb 04, 2005 2:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
massheep Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 02 Jan 2005 Posts: 81
|
Posted: Fri Feb 04, 2005 2:36 pm Post subject: |
|
|
how big is your swapspace and ram? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
t3rm1nal Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/1457866813419d727f6ecdf.gif)
Joined: 17 May 2004 Posts: 173 Location: US
|
Posted: Fri Feb 04, 2005 10:11 pm Post subject: |
|
|
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
_________________
Adopt an unanswered post.
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Mon Feb 07, 2005 4:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Tue Feb 08, 2005 10:47 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Deathwing00 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1140581890451d29047ad41.jpg)
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Feb 08, 2005 1:54 pm Post subject: |
|
|
Moved from Installing Gentoo. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Tue Feb 08, 2005 2:54 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Tue Feb 08, 2005 5:51 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Deathwing00 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/1140581890451d29047ad41.jpg)
Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Feb 08, 2005 8:12 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
GordSki Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/5492044474381f3049f52f.jpg)
Joined: 18 Oct 2004 Posts: 329
|
Posted: Wed Feb 09, 2005 12:04 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
disturbed Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/16658734623ec8a817f1c4f.gif)
Joined: 18 May 2003 Posts: 216 Location: Belgium , Antwerp
|
Posted: Wed Feb 09, 2005 1:35 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|