Bug 160586 - newsyslog(8) can't properly rotate log files when there are no enough inodes
Summary: newsyslog(8) can't properly rotate log files when there are no enough inodes
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 8.2-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 13:00 UTC by Leonid Evdokimov
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Evdokimov 2011-09-09 13:00:18 UTC
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.
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:44 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped