Results 1 to 5 of 5

Thread: How to delete index directories of specified users

  1. #1
    Join Date
    Apr 2009
    Location
    Tokyo
    Posts
    28
    Rep Power
    6

    Unhappy How to delete index directories of specified users

    Hi,

    Our customer reported that they couldn't delete index directories
    when executing zmmailboxmove --purgeOld.
    Messages and accounts were deleted, but only the index directories
    weren't deleted and it turns out to be a bug:50308.

    Our customer wants to delete the directories for a workaround
    because they run short of disk space for the server.

    Do anyone have a tool for deleting index directory for specified users or
    any workaround?
    I assume we can detect the location in the index directory by mailbox_id
    of the moved store server.

    I tested deleting all messages from store and then run "zmprov rim", but
    1KB of index data still remains..


    ---
    Our environment:
    ZCS5.0.16 NE multi-server RHEL5

  2. #2
    Join Date
    Jan 2008
    Posts
    658
    Rep Power
    8

    Default

    You probably need to know what mailbox id and mailbox group and then can just do this: King0770-Notes - Zimbra :: Wiki

  3. #3
    Join Date
    Apr 2009
    Location
    Tokyo
    Posts
    28
    Rep Power
    6

    Default

    Thanks y@w,

    I think I can delete the indice if the volume ids, mailbox id and mailbox group won't get changed after executing zmmailboxmove.

  4. #4
    Join Date
    Jan 2008
    Posts
    658
    Rep Power
    8

    Default

    Yeah, accidentally deleting indexes for a few of the wrong accounts isn't a big deal since they can be regenerated anyway.

    Another thing that you may want to look at if you're really desperate for disk space is optimizing the mail_items tables in the database. Since Zimbra uses innodb, when the users' mail gets deleted off the server, the space isn't regained from the MySQL tables. Running an optimize table on while give you that disk space back. Just make sure you do that at night when there aren't many users on as it locks the tables.

  5. #5
    Join Date
    Apr 2009
    Location
    Tokyo
    Posts
    28
    Rep Power
    6

    Default

    I see.
    I didn't notice that optimizing the tables helps reducing the space, however our production server accomodates over 100,000 users and we know it's not good for large site.

    In addition, unfortunately, zimbra support replied us that mailbox_id will be changed after executing zmmailboxmove.I think volume_id will be changed as well.

    So, if we want to delete those indice, we may need "index consistency check" tool as blob consistency check tool for messages in the store.

Similar Threads

  1. Active Directory Script to import users to Zimbra
    By egrueda in forum Administrators
    Replies: 35
    Last Post: 08-29-2012, 11:54 AM
  2. Clients stopped receiving emails
    By egadinc in forum Administrators
    Replies: 16
    Last Post: 12-14-2009, 03:38 PM
  3. Having problem form todat accessing zimbra desktop
    By rajeshkodali in forum Installation Help
    Replies: 2
    Last Post: 06-19-2009, 12:30 AM
  4. Silly delete key issue
    By GaryParr in forum Error Reports
    Replies: 13
    Last Post: 11-11-2008, 06:11 AM
  5. Unable to Move Users to a Domain or Delete Domain
    By Justin Rock in forum Administrators
    Replies: 2
    Last Post: 10-06-2005, 01:23 PM

Posting Permissions

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