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

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 02-11-2009, 09:52 AM
Intermediate Member
 
Posts: 24
Default Help!!! Moving ZCS does not work!

Hi!

I'm following the Wiki Post "Moving ZCS to New Server" exactly and get always at the last point an strange situation!

When I copied the zimbra.bak file to my new server and I entered the command "rsync -avrlHKpogDt /opt/zimbra.bak /opt/zimbra" it runs again for hours and creates an new directory under /opt/zimbra/ called zimbra.bak!

I did exactly the steps described and allways get the problem it restores it to a wrong directory!

What did I do wrong?

Please help. I allready did this step for 4times! It drives me crazy.

Thanks in advance

Alex
Reply With Quote
  #2 (permalink)  
Old 02-11-2009, 10:05 AM
Active Member
 
Posts: 30
Default

Try adding a trailing slash to both of your directory arguments to rsync:

rsync -avrlHKpogDt /opt/zimbra.bak/ /opt/zimbra/

Ron
Reply With Quote
  #3 (permalink)  
Old 02-11-2009, 10:05 AM
Moderator
 
Posts: 7,911
Default

Did you remove /opt/zimbra on the new server first as specified in the Wiki ?
__________________
Reply With Quote
  #4 (permalink)  
Old 02-12-2009, 04:16 PM
Intermediate Member
 
Posts: 24
Default

yes i did remove the old zimbra dir.

i found out there are some error's.

what confuses me is rsync is not creating one file - it creates another directory called zimbra.bak!!!!

I'm relative new to linux os so i found this fact very late. (it tooks hours until i realized how to copy the whole directory to the new server).

why does it create a directory and not a file as described in the faq?

Please help - I want to migrate really fast because my old system will be returned to another customer.

thanks

alex
Reply With Quote
  #5 (permalink)  
Old 02-12-2009, 04:53 PM
Active Member
 
Posts: 30
Default

Did you try adding the slashes after the folder names? I tested that with a couple of test folders and it worked right with the trailing slashes, but without them it creates a subdirectory inside the target directory.
Reply With Quote
  #6 (permalink)  
Old 02-12-2009, 05:18 PM
Intermediate Member
 
Posts: 24
Default

Yes I did try it also with the /

Now I tried to "copy" the rsync files straight to the new server and I get some strange errors straight from beginning.

Here's a short dump of it:

x@sasamuc10:~$ rsync -avrlHKpogDt /opt/zimbra alex@10.0.1.110:/tmp/zcs/
alex@10.0.1.110's password:
building file list ... rsync: opendir "/opt/zimbra/data/amavisd/.spamassassin" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/deferred" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/private" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/hold" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/incoming" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/flush" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/maildrop" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/saved" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/public" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/bounce" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/active" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/defer" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/corrupt" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/data/postfix/spool/trace" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/webapps/service/zimlet" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/webapps/zimbraAdmin/tmp" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/service" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-incoming" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-deferred" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbra/eb133304-1e22-41aa-9822-f345ea200dc7-hold" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/zimbraAdmin" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/jetty-6.1.5/work/resource-cache" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-22" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-30" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-26" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-13" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-03" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-24" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-02" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-21" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-29" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-15" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-11" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-18" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-01" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-19" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/pid" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-07" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-16" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-27" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-04" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-09" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-12" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-31" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-14" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-06" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-28" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-17" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-10" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-08" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-25" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-02-05" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-23" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/zmstat/2009-01-20" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/db/data" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/ssl/zimbra.20090113133700" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/ssl/zimbra" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/ssl/zimbra.20090113133655" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/store/incoming" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/store/0" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/dspam-3.8.0/var/dspam" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/.saveconfig" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/redolog/archive" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/logger/db/data" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/log/xmppAudit" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/index/0" failed: Permission denied (13)
rsync: opendir "/opt/zimbra/.ssh" failed: Permission denied (13)



Any idea?
Reply With Quote
  #7 (permalink)  
Old 02-12-2009, 05:21 PM
Intermediate Member
 
Posts: 24
Default

everything back!!!
I did run this command with the "normal" user and not with sudo!

Now it copies.... let's see if i can move it then on the new server from /tmp/zcs to /opt/zimbra

I will let you know!

Alex
Reply With Quote
  #8 (permalink)  
Old 02-12-2009, 06:06 PM
Intermediate Member
 
Posts: 24
Default

Hi!

The rsync did work now.
I did move the /tmp/zcs to /opt/zimbra and resatarted the server but i get now following error:

-su : /opt/zimbra/log/startup.log: Permission denied

I'm giving up for today (it's 2:05 am) and will try tomorrow again.
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.