RedHatE4 linux 不能记录日志文件问题?求助
大家好,请教一个linux 日志文件不能记录的问题,也就是从10月9号以后,系统所有的日志文件都没有新的记录了。处理过程如下:
一,9号那天,我查看了日志文件还是正常的,我看 / 目录下剩余空间不多了,我就想到将/var/log 目录移到/home (因这是一个单独分区,有很多空间)并修改了/etc/syslog.conf 文件相应设置。重启了 syslogd 服务。就不能记录log了,
见不能记录日志,我就将刚才修改的修改回原始壮态,并重启了syslogd服务,可log还是没有新的记录。请大伙帮忙分析一下。是什么原因。
以下是现在文件状态,也是在我修改前能正常使用的壮态:
syslog.conf文件:
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
以下是/var/log目录
总用量 723732
-rw-r----- 1 root root 5557 10月 9 08:56 acpid
-rw------- 1 root root 13388 5月 28 00:51 anaconda.log
-rw------- 1 root root 28505 5月 28 00:51 anaconda.syslog
-rw------- 1 root root 46187 5月 28 00:51 anaconda.xlog
-rw-rw---- 1 uucp antivir 630142 7月 4 08:45 avmailgate.log
-rw-r--r-- 1 root root 1636 10月 11 12:45 avupdate.log
-rw-r--r-- 1 root root 63369 9月 26 14:40 avupdater.log
-rw------- 1 root root 0 10月 11 04:02 boot.log
-rw------- 1 root root 173 10月 6 16:09 boot.log.1
-rw------- 1 root root 290 10月 4 04:02 boot.log.2
-rw------- 1 root root 834 9月 27 04:04 boot.log.3
-rw------- 1 root root 325 9月 20 04:04 boot.log.4
-rw------- 1 root root 0 10月 11 04:02 cron
-rw------- 1 root root 7720 10月 6 16:01 cron.1
-rw------- 1 root root 21864 10月 4 04:02 cron.2
-rw------- 1 root root 21551 9月 27 04:04 cron.3
-rw------- 1 root root 21553 9月 20 04:04 cron.4
drwxr-xr-x 2 lp sys 4096 10月 11 04:02 cups
-rw-r--r-- 1 root root 17184 10月 9 08:56 dmesg
drwx------ 2 root root 4096 10月 11 04:02 httpd
drwxr-xr-x 2 htt htt 4096 2004-12-01 iiim
-r-------- 1 root root 19136220 10月 11 13:32 lastlog
drwxr-xr-x 2 root root 4096 5月 28 01:17 mail
-rw-r--r-- 1 root root 0 10月 11 10:42 maillog
-rw------- 1 root root 50070002 10月 6 16:09 maillog.1
-rw------- 1 root root 184185953 10月 4 04:02 maillog.2
-rw------- 1 root root 388902231 9月 27 04:04 maillog.3
-rw------- 1 root root 0 10月 11 04:02 messages
-rw------- 1 root root 896606 10月 6 16:09 messages.1
-rw------- 1 root root 3378076 10月 4 04:02 messages.2
-rw------- 1 root root 7071256 9月 27 04:04 messages.3
-rw------- 1 root root 8317366 9月 20 04:04 messages.4
-rw-r----- 1 mysql mysql 22583 10月 9 08:56 mysqld.log
drwx------ 2 root root 4096 2004-11-02 ppp
-rw-r--r-- 1 root root 17395 10月 5 04:02 prelink.log
-rw-r--r-- 1 root root 16211 10月 11 04:02 rpmpkgs
-rw-r--r-- 1 root root 16211 10月 10 04:02 rpmpkgs.1
-rw-r--r-- 1 root root 16211 10月 3 04:02 rpmpkgs.2
-rw-r--r-- 1 root root 16211 9月 26 04:04 rpmpkgs.3
-rw-r--r-- 1 root root 16211 9月 19 04:05 rpmpkgs.4
-rw------- 1 root root 0 10月 11 04:02 secure
-rw------- 1 root root 1092 10月 6 15:38 secure.1
-rw------- 1 root root 1460 9月 29 17:17 secure.2
-rw------- 1 root root 2548 9月 26 20:03 secure.3
-rw------- 1 root root 1025 9月 19 13:38 secure.4
-rw-r--r-- 1 root root 94950776 10月 11 13:32 slockd.log
-rw------- 1 root root 0 10月 11 04:02 spooler
-rw------- 1 root root 0 10月 4 04:02 spooler.1
-rw------- 1 root root 0 9月 27 04:04 spooler.2
-rw------- 1 root root 0 9月 20 04:04 spooler.3
-rw------- 1 root root 0 9月 13 04:04 spooler.4
drwxr-x--- 2 squid squid 4096 2004-10-19 squid
drwxr-xr-x 2 root root 4096 2004-10-05 vbox
-rw------- 1 root root 1056909 10月 8 23:47 vsftpd.log
-rw-rw-r-- 1 root utmp 70272 10月 11 13:32 wtmp
-rw-rw-r-- 1 root utmp 54912 9月 29 17:33 wtmp.1