Results 1 to 6 of 6

Thread: detailed quota? (du style?)

  1. #1
    Join Date
    Oct 2012
    Location
    Brussels, Belgium
    Posts
    3
    Rep Power
    3

    Default detailed quota? (du style?)

    Hello,

    Is it possible to get detailed disk-space usage stats for zimbra mailbox: the size of the folders and subfolders?
    Something like
    Code:
     du -sk * | sort -n
    would do in a folder on a filesystem?

    Users are asking me this since they have no idea in which folder or subfolder they are using most diskspace.
    They want to know, because the biggest folders are most relevant to clean up to regain diskpace and stay below quota limits.

    Thanks,

    Joost

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

    Quote Originally Posted by jringoot View Post
    They want to know, because the biggest folders are most relevant to clean up to regain diskpace and stay below quota limits.
    They can do this themselves by putting their cursor over the filder, it will then show a pop-up that display the size of that folder.

    You might want to take a look at the "zmmailbox help" command to see what you can get out of that but it would be a long-winded process to list all the folders for each user on your server.

    If you are still on ZCS 8.0.3 (as mentioned in your profile) you should upgrade ASAP:

    http://www.zimbra.com/forums/announc...-releases.html
    http://www.zimbra.com/forums/announc...0-x-7-2-x.html
    Last edited by phoenix; 03-27-2014 at 01:01 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Jan 2014
    Posts
    2
    Rep Power
    1

    Default

    Here's a quick script I threw together because I needed the answer to this question:

    #!/usr/bin/perl
    #
    use strict;

    my $cmd;
    my $status;
    my $name;

    $cmd = "zmmailbox -z -m user\@example.com gaf -v > /tmp/user.txt";
    $status = `$cmd`;

    open(INFILE,"/tmp/user.txt");
    while (<INFILE>) {
    chop;
    next unless ($_ =~ /name|size/);
    $name = $_ if ($_ =~ /name/);
    if ($_ =~ /size/) {
    $name =~ s/\$s+//g;
    $_ =~ s/^\s+//g;
    print "$name $_\n"
    }
    }
    close INFILE;

    It produces output like this:

    "name": "USER_ROOT", "size": 0,
    "name": "Archive", "size": 4364,
    "name": "Assurances collectives", "size": 0,
    "name": "Briefcase", "size": 0,
    "name": "Calendar", "size": 22208,
    "name": "Chats", "size": 0,
    "name": "Contacts", "size": 0,
    "name": "Deleted Messages", "size": 1195196,
    "name": "Drafts", "size": 983,
    "name": "Emailed Contacts", "size": 0,
    "name": "Inbox", "size": 532337844,
    "name": "Personnel", "size": 0,
    "name": "156 ddes Monts", "size": 4299581,
    "name": "22 de la Montagne", "size": 0,
    "name": "3200 des Luminaires", "size": 0,
    "name": "3563 Survenant", "size": 0,
    "name": "54 Léonie", "size": 0,
    "name": "Achat", "size": 5545232,
    "name": "Amies", "size": 96741,
    "name": "Assurances", "size": 0,

    Hope this helps someone out.

  4. #4
    Join Date
    Apr 2008
    Location
    New Paltz, NY
    Posts
    336
    Rep Power
    7

    Default

    In case any are interested, I have a similar one that shows output (for a given folder) in megabytes and in number of messages and lists the user's quota & currently used storage. Its set to only show folders 10MB or larger but that can easily be changed (size > 10 line).

    http://paulchauvet.org/folder_size_check.py
    ---
    Paul Chauvet
    State University of New York at New Paltz

  5. #5
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    476
    Rep Power
    4

    Default

    Quote Originally Posted by chauvetp View Post
    In case any are interested, I have a similar one that shows output (for a given folder) in megabytes and in number of messages and lists the user's quota & currently used storage. Its set to only show folders 10MB or larger but that can easily be changed (size > 10 line).

    http://paulchauvet.org/folder_size_check.py
    Thanks Paul, works like a charm.

    ccelis

  6. #6
    Join Date
    Mar 2013
    Posts
    2
    Rep Power
    2

    Default

    I had the same problem some months ago. But I wanted the users to clean up their mailboxes by themselves.

    This is why I created a zimlet called 'Zimcleaner'. It analyses user's mailbox and shows the use of space graphically.

Similar Threads

  1. Detailed steps for upgrading from 7.13 to 8?
    By ctucci in forum Administrators
    Replies: 4
    Last Post: 12-26-2012, 07:40 AM
  2. Detailed steps for upgrading from 7.13 to 8?
    By ctucci in forum Migration
    Replies: 0
    Last Post: 12-26-2012, 06:40 AM
  3. Detailed server stats
    By MrBryce2000 in forum Installation
    Replies: 1
    Last Post: 08-14-2008, 06:01 AM
  4. Audit more detailed
    By danny.sierra@omtech.net in forum Administrators
    Replies: 1
    Last Post: 04-26-2008, 10:25 AM
  5. Detailed Documentation
    By Namaste in forum Developers
    Replies: 1
    Last Post: 10-24-2005, 02:39 PM

Tags for this Thread

Posting Permissions

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