Skip to content

Commit 636efa2

Browse files
committed
CLOUDSTACK-9155 make sure logrotate is effective
Many processes on the VRs log to cloud.log. When logrotate kicks in, the file is rotated but the scripts still write to the old inode (cloud.log.1 after rotate). Tis quickly fills up the tiny log partition. Using 'copytruncate' is a tradeoff, there is a slight change of missing a log entry, but in the old situation we were missing all of them after logrotate.
1 parent 1597a4c commit 636efa2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • systemvm/patches/debian/config/etc/logrotate.d

systemvm/patches/debian/config/etc/logrotate.d/cloud

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@
2222
notifempty
2323
compress
2424
delaycompress
25+
# CLOUDSTACK-9155: We cannot tell the processes that are writing to this
26+
# file to use the new inode, so instead we copy the original file, truncate
27+
# it and keep the same inode.
28+
copytruncate
2529
}

0 commit comments

Comments
 (0)