Results 1 to 3 of 3

Thread: a way to clean /opt/zimbra/logger/db/data

  1. #1
    Join Date
    Feb 2006
    Posts
    23
    Rep Power
    9

    Default a way to clean /opt/zimbra/logger/db/data

    I am looking at my backups and see their growth reaching a pretty high number. I noticed a good amount of the growth is from the /opt/zimbra/logger/db/data directory.

    Is there a way to clean this up without breaking anything?

    Thanks

    Don Hickey

  2. #2
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    19

    Default

    In 4.0 we've corrected the cron jobs so that dir should get purged. Do you have 4.0 installed?
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    Join Date
    Sep 2008
    Posts
    1
    Rep Power
    7

    Default Running 5.0.1 and having problems with this directory.

    I'm running 5.0.1 and am seeing the size of this directory (/opt/zimbra/logger/db/data/) grow from 400M to 4G over the space of a day.

    crontab doesn't seem to contain any reference to this directory and the directory carries on growing past the point in time when the various cron jobs are sheduled to run. Crontab is as below. Is this as it should be?

    # ZIMBRASTART -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRAEND
    #
    # Log pruning
    #
    30 2 * * * find /opt/zimbra/log/ -type f -name \*.log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
    #
    # Status logging
    #
    */2 * * * * /opt/zimbra/libexec/zmstatuslog
    */10 * * * * /opt/zimbra/libexec/zmdisklog
    #
    # Backups
    #
    # BACKUP BEGIN
    0 1 * * 6 /opt/zimbra/bin/zmbackup -f -t /mnt/zimbra_backups -a all
    0 1 * * 0-5 /opt/zimbra/bin/zmbackup -i -t /mnt/zimbra_backups -a all
    0 0 * * * /opt/zimbra/bin/zmbackup -t /mnt/zimbra_backups -del 1m
    # BACKUP END
    #
    # crontab.ldap
    #
    #
    #
    # crontab.store
    #
    # Log pruning
    #
    30 2 * * * find /opt/zimbra/mailboxd/logs/ -type f -name \*log\* -mtime +8 -exec rm {} \; > /dev/null 2>&1
    #
    # Clean up the quarantine dir
    #
    0 1 * * * find /opt/zimbra/amavisd/quarantine -type f -mtime +7 -exec rm -f {} \; > /dev/null 2>&1
    #
    # Table maintenance
    #
    30 1 * * 7 /opt/zimbra/libexec/zmmaintaintables >> /dev/null 2>&1
    #
    # Report on any database inconsistencies
    #
    0 23 * * 7 /opt/zimbra/libexec/zmdbintegrityreport -m
    #
    # Monitor for multiple mysqld to prevent corruption
    #
    */5 * * * * /opt/zimbra/libexec/zmcheckduplicatemysqld -e > /dev/null 2>&1

    #
    # crontab.logger
    #
    # process logs
    #
    00,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmlogprocess > /tmp/logprocess.out 2>&1
    #
    # Graph generation
    #
    10 * * * * /opt/zimbra/libexec/zmgengraphs >> /tmp/gengraphs.out 2>&1
    #
    # Daily reports
    #
    10 1 * * * /opt/zimbra/libexec/zmdailyreport -m
    #
    # crontab.mta
    #
    #
    # Queue logging
    #
    0,10,20,30,40,50 * * * * /opt/zimbra/libexec/zmqueuelog
    #
    # Spam training
    #
    0 23 * * * /opt/zimbra/bin/zmtrainsa >> /opt/zimbra/log/spamtrain.log 2>&1
    #
    # Spam training cleanup
    #
    45 23 * * * /opt/zimbra/bin/zmtrainsa --cleanup >> /opt/zimbra/log/spamtrain.log 2>&1
    #
    # Dspam cleanup
    #
    #0 1 * * * find /opt/zimbra/dspam/var/dspam/data/z/i/zimbra/zimbra.sig/ -type f -name \*sig -mtime +7 -exec rm {} \; > /dev/null 2>&1
    #8 4 * * * /opt/zimbra/dspam/bin/dspam_logrotate -a 60 /opt/zimbra/dspam/var/dspam/system.log
    #8 8 * * * /opt/zimbra/dspam/bin/dspam_logrotate -a 60 /opt/zimbra/dspam/var/dspam/data/z/i/zimbra/zimbra.log
    #
    # Spam Bayes auto-expiry
    #
    20 23 * * * /opt/zimbra/libexec/sa-learn -p /opt/zimbra/conf/salocal.cf --dbpath /opt/zimbra/amavisd/.spamassassin --siteconfigpath /opt/zimbra/conf/spamassassin --force-expire --sync > /dev/null 2>&1
    #
    # Clean up amavisd/tmp
    #
    15 5,20 * * * find /opt/zimbra/amavisd/tmp -maxdepth 1 -type d -name 'amavis-*' -mtime +1 -exec rm -rf {} \; > /dev/null 2>&1
    # ZIMBRAEND -- DO NOT EDIT ANYTHING BETWEEN THIS LINE AND ZIMBRASTART

Similar Threads

  1. Clean Shutdown of Zimbra
    By swu in forum Administrators
    Replies: 1
    Last Post: 07-14-2007, 06:28 AM
  2. DNS set up for Zimbra
    By Shrinivas in forum Installation
    Replies: 8
    Last Post: 04-12-2007, 06:33 PM
  3. Clean install and keeping data
    By Dirk in forum Migration
    Replies: 6
    Last Post: 09-18-2006, 05:34 PM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Error Upgrading from M1
    By incarose in forum Installation
    Replies: 16
    Last Post: 11-15-2005, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •