Ivan Tomica

Apache: No space left on device

When apache reports no space left on device: couldn't create accept lock and you’ve checked both disk space and inode usage of disk and they both report as fine check active semaphores:

ipcs -s

If there’s high number of them, Apache probably hasn’t cleared up after itself and some semaphores are stuck. Clear them out with:

for i in `ipcs -s | awk '/httpd/ {print $2}'`; do (ipcrm -s $i); done

If you’re completely out of semaphores (some other apps using maximum number) you may consider tweaking kernel limits in sysctl.conf:

kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024

then run sysctl -p to pick up the new limits.

Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.


Leave a Reply

Your email address will not be published. Required fields are marked *