Change in vdsm[master]: Copy truncate vdsm-reg.log

juan.hernandez at redhat.com juan.hernandez at redhat.com
Tue Jan 22 15:17:57 UTC 2013


Juan Hernandez has uploaded a new change for review.

Change subject: Copy truncate vdsm-reg.log
......................................................................

Copy truncate vdsm-reg.log

When the vdsm-reg program doesn't stop (if it fails to contact the
engine, for example) it will continuously generate messages that can
flood the log. Moving the log file is not enough because the program
keeps it open, so the space is not freed. As the program opens the file
for appending it is safe to copy and truncate the file.

Change-Id: I92bea487a70fa2f39a88be417faa4efd7bb99f08
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M vdsm_reg/vdsm-reg-logrotate.conf
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/82/11282/1

diff --git a/vdsm_reg/vdsm-reg-logrotate.conf b/vdsm_reg/vdsm-reg-logrotate.conf
index d84bf15..579096a 100644
--- a/vdsm_reg/vdsm-reg-logrotate.conf
+++ b/vdsm_reg/vdsm-reg-logrotate.conf
@@ -5,6 +5,7 @@
 }
 
 /var/log/vdsm-reg/vdsm-reg.log {
+    copytruncate
     rotate 3
     missingok
     size 10M


--
To view, visit http://gerrit.ovirt.org/11282
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92bea487a70fa2f39a88be417faa4efd7bb99f08
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>


More information about the vdsm-patches mailing list