Page 1 of 1

restore message store on a new server

Posted: Wed Nov 05, 2008 6:41 pm
by Hiob86
Hello,

I want to install scalix on a new server. How could i move the whole message store from the old server to the new one. Only ip address has changed. the hostname is the same as the old one.

thangs in advanced

Hiob

Posted: Thu Nov 06, 2008 11:52 am
by schmoe90
Install Scalix. Copy the message store to the new server. Follow: http://www.scalix.com/wiki/index.php?title=HowTos/ChangeIP

Posted: Sat Nov 15, 2008 12:33 pm
by mnauta
I am moving scalix to a new server also (this weekend :) )

I have just finished with rsync -av /var/opt/scalix 10.0.0.2:/var/opt but now the file size on the destination server is about 5 Gig more than on the source

Code: Select all

source: 77309068        scalix
destination: 82131976        scalix

also:
source:
88      caa
1467680 indexes
12      mobile
16      platform
17199268        postgres
28      res
57474268        s
12      sis
1167628 tomcat
44      webmail


destination:
88      caa
1467428 indexes
12      mobile
16      platform
17199304        postgres
28      res
62297388        s
12      sis
1167640 tomcat
44      webmail


Is this normal, why?

Thanks
manuel

Posted: Sat Nov 15, 2008 12:44 pm
by fkienker
Instead of:
rsync -av /var/opt/scalix 10.0.0.2:/var/opt
Try using:
rsync -avH /var/opt/scalix 10.0.0.2:/var/opt

The -H option preserves "hard links". Without the -H option two individual copies of the files are created. This would cause the copy to be larger than the original. Be sure to remove the /var/opt/scalix directory before trying this again.

Posted: Sat Nov 15, 2008 12:57 pm
by mnauta
fkienker wrote:Instead of:
rsync -av /var/opt/scalix 10.0.0.2:/var/opt
Try using:
rsync -avH /var/opt/scalix 10.0.0.2:/var/opt

The -H option preserves "hard links". Without the -H option two individual copies of the files are created. This would cause the copy to be larger than the original. Be sure to remove the /var/opt/scalix directory before trying this again.


Thanks! I'll try again (users will be down for additional 10 - 12 hours :D )

Posted: Sat Nov 15, 2008 9:51 pm
by mnauta
OK, deleted /var/opt/scalix folder on the destination server.

Then ran rsync -avH /var/opt/scalix 10.0.0.2:/var/opt

after this did du -s * to check folder sizes, now the destination scalix folder is a few hundred meg small than the source:

Code: Select all

source   | destination   | folder
-------------------------------------

77320676  |  77055916  | scalix
-------------------------------------

88                 88                ca
1467680       1467428              indexes
12               12                 mobile
16                16                 platform
17199268   17199304              postgres
28               28                  res
57485876   57221328                s
12               12                  sis
1167628    1167640                   tomcat
44               44                  webmail


I just need to make sure that I have an exact copy before I switch servers. Is it expected to have some differences like these?

Posted: Sun Nov 16, 2008 1:09 pm
by fkienker
Was Scalix running on the server you were copying from while you were copying? If so then yes it's quite conceivable the answer is yes.

Posted: Sun Nov 16, 2008 3:00 pm
by mnauta
I had shut down scalix and scalix-tomcat before starting rsync

Posted: Sun Nov 16, 2008 6:17 pm
by fkienker
If you are concerned then try the rsync command again. If nothing new transfers, then you are probably okay. I'm ASSUMING both servers have the same version of Scalix installed.

The next thing to do is to try it out. Look especially for issues with SAC and Webmail.

Posted: Tue Nov 18, 2008 5:11 pm
by operator
Hi, we transfered the scalix datas using rsync -av many times, without any problems, while all scalix services were should down, or a snapshot was made.

Posted: Fri Nov 21, 2008 5:21 pm
by mnauta
Thanks for the help

rsync -avH worked perfectly, new server is up and running.