No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed

문제점

apache 웹서버 운영중에 재시작 과정에서 error_log 에 아래와 같은 메시지가 확인 되었다.

[emerg] (28)No space left on device: Couldn’t create accept lock
[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed
Checking your disk shows that you have plenty of space

더이상 apache 를 실행할수가 없는데, 어떻게 해결해야 될까?

해결방법

ipcs -s | grep nobody

해서 현재 세마포어값을 확인한다.

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

현재 걸려있는 세마포어를 값을 삭제해야된다.

커널파라미터 설정 해야된다. (최대세마포어배열수 증가)

ipcs -ls

—— Semaphore Limits ——–
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

128개로 되어있을 건데, 변경 하도록 한다.

sysctl -w kernel.sem="250 32000 100 512"

ipcs -ls 

마지막으로 확인해본후에 다시 apache 를 재시작 한다.

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 항목은 *(으)로 표시합니다