restore message store on a new server

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

Hiob86
Posts: 92
Joined: Thu Sep 20, 2007 3:43 am
Contact:

restore message store on a new server

Postby Hiob86 » Wed Nov 05, 2008 6:41 pm

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

schmoe90
Scalix
Scalix
Posts: 900
Joined: Mon May 07, 2007 11:51 am

Postby schmoe90 » Thu Nov 06, 2008 11:52 am

Install Scalix. Copy the message store to the new server. Follow: http://www.scalix.com/wiki/index.php?title=HowTos/ChangeIP

mnauta
Posts: 152
Joined: Wed Feb 23, 2005 4:10 pm
Location: Austin, TX

Postby mnauta » Sat Nov 15, 2008 12:33 pm

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

fkienker
Posts: 79
Joined: Sat Nov 18, 2006 1:08 pm
Location: Atlanta GA USA

Postby fkienker » Sat Nov 15, 2008 12:44 pm

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.
Fred Kienker
AT4B

mnauta
Posts: 152
Joined: Wed Feb 23, 2005 4:10 pm
Location: Austin, TX

Postby mnauta » Sat Nov 15, 2008 12:57 pm

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 )

mnauta
Posts: 152
Joined: Wed Feb 23, 2005 4:10 pm
Location: Austin, TX

Postby mnauta » Sat Nov 15, 2008 9:51 pm

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?

fkienker
Posts: 79
Joined: Sat Nov 18, 2006 1:08 pm
Location: Atlanta GA USA

Postby fkienker » Sun Nov 16, 2008 1:09 pm

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.
Fred Kienker
AT4B

mnauta
Posts: 152
Joined: Wed Feb 23, 2005 4:10 pm
Location: Austin, TX

Postby mnauta » Sun Nov 16, 2008 3:00 pm

I had shut down scalix and scalix-tomcat before starting rsync

fkienker
Posts: 79
Joined: Sat Nov 18, 2006 1:08 pm
Location: Atlanta GA USA

Postby fkienker » Sun Nov 16, 2008 6:17 pm

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.
Fred Kienker
AT4B

operator
Posts: 26
Joined: Tue Oct 11, 2005 6:18 am

Postby operator » Tue Nov 18, 2008 5:11 pm

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.

mnauta
Posts: 152
Joined: Wed Feb 23, 2005 4:10 pm
Location: Austin, TX

Postby mnauta » Fri Nov 21, 2008 5:21 pm

Thanks for the help

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


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 8 guests