Bug 75364
| Summary: | Not sure if this is LOGROTATE or MAILMAN bug (or even Sendmail) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | Aaron Freed <vmorgo> | ||||
| Component: | logrotate | Assignee: | Elliot Lee <sopwith> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Jay Turner <jturner> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 7.3 | CC: | pmoore, srevivo | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | i386 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2002-10-30 15:38:58 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Aaron Freed
2002-10-07 18:19:27 UTC
Created attachment 79229 [details]
Directory listing of "stuffed" /var/log/mailman
This is a bug with the confiog files in redhat - you need to edit /etc/logrotate.d/mailman from "/var/log/mailman/*" to explicitly name the files you want to rotate eg "/var/log/mailman/error" I had 350,000 logfiles in mailman this morning - I've been killing off logrotate lately as it's been hogging all the CPU , now I know why. Check your mgetty setup if your using it too - it has a wildcard in it as well. I've diagnosed this problem on at least 2 RH 7.3 systems (and I assume it occurs on all of them). The system eventually runs out of inodes on /var and chews up huge amounts of CPU when doing log rotation. Processes such as dhcpd and syslog that both periodically write to /var fail since they can't create a file. Inodes increase logarithmically, which explains why my RH 7.3 have/will experience this problem at roughly the same time. Here's a command line for removing the files.
I'm sure there is more than one way to do it.
find /var/log/mailman -name error\* -exec /bin/rm {} \;
This works on the bash command line - your shell may require different
quote/escape chars.
|