Bug 1272236
Summary: | Logrotate does not support RO root anymore. The state file needs to move from /var/lib/logrotate.status to /var/lib/logrotate/status and rwtab entry should be changed to "dirs /var/lib/logrotate". | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Thomas Gardner <thgardne> |
Component: | logrotate | Assignee: | Kamil Dudka <kdudka> |
Status: | CLOSED ERRATA | QA Contact: | Vaclav Danek <vdanek> |
Severity: | high | Docs Contact: | Maxim Svistunov <msvistun> |
Priority: | high | ||
Version: | 7.3 | CC: | dougsland, jkaluza, jorton, jscotka, kdudka, mchhayani, mjankula, mmalik, msvistun, vdanek, xnie |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | logrotate-3.8.6-12.el7 | Doc Type: | Release Note |
Doc Text: |
The *logrotate* utility now saves status to the `/var/lib/logrotate/` directory
Previously, the *logrotate* utility saved status to the `/var/lib/logrotate.status` file. Consequently, *logrotate* did not work on systems where `/var/lib` was a read-only file system. With this update, the status file has been moved to the new `/var/lib/logrotate/` directory, which can be mounted with write permissions. As a result, *logrotate* now works on systems where `/var/lib` is a read-only file system.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-04 08:25:56 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: | 1127415, 1355632 | ||
Bug Blocks: | 1203710, 1289025, 1295829, 1313485 |
Description
Thomas Gardner
2015-10-15 20:04:03 UTC
This is already done in Fedora and could be backported to rhel7. The package should own the directory in which logrotate.status is located: # rpm -qf /var/lib/logrotate/ file /var/lib/logrotate is not owned by any package # rpm -qf /var/lib/logrotate/logrotate.status logrotate-3.8.6-11.el7.x86_64 # (In reply to Milos Malik from comment #7) > The package should own the directory in which logrotate.status is located: > > # rpm -qf /var/lib/logrotate/ > file /var/lib/logrotate is not owned by any package > # rpm -qf /var/lib/logrotate/logrotate.status > logrotate-3.8.6-11.el7.x86_64 > # fixed in logrotate-3.9.2-4.fc25 *** Bug 1325458 has been marked as a duplicate of this bug. *** *** Bug 1383655 has been marked as a duplicate of this bug. *** 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/RHEA-2016-2545.html The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |