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 07-23-2010, 11:32 AM
Junior Member
 
Posts: 5
Default zmmailboxmove question

I have been trying to find out what sort of error handling 'zmmailboxmove' performs before exiting. Based on all of the documentation that I have found, the steps are:

  • Run zmmailboxmove
  • Verify that the contents of the moved user look "correct"(implementation left as an exercise for the administrator)
  • Purge old mailbox on previous server.
I haven't found anything that describes what the states of the initial mailbox and new mailbox are in the event that 'zmmailboxmove' fails and things don't match.

I know that there is an argument to overwrite the target mailbox; however, is there any way to back out of the move? Or does 'zmmailboxmove' back out and return an error code?
Reply With Quote
  #2 (permalink)  
Old 07-23-2010, 01:17 PM
Moderator
 
Posts: 1,554
Default

until you do a purgeold, the mailbox exists on both servers, and if i recall correctly, the only thing that tells it which one to use is the attribute zimbraMailHost. Thats the last thing zimbra changes so if the move fails, it never tells it to use the target host, and should you need to revert you can just switch that back
Reply With Quote
  #3 (permalink)  
Old 07-23-2010, 01:30 PM
Junior Member
 
Posts: 5
Default

Excellent!

Is there a means by which to remove the target host copy? Or is there an automated process that deletes "orphaned" mailboxes? I hate leaving "droppings" on systems, and depending on the reason for the failure, it may be decided that the move should not take place.

If there isn't, would this manual process work:
  • Change the zimbraMailHost to the original mailbox server.
  • Change the zimbraMailboxLocationBeforeMove to have the hostid and mailboxid on what was the target host.
  • Issue the 'zmmailboxmove -po' at the host which was the target host.

Or is there a better way?

Last edited by bhalsema; 07-23-2010 at 01:36 PM..
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.