Results 1 to 9 of 9

Thread: Find Biggest Files

Hybrid View

  1. #1
    Join Date
    Jul 2007
    Posts
    227
    Rep Power
    8

    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:
    http://www.zimbra.com/forums/adminis...ade-error.html

    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?

  2. #2
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    Default

    whats the output of
    du -sh /opt/zimbra/logger
    du -sh /opt/zimbra/store
    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  3. #3
    Join Date
    Jul 2007
    Posts
    227
    Rep Power
    8

    Default

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

    and

    du -sh /opt/zimbra/store
    3.5G /opt/zimbra/store

  4. #4
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

  5. #5
    Join Date
    Jul 2007
    Posts
    227
    Rep Power
    8

    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.

  6. #6
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    Default

    please read my post at the followin thread to reset the logger.
    http://www.zimbra.com/forums/adminis...tml#post199478

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

    Raj
    i2k2 Networks
    Dedicated & Shared Zimbra Hosting Provider

  7. #7
    Join Date
    Jul 2007
    Posts
    227
    Rep Power
    8

    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.

  8. #8
    Join Date
    Oct 2005
    Location
    USA, Canada and India
    Posts
    777
    Rep Power
    10

    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

  9. #9
    Join Date
    Jul 2007
    Posts
    227
    Rep Power
    8

    Default

    Using SLES10 SP3.
    sudo logmysql.server stop
    root'''s password:
    sudo: logmysql.server: command not found

Similar Threads

  1. Zimbra 5 install on CentOS 5 / MX Record
    By MrBryce2000 in forum Installation
    Replies: 46
    Last Post: 05-10-2008, 02:48 PM
  2. [SOLVED] Error Installing Zimbra on RHEL 5
    By harris7139 in forum Installation
    Replies: 10
    Last Post: 09-25-2007, 11:39 AM
  3. Replies: 8
    Last Post: 02-27-2007, 03:10 AM
  4. svn version still won't start
    By kinaole in forum Developers
    Replies: 0
    Last Post: 10-04-2006, 06:47 AM
  5. Replies: 16
    Last Post: 09-07-2006, 06:39 AM

Posting Permissions

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