Bug 1175292

Summary: fixing olddir man entry for logrotate to correctly state supported use cases
Product: Red Hat Enterprise Linux 7 Reporter: Simon Reber <sreber>
Component: logrotateAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: Tomas Dolezal <todoleza>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: jscotka, todoleza
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: logrotate-3.8.6-5.el7 Doc Type: Bug Fix
Doc Text:
The logrotate(8) manual page entry for the "olddir" directive did not mention the influence of "copy" and "copytruncate" on the "olddir" directive. The missing piece of information has been added, and users are now informed that "olddir" can be used when rotating files to different file system when "copy" or "copytruncate" directives are used.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 07:04:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1205796    

Description Simon Reber 2014-12-17 13:09:57 UTC
Description of problem:

Current man entry for `olddir` is as following:
"olddir <directory>
Logs are moved into directory for rotation. The directory must be on the same physical device as the log file being rotated, and is assumed to be relative to the directory holding the log file unless an  absolute path name is specified. When this option is used all old versions of the log end up in directory.  This option may be overridden by the noolddir option."


In fact, if `olddir` is being used with copytruncate/copy/renamecopy, it also does support logfile rotation to different devices. This should be fixed accordingly to avoid confusion on customer site, when referring to man pages


Version-Release number of selected component (if applicable):
 - logrotate-3.8.6-4.el7.x86_64

How reproducible:
 - Always

Steps to Reproduce:
1. yum install logrotate-3.8.6-4.el7.x86_64
2. man logrotate
3. Review entry for `olddir` stanza

Actual results:

"olddir <directory>
Logs are moved into directory for rotation. The directory must be on the same physical device as the log file being rotated, and is assumed to be relative to the directory holding the log file unless an  absolute path name is specified. When this option is used all old versions of the log end up in directory.  This option may be overridden by the noolddir option."


Expected results:

It should be stated, that `olddir` does support different devices when being used with copytruncate/copy/renamecopy


Additional info:

Comment 6 errata-xmlrpc 2015-11-19 07:04:19 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://rhn.redhat.com/errata/RHBA-2015-2174.html