No Space Left on Device

When you restarting the httpd services while the the server found high load, you might get these error.

ERROR: (28)No space left on device: mod_rewrite: could not create rewrite_log_lock

Why you will getting this error? The reason is the semaphore issue. What is semaphore? It is the process used to communicate between active process from Apache.

To check what is the semaphore used, you may use the command as below.

ipcs -s

To kill the semaphore, use the command as below then restart the httpd service again.

ipcs -s | grep nobody | perl -e 'while (‹STDIN›) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'

Published by

Mick Genie

Mick Genie is the founder of and working at ExaBytes Network Sdn Bhd and WPWebHost web host company. He is expertise in Windows and Linux environment especially web hosting related information, tips and trick as well as the IT Information.