Date: Fri, 9 Sep 2011 11:50:56 GMT From: Leonid Evdokimov <leon@darkk.net.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/160586: newsyslog can't properly rotate log files when there are no enough inodes Message-ID: <201109091150.p89BouuR070940@red.freebsd.org> Resent-Message-ID: <201109091200.p89C0I0q091230@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 160586 >Category: misc >Synopsis: newsyslog can't properly rotate log files when there are no enough inodes >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 09 12:00:18 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Leonid Evdokimov >Release: FreeBSD 8.2-STABLE #0 r221983M >Organization: Yandex >Environment: FreeBSD daisy2.yandex.ru 8.2-STABLE FreeBSD 8.2-STABLE #0 r221983M: Mon Jul 11 18:02:06 MSD 2011 root@distillatory.yandex.ru:/place/mkdump_workdir/obj/place/GIT-repos/FreeBSD-8-stable/sys/stable8-amd64-dtrace amd64 >Description: All rotated files were collapsed into one inode. That's a bug. A serious one. [darkk@daisy2 /var/log]$ ls -li /var/log/messages* 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.0 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.1 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.2 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.3 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.4 5822 -rw-r--r-- 7 root wheel 8839522 Sep 9 15:49 /var/log/messages.5 [darkk@daisy2 /var/log]$ head -1 /var/log/messages Sep 8 16:00:00 daisy2 newsyslog[41658]: logfile turned over due to size>500K >How-To-Repeat: Fill /var partition with small files to use all inodes and try to rotate logs afterwards. >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109091150.p89BouuR070940>