messages 로그가 쌓이지 않네요.
글쓴이: artop0420 / 작성시간: 목, 2011/11/17 - 11:31오전
VM에서 호스트 전용으로 두고 테스트 중 리눅스(Centos 5.7) 가 하나 있습니다.
한동안 안쳐다보고 있다가 오늘에서야 발견된 문제점이 있었는데
/var/log 에 messages, secure, maillog 모두 크기가 0으로 바뀌어 있고,
쌓이질 않네요....
기존에 쌓여있던 로그는 messages-20111107 같이 원래 파일명 뒤에 날짜가 기록되어 있고요.
해당 날짜를 보니, logrotate때문이라는 걸 알것 같은데,
재부팅까지 했는데 왜 로그가 안쌓일까요?
[root@abc ~]# ls -l /var/log/messages*
-rw-r--r--. 1 root root 0 2011-11-17 11:11 /var/log/messages
-rw-r--r--. 1 root root 0 2011-11-17 10:55 /var/log/messages-201111
-rw-------. 1 root root 278395 2011-11-07 14:11 /var/log/messages-20111107
-rw-------. 1 root root 419111 2011-11-11 09:49 /var/log/messages-20111113
[root@abc ~]# cat /etc/logrotate.d/syslog
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
[root@abc ~]# cat /etc/logrotate.conf
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# use date as a suffix of the rotated file
dateext
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp and btmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
minsize 1M
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0600 root utmp
rotate 1
}
# system-specific logs may be also be configured here.Forums:


디스크 공간은 여유가 있으신가요?
디스크 공간은 여유가 있으신가요?
넵..
넵... 디스크 용량 모두 넉넉...하게 있습니다.
--- 나는요? ---
리눅스와 솔라리스 그리고 윈도우의 껍데기만 맛보고 있습니다.
크론탭에 뭐 등록 되 있는건 아닌가요?
크론탭에 뭐 등록 되 있는건 아닌가요?
크론탭에는
암것도 없네요...
--- 나는요? ---
리눅스와 솔라리스 그리고 윈도우의 껍데기만 맛보고 있습니다.