LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 07-21-2006, 08:46 PM   #1
jorge_ivan
LQ Newbie
 
Registered: Jul 2006
Posts: 7
Thanked: 0
Unhappy There is not enough space in folder var


[Log in to get rid of this advertisement]
Suddenly in my server with Fedora 1 installed, the folder var is almost full, then when I restart the server some services like samba does not start due there is not space in folder var. I want to know what kind of files could I erase or if there is a kind of files logs that I can erase. Thanks
jorge_ivan is offline     Reply With Quote
Old 07-21-2006, 09:17 PM   #2
jlightner
Senior Member
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 3,548
Thanked: 144
First thing to look at would be /var/log. This contains various logs as implied by its name. If you don't have logrotate running the logs (e.g. messages) could get extremely large. Files there can pretty much be zeroed out (e.g. > /var/log/messages) but some of them are activley in use (such as messages) so you should do:
Code:
service syslog stop
before zeroing them out then
Code:
service syslog start
afterwards.

Also try doing:
Code:
find /var -name core
This will find core dumps (dumps of memory left behind by programs that died unexpectedly). These can be removed.

Also /var/spool subdirectories may contain things that can be removed as well as /var/mail.

Finnally doing:
Code:
find /var -name *.tar
Will show you any tar archives you have. Typically you can compress these by doing:
Code:
gzip filename.tar
to free up space.
jlightner is offline     Reply With Quote
Old 07-21-2006, 09:33 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Location: Hell
Distribution: Fedora Core 5
Posts: 1,754
Thanked: 0
Yum in old versions of Fedora caches downloaded packages in /var/cache/yum which you can remove with "yum clean packages". The obsolete up2date also used to cache packages somewhere in /var I don't remember.
spooon is offline     Reply With Quote
Old 07-21-2006, 10:43 PM   #4
konsolebox
Member
 
Registered: Oct 2005
Location: Philippines
Distribution: Gentoo, Slackware
Posts: 957
Thanked: 15
hey maybe you're config mounts /var as tmpfs. that surely will get full immediately. do 'mount' to check.
konsolebox is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/var/tmp folder hardeep_ubhi Linux - General 4 10-02-2006 08:10 AM
Can I just delete my /var/cache/yum folder? SquishyMarbles Linux - Software 1 04-10-2006 04:25 PM
php: assign $var to 1 folder above. xushi Programming 2 08-03-2005 05:16 AM
no space left on /var BUT THERE IS!! branden_burger Linux - Software 5 05-31-2005 02:44 AM
Not enough space in /var/lib/mysql/ mtmacedo Linux - Software 1 10-22-2004 04:53 PM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration