[mythtv-users] Logging problems (filled 1G partition)

Jason Cooper jcooper at nevernight.net
Sat Jul 5 13:48:31 EDT 2003


Ian Forde (ian at duckland.org) wrote:
> On Sat, 2003-07-05 at 08:07, Jason Cooper wrote:
> > So my question is this: Has someone considered putting in some logging
> > protections similar to the syslog variants?  Or perhaps writing
> > straight to syslog?  'Last message repeated 41 times' Would have saved
> > quite a bit of space.
> > 
> > And the non-critical question, since I will no longer leave my frontend
> > on pause, how do I trim down the logging on mysql?  I'm totally new to
> > it and am not even sure what I'm looking at in the log (.err is really
> > small, so that's good) So I don't want to trim out critical info.  Is
> > there a flag, or config option to toggle so when I don't fill the
> > partition in a month?  I cycle the logs once a month.
> 
> If you're using Red Hat, you can always use the "size=" parameter in the
> logrorate scripts.  As an example (of the top of my head - UNTESTED!)
> you can have /etc/logrotate.d/mythlog
> 
> /var/log/mythth/mythbackend.log {
>    daily
>    create 0644 mythtv mythtv
>    rotate 5
>    size 100k
> }
> 
> And since logrotate runs daily by default, you can put a symlink in the
> to /etc/cron.daily/logrotate into /etc/cron.hourly/

Thanks for the info, I'll have to see how Gentoo does things, and then
migrate it to fcron... Yeah, I know, I get what I ask for being off the
beaten path :^)  Gentoo isn't really off the beaten path anymore is it?

Although my one question is still up for grabs, how do I reduce the
amount of logging mysql generates?  I think myth is fine as long as I
don't leave it on pause for half a day (although that should probably be
reported as a bug).

Cooper.


More information about the mythtv-users mailing list