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 09-07-2010, 08:18 PM
Active Member
 
Posts: 28
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
Reply With Quote
  #2 (permalink)  
Old 09-09-2010, 12:51 AM
y@w y@w is offline
Moderator
 
Posts: 658
Default

You probably need to know what mailbox id and mailbox group and then can just do this: King0770-Notes - Zimbra :: Wiki
__________________
What a n00b!
Reply With Quote
  #3 (permalink)  
Old 09-10-2010, 01:08 AM
Active Member
 
Posts: 28
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.
Reply With Quote
  #4 (permalink)  
Old 09-10-2010, 09:13 AM
y@w y@w is offline
Moderator
 
Posts: 658
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.
__________________
What a n00b!
Reply With Quote
  #5 (permalink)  
Old 09-27-2010, 05:47 AM
Active Member
 
Posts: 28
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.
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.