Bug 1599808 - Change default logrotate settings in RHGS
Summary: Change default logrotate settings in RHGS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: rhgs-3.3
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: RHGS 3.4.z Batch Update 2
Assignee: Amar Tumballi
QA Contact: Bala Konda Reddy M
URL:
Whiteboard:
: 1466455 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-10 15:48 UTC by Sahina Bose
Modified: 2018-12-27 13:41 UTC (History)
11 users (show)

Fixed In Version: glusterfs-3.12.2-27
Doc Type: Enhancement
Doc Text:
With this update, gluster logrotate config considers the size of the log file, so that gluster logs does not grow to consume all the storage. Hence, the gluster log file size will be predictable.
Clone Of:
Environment:
Last Closed: 2018-12-17 17:07:02 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3827 0 None None None 2018-12-17 17:07:17 UTC

Description Sahina Bose 2018-07-10 15:48:12 UTC
Description of problem:

Currently gluster logs are rotated every week and stored for 52 weeks - the minimum storage capacity requirement for /var/log is high with these default settings 

Can we change this to rotate based on size and keep "x" number of history logs per log? 

Version-Release number of selected component (if applicable):


How reproducible:
NA


Additional info:
the 50-100GB requirement for /var/log is very heavy for deployments like RHHI.

Comment 4 Amar Tumballi 2018-09-17 06:33:27 UTC
upstream patch: https://review.gluster.org/21187

This can be fixed as a separate 'installation' patch in RHHI.. or as a Batch Update, if critical. Unless marked blocker, this may not make it to downstream yet.

Comment 10 Ravishankar N 2018-11-19 09:51:02 UTC
*** Bug 1466455 has been marked as a duplicate of this bug. ***

Comment 12 Anjana KD 2018-12-04 10:36:24 UTC
Updated the doc text. kindly review for technical Accuracy.

Comment 15 Amar Tumballi 2018-12-13 04:51:13 UTC
What is the version of "logrotate --version"

Comment 16 Amar Tumballi 2018-12-13 05:04:09 UTC
Also note that, the execution of logrotate is as per crontab or other setup, and it should be invoked by a setup. I suspect because of the option 'weekly', it is setup to check once in a week. We need to see if adding logrotate script to hourly makes any difference.

Comment 19 errata-xmlrpc 2018-12-17 17:07:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3827


Note You need to log in before you can comment on or make changes to this bug.