Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-2010, 05:55 PM
Junior Member
 
Posts: 7
Default Disk Space being eaten up

I have been running Zimbra 5.0.11 for about a year and a half for an organization with about 150 users. I have noticed that my disk space is slowly getting used up. I don't think it is user mail. I was wondering if there are some log files or some other files that I should be cleaning up.
Reply With Quote
  #2 (permalink)  
Old 10-20-2010, 11:42 PM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by Paul_Pittsburgh View Post
I have been running Zimbra 5.0.11 for about a year and a half for an organization with about 150 users. I have noticed that my disk space is slowly getting used up. I don't think it is user mail. I was wondering if there are some log files or some other files that I should be cleaning up.
Have you looked through you drives to see what's actually using the space?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-21-2010, 05:49 AM
Junior Member
 
Posts: 7
Default

No, unfortunately, I don’t have any historical data on the directories to see what has grown. When I took over this server, we were using about 17 percent of disk space and it has grown to 25. But I have never done much maintenance on the unix side, except for the ubuntu updates. So I guess my question is really if there are error log files, temp files, that kind of thing that I should be cleaning out, or other maintenance on the unix side that I should be doing.
Reply With Quote
  #4 (permalink)  
Old 10-21-2010, 06:34 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

Quote:
Originally Posted by Paul_Pittsburgh View Post
No, unfortunately, I don’t have any historical data on the directories to see what has grown.
I was actually thinking more along the lines of checking your whole filesystem for large files (it may not be zimbra that's the problem), how about starting with the following:

Code:
df -h
find / -size +10000k -print0 | xargs -0 ls -l
The second command may take a while to run and you may want to change the size value that it lists (it's currently 10MB).
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 10-21-2010, 06:34 AM
raj raj is offline
Moderator
 
Posts: 768
Default

in 5.x version some times logger eats up lots of space
Quote:
du -sh /opt/zimbra/logger
following gives a rough estimate of your email store usage
Quote:
du -sh /opt/zimbra/store

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #6 (permalink)  
Old 10-21-2010, 08:13 AM
Junior Member
 
Posts: 7
Default

Thanks, I'll try those solutions and see what I find. Outside of the unix updates are there any other unix maintenance items that I should be performing on a monthly, weekly, daily basis to keep the box running?
Reply With Quote
  #7 (permalink)  
Old 10-24-2010, 06:51 PM
Junior Member
 
Posts: 7
Default Ok to remove these files

These are some of the large files that I found, is it ok to remove these?

11G opt/zimbra/logger/db/data/zimbra_logger/amavis.MYD
1.7G opt/zimbra/logger/db/data/zimbra_logger/amavis.MYI
57G opt/zimbra/logger/db/data/zimbra_logger/mta.MYD
1.8G opt/zimbra/logger/db/data/zimbra_logger/raw_logs.MYD
Reply With Quote
  #8 (permalink)  
Old 10-24-2010, 07:03 PM
raj raj is offline
Moderator
 
Posts: 768
Default

Hi..as suspected logger is the culprit here.
you cannnot just delete those files as is ..that will crash the logger service and will be hard to fix or reset.
please backup your system before doingg the following logger reset.
Open Source Edition Backup Procedure - Zimbra :: Wiki

RESET ZIMBRA LOGGER
when you do the following it may get stuck for long time on "rm -rf /opt/zimbra/logger/db/data/*" line coz you have huge filesizes.

Quote:
su - zimbra
logmysql.server stop
logout
rm -rf /opt/zimbra/logger/db/data/*
chown zimbra:zimbra /opt/zimbra/logger/db/data
chmod 775 /opt/zimbra/logger/db/data
cd /opt/zimbra/libexec
./zmloggerinit
./zmfixperms --verbose
su - zimbra
zmlogswatchctl start
logout
Also once you have everything cleaned up in logger, its strongly suggested that you upgarde to new version.
soon you wont be able to upgarded from that old version and you will have to hunt down the downloads

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #9 (permalink)  
Old 10-25-2010, 06:27 AM
Junior Member
 
Posts: 7
Default Thanks

Thanks, I will try this and let you know how it works. Also, I am planning to upgrade, that is what started me looking closely at getting all the mailboxes and data cleaned up for an upgrade.
Reply With Quote
  #10 (permalink)  
Old 10-27-2010, 06:24 AM
Junior Member
 
Posts: 7
Default Logger did not come back

Hi, I ran into some errors this morning when running this procedure and I am hoping you can help me with them. The Zimbra mail is running, it looks like the logger never came back.

Here is what I did and the errors I was encountering:

When I ran the ./zmloggerinit command I received the following output.

paul@mydomain.com:/opt/zimbra/libexec$ sudo ./zmloggerinit
* Creating required directories
* Creating database in /opt/zimbra/logger/db/data
* Starting logger_mysql server
* Loading schema /opt/zimbra/db/loggerdb.sql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
* Setting random password for mysql root user in zimbra local config
* Setting random password for mysql zimbra user in zimbra local config
* Changing mysql root user password
/opt/zimbra/logger/mysql/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
* Changing mysql zimbra user password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
**** PASSWORD CHANGE FAILED


I continued with the rest of the steps in the script.

After restarting Zimbra I got these messages

zmcontrol start
Host mydomain.com.
Starting ldap...Done.
Starting logger...Done.
Starting mailbox...Done.
Starting antispam...Done.
Starting antivirus...FAILED
Starting zmmtaconfig...zmmtaconfig is already running.
Starting amavisd...amavisd is already running.
Starting clamd...failed.


Starting snmp...Done.
Starting spell...Done.
Starting mta...Done.
Starting stats...Done.


I stopped Zimbra and started it again to the same set of errors.
I stopped Zimbra and rebooted my server hoping that would clean things up.

That fixed the clamd failed

When I ran a zmcontrol status I got this.

zmcontrol status
Host mydomain.com.
antispam Running
antivirus Stopped
zmclamdctl is not running
ldap Running
logger Stopped
logmysql.server is not running
zmlogswatchctl is not running
mailbox Running
mta Running
snmp Running
spell Running
stats Running


I logged into the admin console and received this error message box:

Zimbra Administration

Server error encountered.

And in the server status screen this error was showing:

Server status data is not available. To see the server status, logger service must be installed.

I checked around and mail did seam to be working.

I went back to the unix level and thinking that the logger did not start I ran the following command

logmysql.server start

and I got this response.

mysqld_safe already running with pid 6455

I looked to see what this was and got this:

paul@mydomain.com:~$ ps -ef | grep mysqld_safe
zimbra 6343 1 0 06:18 ? 00:00:00 /bin/sh /opt/zimbra/logger/mysql/bin/mysqld_safe --defaults-file=/opt/zimbra/conf/my.logger.cnf --external-locking --log-error=/opt/zimbra/log/logger_mysql_error.log --ledir=/opt/zimbra/logger/mysql/libexec
zimbra 6486 1 0 06:18 ? 00:00:00 /bin/sh /opt/zimbra/mysql/bin/mysqld_safe --defaults-file=/opt/zimbra/conf/my.cnf --external-locking --log-error=/opt/zimbra/log/mysql_error.log --ledir=/opt/zimbra/mysql/libexec
paul 29699 28959 0 06:48 pts/1 00:00:00 grep mysqld_safe

Since the mail appears to be running I decided that I didn’t want to go any further without checking with some experts. Any thoughts on how to proceed?
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.