Results 1 to 8 of 8

Thread: Move server to different OS

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Posts
    11
    Rep Power
    10

    Default Move server to different OS

    Hi all,

    what steps should i need to take to move a Zimbra installation from a FC3 server to a CentOS4.2 server? (hostname will stay the same, though IP will be different)

    Thanks and keep up the great work you're all putting into Zimbra

    Eric

  2. #2
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    I don't have the technical background of the Zimbra guys, but if you have the Network Edition you could make a backup and restore it on the new server/platform.

  3. #3
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    network is on RHEL4 only, so that's not going to help.

    Install the same zimbra version on your centos4 box.
    copy everything under /opt/zimbra from the fc3 box to the centos4 box.
    RE-install (meaning upgrade) the same zimbra version again.

    start everything.

  4. #4
    Join Date
    Nov 2005
    Location
    Austria
    Posts
    223
    Rep Power
    10

    Default

    Quote Originally Posted by marcmac
    network is on RHEL4 only, so that's not going to help.
    Oops, didn't think on that.

  5. #5
    Join Date
    Oct 2005
    Posts
    11
    Rep Power
    10

    Default

    Thanks for the tips.
    Will give marcmarc's sollution a go soon.

    Greetings Eric

  6. #6
    Join Date
    Oct 2005
    Posts
    11
    Rep Power
    10

    Default

    Hi guys,

    this is my first attempt to move zimbra from 1 server to another. Allthough i did a zmcontrol stop , service zimbra stop , i get the below errors when copying the /opt/zimbra dir.

    Is this something to worry about ?

    Thanks in advance
    EriSan

    Code:
    [zimbra@mx1 livezimbra]$ cp -R --reply=yes * /opt/zimbra/
    cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/zimbraAdmin/tldCache.ser' for reading: Permission denied
    cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/zimbra/tldCache.ser' for reading: Permission denied
    cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/_/tldCache.ser' for reading: Permission denied
    cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/manager/tldCache.ser' for reading: Permission denied
    cp: cannot open `jakarta-tomcat-5.5.7/work/Catalina/localhost/service/tldCache.ser' for reading: Permission denied
    cp: cannot open `jakarta-tomcat-5.5.7/conf/tomcat-users.xml' for reading: Permission denied
    cp: cannot access `postfix-2.2.3/spool/private': Permission denied
    cp: cannot access `postfix-2.2.3/spool/deferred': Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.cleanup' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.showq' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.smtp-amavis' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.lmtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/inet.smtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/master.pid' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.bounce' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.smtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/inet.127.0.0.1:10025' for reading: Permission denied
    cp: cannot open `postfix-2.2.3/spool/pid/unix.defer' for reading: Permission denied
    cp: cannot access `postfix-2.2.3/spool/public': Permission denied
    cp: cannot access `postfix-2.2.3/spool/defer': Permission denied
    cp: cannot open `postfix-2.2.3/conf/prng_exch' for reading: Permission denied
    cp: cannot access `postfix-2.2.5/spool/saved': Permission denied
    cp: cannot access `postfix-2.2.5/spool/active': Permission denied
    cp: cannot access `postfix-2.2.5/spool/flush': Permission denied
    cp: cannot access `postfix-2.2.5/spool/corrupt': Permission denied
    cp: cannot access `postfix-2.2.5/spool/maildrop': Permission denied
    cp: cannot access `postfix-2.2.5/spool/private': Permission denied
    cp: cannot access `postfix-2.2.5/spool/trace': Permission denied
    cp: cannot access `postfix-2.2.5/spool/bounce': Permission denied
    cp: cannot access `postfix-2.2.5/spool/hold': Permission denied
    cp: cannot access `postfix-2.2.5/spool/deferred': Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.cleanup' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.showq' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.smtp-amavis' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.lmtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/inet.smtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/master.pid' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.smtp' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/inet.127.0.0.1:10025' for reading: Permission denied
    cp: cannot open `postfix-2.2.5/spool/pid/unix.defer' for reading: Permission denied
    cp: cannot access `postfix-2.2.5/spool/public': Permission denied
    cp: cannot access `postfix-2.2.5/spool/defer': Permission denied
    cp: cannot access `postfix-2.2.5/spool/incoming': Permission denied
    [zimbra@mx1 livezimbra]$
    Last edited by EriSan500; 03-05-2006 at 05:22 AM.

  7. #7
    Join Date
    Sep 2005
    Posts
    2,103
    Rep Power
    14

    Default

    You should probably do some reading on file permissions in linux

  8. #8
    Join Date
    Oct 2005
    Posts
    11
    Rep Power
    10

    Default

    I solved it by using RSync, worked perfect:

    Code:
    #!/bin/sh
    
    # Simple rsync "driver" script.  (Uses SSH as the transport layer.)
    # http://www.scrounge.org/linux/rsync.html
    
    # Demonstrates how to use rsync to back up a directory tree from a local
    # machine to a remote machine.  Then re-run the script, as needed, to keep
    # the two machines "in sync."  It only copies new or changed files and ignores
    # identical files.
    
    # Destination host machine name
    DEST="your.destination.ip.address"
    
    # User that rsync will connect as
    # Are you sure that you want to run as root, though?
    USER="root"
    
    # Directory to copy from on the source machine.
    BACKDIR="/opt/zimbra/"
    
    # Directory to copy to on the destination machine.
    DESTDIR="/opt/zimbra/"
    
    # excludes file - Contains wildcard patterns of files to exclude.
    # i.e., *~, *.bak, etc.  One "pattern" per line.
    # You must create this file.
    # EXCLUDES=/root/bin/excludes
    
    # Options.
    # -n Don't do any copying, but display what rsync *would* copy. For testing.
    # -a Archive. Mainly propogate file permissions, ownership, timestamp, etc.
    # -u Update. Don't copy file if file on destination is newer.
    # -v Verbose -vv More verbose. -vvv Even more verbose.
    # See man rsync for other options.
    
    # For testing.  Only displays what rsync *would* do and does no actual copying.
    #OPTS="-n -vv -u -a --rsh=ssh --exclude-from=$EXCLUDES --stats --progress"
    # Does copy, but still gives a verbose display of what it is doing
    OPTS="-v -u -a --rsh=ssh --exclude-from=$EXCLUDES --stats"
    # Copies and does no display at all.
    #OPTS="--archive --update --rsh=ssh --exclude-from=$EXCLUDES --quiet"
    
    # May be needed if run by cron?
    export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
    
    # Only run rsync if $DEST responds.
    VAR=`ping -s 1 -c 1 $DEST > /dev/null; echo $?`
    if [ $VAR -eq 0 ]; then
        rsync $OPTS $BACKDIR $USER@$DEST:$DESTDIR
    else
        echo "Cannot connect to $DEST."
    fi
    EriSan

Similar Threads

  1. initializing ldap...FAILED(256)ERROR
    By manjunath in forum Installation
    Replies: 39
    Last Post: 06-07-2013, 11:27 AM
  2. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 01:42 AM
  3. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 08:46 PM
  4. Error 256 on Installation
    By RuinExplorer in forum Installation
    Replies: 5
    Last Post: 10-19-2006, 10:19 AM
  5. Mac OS X server setup
    By ericmiller74 in forum Installation
    Replies: 2
    Last Post: 10-16-2006, 12:29 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
  •