Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CAD30177DC for ; Mon, 30 Mar 2015 08:29:59 +0000 (UTC) Received: (qmail 481 invoked by uid 500); 30 Mar 2015 08:29:54 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 441 invoked by uid 500); 30 Mar 2015 08:29:54 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 431 invoked by uid 500); 30 Mar 2015 08:29:54 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 428 invoked by uid 99); 30 Mar 2015 08:29:54 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 08:29:54 +0000 Date: Mon, 30 Mar 2015 08:29:54 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-6885) system-vm rsyslog logs rotation does not work properly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-6885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14386388#comment-14386388 ] ASF subversion and git services commented on CLOUDSTACK-6885: ------------------------------------------------------------- Commit d0e65d7c3429d3a582632005d526c668f071c3fe in cloudstack's branch refs/heads/master from [~rohit.yadav@shapeblue.com] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=d0e65d7 ] systemvmtemplate: use separate partition for /var/log /var/log fills up /var and fails operation of normal services. This fix restricts /var/log to 100-200M. The fix for CLOUDSTACK-6885 tries to make sure we don't keep a lot of logs. Signed-off-by: Rohit Yadav > system-vm rsyslog logs rotation does not work properly > ------------------------------------------------------ > > Key: CLOUDSTACK-6885 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6885 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: SystemVM > Affects Versions: 4.3.0 > Reporter: JF Vincent > Assignee: Abhinandan Prateek > Priority: Critical > Fix For: 4.6.0, 4.5.1 > > > rsyslog reload synthax is bad in the logrotate.d/rsyslog setting resulting in potential FULL on /var/ and critical failures on the VR. > See below please : > root@r-1346-SANDBOX:/var/log# more /etc/logrotate.d/rsyslog > /var/log/syslog > { > rotate 7 > daily > missingok > notifempty > delaycompress > compress > postrotate > invoke-rc.d rsyslog reload > /dev/null > endscript > } > /var/log/mail.info > /var/log/mail.warn > /var/log/mail.err > /var/log/mail.log > /var/log/daemon.log > /var/log/kern.log > /var/log/auth.log > /var/log/user.log > /var/log/lpr.log > /var/log/cron.log > /var/log/debug > /var/log/messages > { > rotate 10 > daily > missingok > notifempty > compress > delaycompress > sharedscripts > postrotate > invoke-rc.d rsyslog reload > /dev/null > endscript > } > root@r-1346-SANDBOX:/var/log# /etc/init.d/rsyslog reload > Usage: /etc/init.d/rsyslog {start|stop|rotate|restart|force-reload|status} > root@r-1346-SANDBOX:/var/log# /etc/init.d/rsyslog rotate > [ ok ] Closing open files: rsyslogd. > "reload" argument in the invoke-rc.d line shoud be replaced by "rotate" argument. -- This message was sent by Atlassian JIRA (v6.3.4#6332)