• No space left on device?

    Working on our hosting webserver the other day and came across an issue that took me a while to figure out.  When trying to restart apache I was getting “No space left on device”, yet we had plenty of hard drive space.  It turns out that we actually had no semaphores available.  Using the following little script run from bash cleared it up.

    ipcs -s|awk '{print ipcrm sem  }' > SCRIPT
    ipcs -s -t | cut -f 1 -d " " | egrep "^[0-9]+$" | xargs ipcrm sem
    
    • Share/Bookmark