Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been seeing a recurring issue on my web server:

[Sun May 16 03:10:19 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Sun May 16 04:10:05 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Sun May 16 05:10:04 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
[Sun May 16 05:17:13 2010] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed

So far, the only fix I have found to this when it happens is to reboot my server. This is non-ideal :-\

Restarting httpd does not clear the error. df indicates I have 20+ gigs free, and top and free both report 800+ megs (or 1.2 gigs)

> df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             40G   18G   23G  44% /

#

> free
             total       used       free     shared    buffers     cached
Mem:       1474560     300832    1173728          0          0          0
-/+ buffers/cache:     300832    1173728

Any ideas on why this would recur, and how to prevent/fix it?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

http://devtime.blogspot.com/2008/02/apache-error-no-space-left-on-device.html

share|improve this answer
    
thanks. Could you copy/paste the scriptlet to your answer for posterity? –  warren May 17 '10 at 13:14
    
I needed to modify the scriptlet on that page to the following: ipcs -s | grep apache | cut -b11-22 | xargs ipcrm -s –  warren May 17 '10 at 15:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.