BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 31st, 2006, 02:46 AM
Emadello Emadello is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Cairo, Egypt
Posts: 159 Emadello User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 5 h 1 m
Reputation Power: 4
/var/ is filling TOO FAST to full (%100)

hi,

i have a freebsd 5.4-stable server, my /var volume keeps raising to %100 and the server crashes, i use a big MySQL database, besides i use a technique that a php file reads the mysql data and stores it in a text file every 10 minutes, then i display the text file contents on the main page instead of connecting to database and hammering the server ...

I've noticed that when it rises to 100%, /var/tmp is using the whole size, it's normal is 14MB, but it rises to 114MB !!!

I think it's something related to the php file which reads the contents and store it in a text file, cuz before i make this technique i didn't have this problem, but it's just that i HAVE to use it to reduce the mysql usage.

the /var volume's normal capacity is 50%, when i do a (df -h) i see that it rises 55% ... 58% ... 60% ... %65 ... then drops again to 50% (((( EVERY 10 MINUTES ))))

i was lucky to see which files that thier sizes increase in the /var/tmp and i found them to be related to mysql, the names of the files are ( #sql_243_0.MYD && #sql_243_0.MYI ) ... I think these are the opened MySQL tables atm, so is there any configuration I can make to MySQL database to make it create these files anywhere other than /var ?? like /usr (which i have plenty of space on it)


any help will be much appretiated, Thanks in advance

Reply With Quote
  #2  
Old January 31st, 2006, 04:39 AM
LinuxHippy LinuxHippy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Location: HippyLand
Posts: 109 LinuxHippy User rank is Corporal (100 - 500 Reputation Level)LinuxHippy User rank is Corporal (100 - 500 Reputation Level)LinuxHippy User rank is Corporal (100 - 500 Reputation Level)LinuxHippy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 53 m 53 sec
Reputation Power: 4
Quote:
Originally Posted by Emadello
hi,
I've noticed that when it rises to 100%, /var/tmp is using the whole size, it's normal is 14MB, but it rises to 114MB !!!

Ah freebsd user, var need a generous portion and tmp needs to be (at least on my partition) at least 256 MB. The default partitioning is not generous. You may have to backup and re-allocate proper-sized partitons.

Reply With Quote
  #3  
Old March 16th, 2006, 11:21 AM
smoked1 smoked1 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 42 smoked1 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 59 m 41 sec
Reputation Power: 5
You might be able to backup /var and then add another drive to the system mounted as /var1. Restore /var to /var1 and then have it mount the new drive as /var. I have never done this but it seems like something that would work. Check the logs though. I'm sure that the logs are what is filling up /var.

Reply With Quote
  #4  
Old April 15th, 2006, 08:33 AM
cruzweb cruzweb is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Posts: 4 cruzweb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 m 28 sec
Reputation Power: 0
Quote:
Originally Posted by smoked1
You might be able to backup /var and then add another drive to the system mounted as /var1. Restore /var to /var1 and then have it mount the new drive as /var. I have never done this but it seems like something that would work. Check the logs though. I'm sure that the logs are what is filling up /var.


yah, you could use the dump and restore commands to do it. But definately clean out your logs, try to make var bigger, and maybe make a shell script that cleans out the temp folder every few minutes and cron it.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > /var/ is filling TOO FAST to full (%100)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway