Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Installation

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-18-2009, 02:38 PM
Active Member
 
Posts: 39
Default Zimbra Corrupt After Changing Server Name

I am running Zimbra 5.0.18 on CentOS 5.3. I stopped Zimbra changed the server name with ZmSetServerName and in /etc/hosts. ZmSetServerName failed with a number of errors and now my install is corrupt. Not thinking I tried to do a reinstall of 5.0.18 ontop which I think screwed it up more. At this point I think the ldap configuration is hosed.

Anyway I have a 6 day old backup of just the exported mailboxes using the zmmailbox getRestURL command. The current store, index, and db folders are intact. What is my best method to recover?

Can I install Zimbra clean, recreate the accounts and then somehow link the current store, index, and db folders?
Reply With Quote
  #2 (permalink)  
Old 07-18-2009, 10:35 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Shutdown Zimbra then check if there's any processes still running and kill them if there is, when you've done that start Zimbra and see what errors you get in the log files and post details here.
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 07-18-2009, 11:00 PM
Active Member
 
Posts: 39
Default

Thanks for the response. I would post the logs but I made such a mess out of the entire config with the reinstall that I'm not going to be able to save it. I've got a backup of db, store, index and dumps of the mboxgroup tables, the zimbra.mailbox table and a clean install of Zimbra on ESXi. I've spent a bunch of time trying to figure this out and think I might have a tedious solution. Luckily I only have 30 accounts to do. Only a few I need the recent mail on so the 6 day old backups should be fine for the rest.

What I've determined is that I can create the accounts in the same order as zimbra.mailbox shows for the account id. Then I was able to import the mboxgroup table and copy back the store and index folders. This allows for the mail to show in the webgui, but some things are messed up. I'm going to try and export the new messages from the last 6 days with Outlook Express. Then I can revert back to a clean install snapshot and just restore with zmmailbox and postRestURL and copy back the last 6 days again.

I'll keep you posted. If you have any other thoughts that would be great.
Reply With Quote
  #4 (permalink)  
Old 07-19-2009, 10:41 AM
Active Member
 
Posts: 39
Default

I've got it all back up and running. I ended up just using zmmailbox postRestURL for the majority of it. I mapped the number store folders to the accounts, changed the files from .msg to .eml and dropped them into the accounts I setup in Outlook Express. This looses the reply status, but it was only the last 6 days I needed so that was the easiest.
Reply With Quote
  #5 (permalink)  
Old 07-19-2009, 10:51 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Glad you've managed to get it all back up and running.
__________________
Regards


Bill
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.