Results 1 to 7 of 7

Thread: Zimbra to Zimbra Migration Failure

  1. #1
    dspillett is offline Loyal Member
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default Zimbra to Zimbra Migration Failure [SOLVED]

    I've been tasked with updating an old, fairly small, Zimbra install ("Release 6.0.6_GA_2324.DEBIAN4.0 DEBIAN4.0 FOSS edition") to the latest release.

    As the machine needs a full OS refresh (that Debian release is not supported any more, and Debian is dropping out of your supported OS list completely anyway) I thought that a completely fresh install (latest stable Zimbra (7.1.3) on Ubuntu 10.04) followed by a migration would be the path of least resistance, though that may have been a bad assumption.

    Following the notes at » Zimbra :: Blog I have run
    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.net getRestURL "//?fmt=tgz" > user.tgz
    for each account on the old server, transferred the files over, created the accounts, and then run
    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.net postRestURL "//?fmt=tgz\&resolve=reset" ./user.tgz
    for each.

    The tgz files seem to be of the sort of size I would be expecting, and no errors are reported (aside from first time around when I hit a "request too large" message fixed by increasing the maximum request size in the admin console), but nothing seems to import where the user can see it (no mail, no folders, no calendar information).

    The command takes a while to think, and the account's used quota value goes up by a chunk, and the space used under /opt goes up, so something has happened. If I run the same import command again the user's quota goes up again, so it would seem that the data is being stored somewhere instead of being processed as an import?

    Is there something obvious that I'm doing wrong?

    I'm going to try rebuild the destination machine from scratch, if only to get rid of the space consumed in /opt (which doesn't seem to be released when the relevant account is deleted) then try again, but any pointers as to what logs are relevant for finding what happens (the command outputs nothing to stdout or stderr), or pointers to what I'm missing (if I'm doing something wrong) would be appreciated.

    (plan B is to upgrade rather than reinstalling on the new architecture and migrating: 1. upgrade to latest 6.0.x, 2. migrate the whole lot from Debian/x86 to the new VM running Ubuntu/a64, 3. upgrade to 7.1.x - but that may take far longer if only as I'd probably backup the whole VM(s) at each step for paranoia's sake, and I'm told there are extra complications with a jump from x86->a64)
    Last edited by dspillett; 10-17-2011 at 11:34 AM. Reason: Marking as "solved"

  2. #2
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    470
    Rep Power
    4

    Default

    Hi dspillet,

    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.net postRestURL "//?fmt=tgz\&resolve=reset" ./user.tgz
    Try without the backslash before the ampersand.

    /opt/zimbra/bin/zmmailbox -z -m user@domain.net postRestURL "//?fmt=tgz&resolve=reset" ./user.tgz

    Regards.

  3. #3
    dspillett is offline Loyal Member
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default

    Thankyou. Such a simple mistake too - I'm not sure where the double escapement (quotes and slash) came from as it isn't there in the original reference pages I cribbed from. First quick test shows it certainly seems to work as expected with your correction.

    I have located where the data went previously: Zimbra has accepted the files as if they were single mail messages and dropped them into the store, i.e.:
    Code:
    -rw-r----- 1 zimbra    zimbra    277M 2011-10-16 22:01 /opt/zimbra/store/0/10/msg/0/261-101.msg
    As I can't find these objects anywhere in the web interface (admin or user), and the space they consumed didn't go when I deleted one of the affected accounts (so they may not be properly linked to the accounts in question at all), would it be safe to just remove them? Or is there anything else that needs to be done to update indexes, so they are no longer counted against the account's quota and to avoid the files being missing getting picked up as an artifact of corruption in the store further down the line?

  4. #4
    dspillett is offline Loyal Member
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default

    Ah, found what seems to be the answer to my second question. I'll quote it here in case others have the same problem later:

    1. delete the extraneous blobs
    2. run zmblobchk --missing-blob-delete-item --no-export start to update elsewhere

    Take a full backup first, of course, if this is not a test environment that you don't care about killing if something goes wrong.

  5. #5
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    470
    Rep Power
    4

    Default

    Hi dspillet,

    When you put the backslash apperars to generate an index problems, i mean, zmmailbox puts the message in the store but it's unaccesible. I think it's safe delete the account, create again and migrate.

    Regards

  6. #6
    dspillett is offline Loyal Member
    Join Date
    Mar 2007
    Posts
    84
    Rep Power
    8

    Default

    Yeah, I think the backslashes were a subconscious keystroke to (unnecessarily) escape the ampersand on the command line. I did it multiple times too: I completely reinstalled the VM once and started again. Fool, eh?

    Removing the errant blobs seems to have caused no ill. zmblobchk removed them from quota counts (and presumably other indexes) for the accounts I'd not removed first. They must have been in an odd state to be found by that (linked to existing accounts) but not be removed when the accounts were deleted, but all is well now.

  7. #7
    ccelis5215 is offline Elite Member
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    470
    Rep Power
    4

    Default

    Absolutely right!

    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 03-23-2011, 09:39 PM
  2. Did I miss something? (Zimbra GA 6.0.8 on Ubuntu 10.04)
    By vpetersson in forum Installation
    Replies: 2
    Last Post: 10-26-2010, 06:29 AM
  3. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 03:37 AM
  4. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  5. 3.1 on FC4 problems
    By cohnhead in forum Installation
    Replies: 8
    Last Post: 05-26-2006, 11:16 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
  •