You are not logged in.

#1 2008-06-19 18:41:40

fiod
Member
Registered: 2007-04-02
Posts: 205

How to cleanup /var ?

Hey,

I've noticed that the '/var' directory uses up 8 GB (!) on my Arch installation, up for about 8 months.

How can I clean '/var' up safely?

Thanks
fiod

Offline

#2 2008-06-19 19:04:58

sph
Member
Registered: 2008-05-01
Posts: 63
Website

Re: How to cleanup /var ?

Clean your /var/cache/pacman/pkg/:

pacman -Scc

This will probably free a lot of space in /var.

Last edited by sph (2008-06-19 19:10:09)

Offline

#3 2008-06-19 19:23:48

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: How to cleanup /var ?

Thanks for the tip, that obviously helped.

But still, /var is about 4.5 Gigs, mostly in /var/log.

How can I clean up the logs?

Thanks
fiod

Offline

#4 2008-06-19 19:49:40

sph
Member
Registered: 2008-05-01
Posts: 63
Website

Re: How to cleanup /var ?

man logrotate

For example, try low values with the "rotate" directive.

See also: http://www.linux.com/articles/48390

Offline

#5 2008-06-19 19:52:34

Berticus
Member
Registered: 2008-06-11
Posts: 731

Re: How to cleanup /var ?

your log rotator should've taken care of this...  If you really have that many logs, you should think about reading them.  Typically if something wrong happens, it's logged.  Having a large amount of logs indicates that something may not be working very well and would require your attention.

Offline

#6 2008-06-20 09:32:40

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: How to cleanup /var ?

thanks a lot for all the tips.

Will go over my logs, to see whats going on..

fiod

Offline

#7 2008-06-20 14:05:54

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: How to cleanup /var ?

4.5 GB of logs means something is spitting out errors - a lot.

First clean it out, then activate log rotation & compression, should help a bit at least if you cannot structurally solve the problems of the huge logs.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#8 2008-06-20 18:09:38

fiod
Member
Registered: 2007-04-02
Posts: 205

Re: How to cleanup /var ?

Hey,

I got lots of these blocks in my 'everything.log' file:

Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_midi_event_free
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_midi_event_no_status
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_use_lock_sync_helper
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_seq_event_port_detach
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_midi_event_new
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_midi_event_decode
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_seq_create_kernel_client
Jun 19 21:51:33 lg-tux snd_seq_oss: Unknown symbol snd_seq_kernel_client_write_poll

looks related to alsa somehow, though I am not quite sure how to fix the problem.

Looks like this takes up most of the log file.

Offline

#9 2008-06-20 19:12:30

sph
Member
Registered: 2008-05-01
Posts: 63
Website

Re: How to cleanup /var ?

What sound hardware are you using?

Offline

#10 2008-06-21 13:38:05

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: How to cleanup /var ?

That means somehow you got incompatible kernel modules. Do you still have some lingering around that you installed separately from the kernel?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB