Défi: inconsistence fuser / proc ?

Pàgina inicial

Reply to this message
Autor: Yves Martin
Data:  
A: guilde
Assumpte: Défi: inconsistence fuser / proc ?

Bonjour,

J'ai quelque chose d'étrange sur une Debian Sarge en kernel
2.4.27-2-686-smp

Il semblerait qu'un problème soit survenu lors de la rotation des logs.
Un kill -HUP sur le processus 1127 / syslog a résolu la situation

Merci pour vos lanternes

ibiza:~# ls -ali /var/log/auth.log*
829128 -rw-r-----  1 root adm         0 Dec 20 03:06 /var/log/auth.log
829065 -rw-r-----  1 root adm 154187727 Dec 22 17:07 /var/log/auth.log.0
829173 -rw-r-----  1 root adm   1885108 Dec 19 03:03 /var/log/auth.log.1.gz
829096 -rw-r-----  1 root adm   1876059 Dec 18 03:03 /var/log/auth.log.2.gz
829164 -rw-r-----  1 root adm   1813064 Dec 17 03:08 /var/log/auth.log.3.gz
829150 -rw-r-----  1 root adm   1770915 Dec 16 03:13 /var/log/auth.log.4.gz
829136 -rw-r-----  1 root adm   1687511 Dec 15 03:05 /var/log/auth.log.5.gz
829093 -rw-r-----  1 root adm   1857784 Dec 14 03:11 /var/log/auth.log.6.gz
ibiza:~# ls -al /proc/1127/fd
total 0
dr-x------  2 root root  0 Dec 22 17:07 .
dr-xr-xr-x  3 root root  0 Dec 22 17:07 ..
lrwx------  1 root root 64 Dec 22 17:07 0 -> socket:[2064]
l-wx------  1 root root 64 Dec 22 17:07 1 -> /var/log/auth.log
l-wx------  1 root root 64 Dec 22 17:07 10 -> /var/log/mail.warn
l-wx------  1 root root 64 Dec 22 17:07 11 -> /var/log/mail.err
l-wx------  1 root root 64 Dec 22 17:07 12 -> /var/log/news/news.crit
l-wx------  1 root root 64 Dec 22 17:07 13 -> /var/log/news/news.err
l-wx------  1 root root 64 Dec 22 17:07 14 -> /var/log/news/news.notice
l-wx------  1 root root 64 Dec 22 17:07 15 -> /var/log/debug
l-wx------  1 root root 64 Dec 22 17:07 16 -> /var/log/messages
lrwx------  1 root root 64 Dec 22 17:07 17 -> /dev/xconsole
l-wx------  1 root root 64 Dec 22 17:07 2 -> /var/log/syslog
l-wx------  1 root root 64 Dec 22 17:07 3 -> /var/log/daemon.log
l-wx------  1 root root 64 Dec 22 17:07 4 -> /var/log/kern.log
l-wx------  1 root root 64 Dec 22 17:07 5 -> /var/log/lpr.log
l-wx------  1 root root 64 Dec 22 17:07 6 -> /var/log/mail.log
l-wx------  1 root root 64 Dec 22 17:07 7 -> /var/log/user.log
l-wx------  1 root root 64 Dec 22 17:07 8 -> /var/log/uucp.log
l-wx------  1 root root 64 Dec 22 17:07 9 -> /var/log/mail.info
ibiza:~# fuser /var/log/auth.log.0
/var/log/auth.log.0:  1127


--
Yves Martin