| Summary: | [vdsm][logs]vdsm keeps rotating the logs even though no new logs are added | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Moran Goldboim <mgoldboi> |
| Component: | vdsm | Assignee: | Yotam Oron <yoron> |
| Status: | CLOSED WORKSFORME | QA Contact: | Moran Goldboim <mgoldboi> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.3 | CC: | abaron, bazulay, danken, iheim, ykaul |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-04 12:58:50 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Moran Goldboim
2011-07-24 15:06:31 UTC
http://gerrit.usersys.redhat.com/#change,743 Logs are rotated on an hourly basis, regardless of the log size (they are also rotated when the file exceeds a certain size). I added minsize to the logrotate conf file, so log files under a certain size (15M) are not rotated. Moran, What do you mean by 'vdsm become non-operational' ? Is it still running ? Are you SURE that no logs are written, since in the ls output you attached, it seems like the logs are not zero-sized. (In reply to comment #3) > Moran, > > What do you mean by 'vdsm become non-operational' ? > Is it still running ? Are you SURE that no logs are written, since in the ls > output you attached, it seems like the logs are not zero-sized. from what i saw in this example there are 2 problems: -vdsm log is rotating every hour - which means we are limited by time - 100h i would prefer a rotate based on min size (can be preformed each hour) -second problem is that when vdsm was non-operational (on rhevm side)- logs were keeping rotating while vdsm.log file wasn't - need to check and see what is the status regarding it. It seems like the minsize solution is the right one for the first issue: https://bugzilla.redhat.com/show_bug.cgi?id=173088 This is not my understanding of logrotate(1) man page. But seeing is believing: have you reproduced this from the command line? When I run logrotate /etc/logrotate.d/vdsm short logs are NOT rotated. I checked again, and Dan is right - logs are not rotated when smaller then 15M. The minsize indeed has no effect in this case, since logrotate finest time granularity is a day, hence the minsize has not effect here. I can add a notifempty keyword to make sure that empty log file aren't rotated, but need to see a reproduction of this bug. (In reply to comment #7) > I checked again, and Dan is right - logs are not rotated when smaller then 15M. > The minsize indeed has no effect in this case, since logrotate finest time > granularity is a day, hence the minsize has not effect here. > I can add a notifempty keyword to make sure that empty log file aren't rotated, > but need to see a reproduction of this bug. Yotam, have you tried to reproduce? - it's suppose to be very easy (just let vdsm run - not connected to rhevm). if it doesn't reproduced to you please let me know. Moran, I had a vdsm running on a server for more than a day with no log rotation problems. I had a server running for a few days without logs rotating. I spoke with Moran and he indicated he had also a server running for a few days without reproduction. Closing as WORKSFORME. |