You are not logged in.

#1 2008-03-14 14:38:34

bistrototal
Member
From: Norway
Registered: 2005-05-25
Posts: 59

[SOLVED]Log files getting LARGE

I ran a pacman -Syu for the first time in several months yesterday, and my computer has become almost useless due the fact that everything.log, kernel.log and messages.log gets extremely large (3.8 GB) after a while, causing / to become 100% full.

I've located the following in kernel.log:

Mar 14 15:06:44 elvix attempt to access beyond end of device
Mar 14 15:06:45 elvix attempt to access beyond end of device
Mar 14 15:06:45 elvix sda5: rw=0, want=1812442544, limit=412115382
Mar 14 15:06:45 elvix attempt to access beyond end of device
Mar 14 15:06:45 elvix sda5: rw=0, want=1812442544, limit=412115382
Mar 14 15:06:45 elvix attempt to access beyond end of device

Not sure what it means, but the last two lines are repeated XX times and are the reason why log files grow beyond limits. Anyone got ideas to what can be done to fix this?

Last edited by bistrototal (2008-03-14 16:27:15)

Offline

#2 2008-03-14 14:45:02

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED]Log files getting LARGE

logrotate works really well:

http://www.archlinux.org/packages/14754/

There's quite a few threads about configuration floating around.

Offline

#3 2008-03-14 14:46:25

bistrototal
Member
From: Norway
Registered: 2005-05-25
Posts: 59

Re: [SOLVED]Log files getting LARGE

Thanks, i'll look into that. Do you think I can neglect the recurring access issue?

Offline

#4 2008-03-14 14:50:08

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED]Log files getting LARGE

I'm not an expert here, but I think that you'll first need to manually trim your log files, then add logrotate. After that it should be automated. Of course checking on /var/log now and again is good practice.

Offline

#5 2008-03-14 14:55:20

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED]Log files getting LARGE

Force a filesystem check on next reboot:

touch /forcefsck

That file is checked in /etc/rc.sysinit

Offline

#6 2008-03-14 16:26:58

bistrototal
Member
From: Norway
Registered: 2005-05-25
Posts: 59

Re: [SOLVED]Log files getting LARGE

Thanks. Logrotate and fs check did it

Offline

Board footer

Powered by FluxBB