Results 1 to 5 of 5

Thread: migrate domain/user config

  1. #1
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

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

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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.

  3. #3
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

    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.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  5. #5
    BrianA is offline Senior Member
    Join Date
    Jan 2008
    Posts
    70
    Rep Power
    7

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. bayes db..
    By osiris in forum Administrators
    Replies: 9
    Last Post: 06-15-2011, 11:14 AM
  2. LDAP Cannot bind on migration to new server
    By neekster in forum Migration
    Replies: 23
    Last Post: 03-09-2009, 02:08 AM
  3. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  4. Replies: 13
    Last Post: 05-15-2007, 06:41 AM
  5. Zimbra not listening on port 7071
    By carllerche in forum Installation
    Replies: 10
    Last Post: 04-03-2007, 09:23 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
  •