Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Disk space - mail store question.

  1. #1
    brucealeg is offline Active Member
    Join Date
    Mar 2007
    Posts
    46
    Rep Power
    8

    Default Disk space - mail store question.

    Hi,
    I am running Zimbra 5 and have a question about disk space and the message store. I noticed I was getting low on disk space and looked around, most of my space is being used by /opt/zimbra/store.

    I spot checked some accounts (they are used to pass info, so they all are identical mostly) and got an idea of how much each uses x total mailboxes and that number is samller then my store by a couple gigs.

    I have 5.0.1 ( i think) and I noticed after install that the "e-mail message lifetime" wasn't working - found a forum that said it was a bug? and to use a script to purge my mailboxes.

    I use this:

    #!/bin/bash
    #
    #

    zmprov gaa > /tmp/acccountsList.txt

    for acct in `cat /tmp/acccountsList.txt` ; do

    THEACCOUNT=$acct
    THEDATE=$(date --date='3 days ago' +%m/%d/%y)
    THEFOLDER="/Inbox"

    # (before:$THEDATE)
    touch /tmp/deleteOldMessagesList.txt
    for i in `zmmailbox -z -m $THEACCOUNT search -l 1000 "in:$THEFOLDER (before:$THEDATE)" | grep conv | sed -e "s/^\s\s*//" | sed -e "s/\s\s*/ /g" | cut -d" " -f2`
    do
    if [[ $i =~ [-]{1} ]]
    then
    MESSAGEID=${i#-}
    echo "deleteMessage $MESSAGEID" >> /tmp/deleteOldMessagesList.txt
    else
    echo "deleteConversation $i" >> /tmp/deleteOldMessagesList.txt
    fi
    done

    zmmailbox -z -m $THEACCOUNT < /tmp/deleteOldMessagesList.txt >> /opt/process.log
    rm -f /tmp/deleteOldMessagesList.txt

    done
    rm -f /tmp/acccountsList.txt

    ----------------------------------------------------------------------

    My problem is disk space is going down and running this script clears the mail from the inboxes, but I find that the size of the store isn't going down. I am not getting any space back.

    Is there some maintenance routine that has to run to purge deleted mails from the store once they are deleted from the mailbox? If so, when does it run and can i kick it off manually?

    Thanks,
    Bruce

  2. #2
    brucealeg is offline Active Member
    Join Date
    Mar 2007
    Posts
    46
    Rep Power
    8

    Default

    I guess there is nothing obvious.

  3. #3
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    When you’re absolutely out of room on the disks housing your DB (seriously put in that purchase order for more storage - it’s cheap these days) in a pinch the optimizeMboxgroups.pl script (available in the public cache and added to the upcoming 5.0.10) can help you recover wasted space in your mail_item, appointment, imap_folder, imap_message, open_conversation, pop3_message, revision, and tombstone tables on each mboxgroup. Just note that it temporarily locks each table, and could use considerable IO while they’re being rebuilt. You can certainly use it pro-actively during a maintenance window to reclaim space as well.
    Admin Tools &#038; Tidbits - Part 2 » Zimbra :: Blog

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    http://wiki.zimbra.com/index.php?title=Mailbox_Purge

    I'd suggest you upgrade to the most recent release of Zimbra to get a fix for the bug that you're encountering.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    brucealeg is offline Active Member
    Join Date
    Mar 2007
    Posts
    46
    Rep Power
    8

    Default

    Thanks Bill. Is the latest release stable? No major bugs?

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Works fine and dandy here

  7. #7
    brucealeg is offline Active Member
    Join Date
    Mar 2007
    Posts
    46
    Rep Power
    8

    Default

    Thanks Uxbod - I've been unlucky with bugs last 2 years lol.

    Quick question, do I need to find the upgrade doc again that has all the steps or does the installer handle everything now a days? What I mean is I recall in previous upgrades you had to put your postfix settings etc back and there were general things that were good to do.

    I wasn't sure if thats still the case of not.

    Appreciate the help,
    Bruce

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    That would depend what modifications you've made, the general rule being: if you've modified any config files then you'll need to do them again manually after the upgrade.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    brucealeg is offline Active Member
    Join Date
    Mar 2007
    Posts
    46
    Rep Power
    8

    Default

    Thanks Bill. The installer will upgrade all things Zimbra and GUI configs I've made. Any conf files etc I've touch I will have to redo. So I'll need to make sure the documentation on those is good before I upgrade.

    Perfect.

    Thanks,
    Bruce

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,566
    Rep Power
    57

    Default

    Ah, you've also made change to the themes? If you've done that you'll also need to make them again. Sorry, I forgot to mention that.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 7
    Last Post: 02-03-2011, 07:01 AM
  2. Migration Assistance
    By dwill in forum Administrators
    Replies: 10
    Last Post: 12-02-2008, 08:20 AM
  3. [SOLVED] Zimbra don't work - zmmailboxd
    By dmalherbe in forum Administrators
    Replies: 10
    Last Post: 11-20-2008, 10:05 AM
  4. receiveing mail
    By maybethistime in forum Administrators
    Replies: 15
    Last Post: 12-09-2005, 04:55 PM
  5. Mail not getting to mail boxes
    By ehults in forum Installation
    Replies: 5
    Last Post: 10-31-2005, 09:24 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
  •