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 06-10-2008, 11:05 PM
Senior Member
 
Posts: 70
Default migrate domain/user config

Well my hard disk decided to act up, which I discovered when I was making a DR prep. image.

the server still boots ok, but I'm not trusting it too much.

is there a way to get all the user and domain config migrated across to a new disk? I dont want to copy the whole opt partition cause I dont think its sound.

just trying to avoid setting up 60 odd users again...
Reply With Quote
  #2 (permalink)  
Old 06-10-2008, 11:20 PM
Moderator
 
Posts: 7,928
Default

Oh, not good Brian. Did the partition report any errors when the server booted ? You could attempt a fsck (read-only) on the /opt partition to confirm that the O/S sees it okay. I personally would rsync the whole of /opt and see what happens, at the end of the day it would be just a reliable as copying across the accounts and mailstore due to if the disk is corrupt then you would not be able to guarantee that your accounts and data are intact anyway.
__________________
Reply With Quote
  #3 (permalink)  
Old 06-10-2008, 11:34 PM
Senior Member
 
Posts: 70
Default i dont care about the emails

just the user n domain setups. i can imapcopy the email again.

"IT is not a game for crybabies is it." he said, smiling grimly at the loss of a long days work.

guess I'll get to do it again.
Reply With Quote
  #4 (permalink)  
Old 06-10-2008, 11:43 PM
Moderator
 
Posts: 7,928
Default

I guess you could copy certain directories like /opt/zimbra/conf /opt/zimbra/logger and exclude the mailstore, but I would *not* do this myself. ZCS is very tightly integrated and to ensure you get everything may be a difficult task.

You could get the accounts etc via this procedure Zimbra :: Blog » Exporting and Importing Zimbra LDAP Data.

Potentially these could be the steps (no guarantee implied!) :-

1) Ensure some sort of backup is in place
2) Shutdown ZCS
3) Export LDAP
4) Replace HD
5) Reinstall O/S and dummy install of ZCS (same version)
6) Import LDAP
7) Check mailboxes and re-index from Admin GUI
8) Import messages again via IMAPSync
__________________
Reply With Quote
  #5 (permalink)  
Old 06-11-2008, 04:46 PM
Senior Member
 
Posts: 70
Default what I did

obtain ldap from old set up as described here..
Exporting and Importing Zimbra LDAP Data » Zimbra :: Blog

then fire up new hdd, put copy of ldap.ldif in /tmp and chmod 777 to have rights to the file when su zimbra

/etc/init.d/zimbra/stop

mkdir /opt/zimbra/openldap-safe
mv /opt/zimbra/openldap-data /opt/zimbra/openldap-safe
su zimbra
mkdir /opt/zimbra/openldap-data/logs
cp /opt/zimbra/openldap-safe/DB_CONFIG /opt/zimbra/openldap-data/

/opt/zimbra/openldap-2.3.41.7z/sbin/slapadd -f /opt/zimbra/conf/slapd.conf -l /tmp/ldap.ldif

exit
/etc/init.d/zimbra/start

but it didnt work so well.... couldnt connect to the admin web page...

I'll just rekey it all. thanks for the ideas though.
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.