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

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 Display Modes
  #1 (permalink)  
Old 02-21-2006, 01:38 AM
Member
 
Posts: 11
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
Reply With Quote
  #2 (permalink)  
Old 02-21-2006, 08:04 AM
Project Contributor
 
Posts: 223
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.
Reply With Quote
  #3 (permalink)  
Old 02-21-2006, 08:07 AM
Zimbra Employee
 
Posts: 2,073
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.
Reply With Quote
  #4 (permalink)  
Old 02-21-2006, 08:49 AM
Project Contributor
 
Posts: 223
Default

Quote:
Originally Posted by marcmac
network is on RHEL4 only, so that's not going to help.
Oops, didn't think on that.
Reply With Quote
  #5 (permalink)  
Old 02-22-2006, 02:13 AM
Member
 
Posts: 11
Default

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

Greetings Eric
Reply With Quote
  #6 (permalink)  
Old 03-05-2006, 05:03 AM
Member
 
Posts: 11
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.
Reply With Quote
  #7 (permalink)  
Old 03-05-2006, 11:36 AM
Zimbra Employee
 
Posts: 2,073
Default

You should probably do some reading on file permissions in linux
Reply With Quote
  #8 (permalink)  
Old 03-05-2006, 01:00 PM
Member
 
Posts: 11
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
Reply With Quote
Reply


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

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0