You are not logged in.
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
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
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
man logrotate
For example, try low values with the "rotate" directive.
See also: http://www.linux.com/articles/48390
Offline
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
thanks a lot for all the tips.
Will go over my logs, to see whats going on..
fiod
Offline
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
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
What sound hardware are you using?
Offline
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