Results 1 to 7 of 7

Thread: Reindex Mailbox from Command Line?

  1. #1
    Chewie71 is offline Trained Alumni
    Join Date
    Sep 2006
    Location
    Illinois
    Posts
    374
    Rep Power
    8

    Default Reindex Mailbox from Command Line?

    Anyone know how to reindex a mailbox from the command line? I know you can do it from the Admin GUI, but we'd like to be able to script this. We've been through most of the zm* commands that we thought it might be in, but haven't found anything so far.

    Any info would be appreciated.

    Matt

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Chewie71 is offline Trained Alumni
    Join Date
    Sep 2006
    Location
    Illinois
    Posts
    374
    Rep Power
    8

    Default

    Thanks...we'll give it a try...

  4. #4
    Rich Graves is offline Outstanding Member
    Join Date
    Jan 2007
    Location
    Minnesota
    Posts
    719
    Rep Power
    9

    Default

    zmprov help mailbox says

    reIndexMailbox(rim) {name@domain|id} {action} [{reindex-by} {value1} [value2...]]

    What are the meaning and sample values of action, reindex-by, and value1..N?

  5. #5
    Krishopper is offline Dedicated Member
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    Default

    A little late reply, but this is what I figured out.

    Code:
    [zimbra@lodge ~/index]$ zmprov rim user@domain.com start
    status: started
    [zimbra@lodge ~/index]$ zmprov rim user@domain.com status
    status: running
    progress: numSucceeded=96, numFailed=0, numRemaining=623
    [zimbra@lodge ~/index]$ zmprov rim user@domain.com cancel
    status: cancelled
    progress: numSucceeded=139, numFailed=0, numRemaining=580
    So it can be one of "start", "status", or "cancel". I'm not sure if there are others.

  6. #6
    phingers is offline Special Member
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    And what happens when that doesnt work?

    How do we force it?

    ======================

    [zimbra@zimbra ~]$ zmprov rim tony@domain.com start
    ERROR: service.ALREADY_IN_PROGRESS (mbox f5a9f32a-3587-42d0-a065-02905ea7938b is already running action ReIndex)
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com status
    status: running
    progress: numSucceeded=0, numFailed=0, numRemaining=0
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com cancel
    status: cancelled
    progress: numSucceeded=0, numFailed=0, numRemaining=0
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com start
    ERROR: service.ALREADY_IN_PROGRESS (mbox f5a9f32a-3587-42d0-a065-02905ea7938b is already running action ReIndex)
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com status
    status: running
    progress: numSucceeded=0, numFailed=0, numRemaining=0
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com cancel
    status: cancelled
    progress: numSucceeded=0, numFailed=0, numRemaining=0
    [zimbra@zimbra ~]$ zmprov rim tony@domain.com status
    status: running
    progress: numSucceeded=0, numFailed=0, numRemaining=0

  7. #7
    Chris.Ryan is offline Starter Member
    Join Date
    Aug 2010
    Location
    Melbourne, Australia
    Posts
    2
    Rep Power
    5

    Default

    Phingers,

    I have the same zmprov rim status response but indexing is still working.

    After you run...
    zmprov rim tony@domain.com start

    check the indexing output of your log...
    tail -f /opt/zimbra/log/mailbox.log | grep 'Index'

    for a more accurate idea of what is going on.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 01:19 AM
  2. How to reindex a mailbox
    By incarose in forum Installation
    Replies: 9
    Last Post: 08-26-2010, 12:37 AM
  3. Mailbox and logger not starting - SLES9 M3 Beta436
    By DanielP in forum Installation
    Replies: 49
    Last Post: 08-25-2008, 03:23 AM
  4. Restore mail to another user's mailbox
    By zaf in forum Administrators
    Replies: 4
    Last Post: 02-08-2008, 08:26 AM
  5. MTA and Mailbox die periodically...
    By andreturpin in forum Administrators
    Replies: 3
    Last Post: 06-21-2006, 06:31 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
  •