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-26-2010, 04:48 PM
Advanced Member
 
Posts: 189
Default Find Biggest Files

I know this kinda does not have anything to do with except, the zimbra folder is 8.6GB. The 2 users on this server have less than 1GB in email. So my question is how do i find out the biggest files in the zimbra folder? I remeber back some time ago, the nginx log file was 5.xGB in size. Now i can not remember where this file is located. Anybody know? Here is the link to that thread:
Upgrade Error

I found a du command that is suppose to tell me the 10 biggest files but it only tells me the total size of said folder:
du -ks /var | sort -n -r | head -n 10
and here is the link to that:
How do I find the largest top 10 files and directories on a Linux / UNIX / BSD filesystem?
Anyway, can someone tell me how to find the files that are eating up space?
Reply With Quote
  #2 (permalink)  
Old 10-26-2010, 05:46 PM
raj raj is offline
Moderator
 
Posts: 768
Default

whats the output of
Quote:
du -sh /opt/zimbra/logger
Quote:
du -sh /opt/zimbra/store
Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #3 (permalink)  
Old 10-26-2010, 05:54 PM
Advanced Member
 
Posts: 189
Default

du -sh /opt/zimbra/logger
1.1G /opt/zimbra/logger

and

du -sh /opt/zimbra/store
3.5G /opt/zimbra/store
Reply With Quote
  #4 (permalink)  
Old 10-26-2010, 06:21 PM
raj raj is offline
Moderator
 
Posts: 768
Default

Hi..your major useage of space for user data will be in these folders
/opt/zimbra/db
/opt/zimbra/store
/opt/zimbra/index

other major usage for system data will be
/opt/zimbra/log
/opt/zimbra/logger
/opt/zimbra/zmstat


what i see is that your store and logger taking 60% of your used space
one thing you need to keep in mind is if user has 1 GB of email in the account then zimbra may use 2 or more GB based on what kind of email attachments you have..email blob store is all ASCII so binary files get converted to inflated ASCII files larger than the size you may think they are in the email attachment
moreover you have index's, mysqldb also taking up space

i dont see anything unusual in the usage stats you posted

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #5 (permalink)  
Old 10-26-2010, 06:48 PM
Advanced Member
 
Posts: 189
Default

Can I safely delete the logger files? And the zmstats files? Do you happen to know where that nginx log file is located? I would like to find that file and verify it's size.
Reply With Quote
  #6 (permalink)  
Old 10-27-2010, 05:34 AM
raj raj is offline
Moderator
 
Posts: 768
Default

please read my post at the followin thread to reset the logger.
Disk Space being eaten up

in zmstat you can delete the files which are data wise archives

Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #7 (permalink)  
Old 10-27-2010, 08:23 AM
Advanced Member
 
Posts: 189
Default

Well, i am back at this today. When running the first command found in the link you supplied, i get this:
logmysql.server stop
-bash: logmysql.server: command not found

Logged into the server as root and into zimbra su - zimbra

What are data wise archives? There are 1088 folders in there that have the filename format of 2007-01-10 all the way to 2010-10-26. In these folders are gz files. Can i delete all these folders and the files found inside them?

Last edited by carnold; 10-27-2010 at 08:30 AM..
Reply With Quote
  #8 (permalink)  
Old 10-27-2010, 08:49 AM
raj raj is offline
Moderator
 
Posts: 768
Default

for zmstats you can safely delete xxxx-xx-xx files/folders by hand.
you will loose historical stats shown in the zimbra admin, that is about it.

i think you are using ubuntu may be try sudo..

by the way please take backup as mentioned in the link before trying anything..


Raj
__________________
i2k2 Networks
Dedicated & Shared Zimbra Hosting Provider
Reply With Quote
  #9 (permalink)  
Old 10-27-2010, 10:42 AM
Advanced Member
 
Posts: 189
Default

Using SLES10 SP3.
sudo logmysql.server stop
root'''s password:
sudo: logmysql.server: command not found
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.