[Apache] No space left on device: mod_rewrite
最近 Apache 經常無故死掉,查看 log 檔卻只看見:
[Sun Feb 24 16:48:46 2008] [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock
Configuration Failed
但當時主機各方面都很正常,絕無可能不夠 space/memory,解決方法就是 reboot = =
後來 google 一下,找到一個 work around,原理是刪除 Semaphores Array:
- # ipcs -s | grep apache | awk '{ print $2 }' | xargs ipcrm sem