| Summary: | Samba vfs plug-in log file in /var/log/samba/<logfile> getting overwritten after it reaches to maximum size | ||
|---|---|---|---|
| Product: | Red Hat Gluster Storage | Reporter: | Lalatendu Mohanty <lmohanty> |
| Component: | samba | Assignee: | Poornima G <pgurusid> |
| Status: | CLOSED NOTABUG | QA Contact: | Lalatendu Mohanty <lmohanty> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.1 | CC: | sdharane, spalai, vagarwal |
| Target Milestone: | --- | Keywords: | ZStream |
| Target Release: | RHGS 2.1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-16 08:40:12 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: | |
|
Description
Lalatendu Mohanty
2013-09-19 02:03:27 UTC
The logrotate policy ("max log size") specified in smb.conf applies to the log files: log.<client addr>, log.smbd
/var/log/samba/glusterfs-<volname>.log is not affected by the "max log size" entry in smb.conf and gluster also doesn't have any logrotate policy for /var/log/samba/glusterfs-<volname>.log.
But apart from "max log size" configuration, samba by default has a weekly logrotate policy, where all the files in /var/log/samba/* are rotated(moved) to /var/log/samba/old/*.
In this case, it could be that /var/log/samba/glusterfs-<volname>.log was moved to /var/log/samba/old/* as a part of samba weekly logrotate, and hence a 0 sized /var/log/samba/glusterfs-<volname>.log was created.
Agree with Poornima's findings, hence closing the bug as not a defect. |