LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
 
LinkBack Search this Thread
Old 07-21-2006, 08:46 PM   #1
jorge_ivan
LQ Newbie
 
Registered: Jul 2006
Posts: 7

Rep: Reputation: 0
Unhappy There is not enough space in folder var


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
 
Old 07-21-2006, 09:17 PM   #2
MensaWater
Senior Member
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 4,761

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
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.
 
Old 07-21-2006, 09:33 PM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 46
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.
 
Old 07-21-2006, 10:43 PM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Location: Philippines
Distribution: Gentoo, Slackware, LFS
Posts: 1,522
Blog Entries: 3

Rep: Reputation: 97
hey maybe you're config mounts /var as tmpfs. that surely will get full immediately. do 'mount' to check.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:46 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration