Page 1 of 1

Moving Scalix to a new server - revisited

Posted: Tue Dec 27, 2005 1:34 pm
by bluemike
I have been trying for the past week or so to sucessfully move my Scalix sevices to a new server.

Here's what I have done so far:

--Installed FC4 & Scalix on new server
--Stopped Scalix & Tomcat on both servers
--On the new server, CD'ed to /var/opt/
--Ran this:

Code: Select all

scp -Crp root@old.server.ip :/var/opt/*

The transfer appeared to suceed, but upon inspection it did not. I got some of the files, and (for some reason) every file from the root desktop.
--Repeated this step for the /etc/opt/scalix directory
--Started Scalix on the new server. None of the users were listed in SAC.
--Stopped Scalix again
--After scp apparently failed I used

Code: Select all

cp -Rp
to copy the /var/opt/scalix/ directory to the same directory on the new server
--Tried started Scalix again. It hung for about 3 minutes, and then said:

Code: Select all

omon : [SYS 13] Permission denied


So I am once again reminded that I am a complete n00b. Did I miss a step? I only have a few users, so I am willing to re-create the accounts if needed. But I really don't want to lose all the old messages. Is there a way I can just export/move those?

Posted: Tue Jan 03, 2006 6:23 am
by Valerion
Scalix is very sensitive about file permissions, and I don't think scp preserved them. The best way to accomplish what you're trying, is to

1) Install Scalix, with an empty mailstore
2) Stop Scalix
3) On the original machine make a tar archive of the mailstore
4) Copy that over to the new machine
5) Extract it
6) Start Scalix and test.

If you just want to fix the permissions, you can try

1) omcheck -i -s > omcheck.i.sh
2) sh ./omcheck.i.sh
3) omcheck -d -s > omcheck.d.sh
4) sh ./omcheck.d.sh

Posted: Tue Jan 03, 2006 10:24 am
by Valerion
Valerion wrote:Scalix is very sensitive about file permissions, and I don't think scp preserved them. The best way to accomplish what you're trying, is to

1) Install Scalix, with an empty mailstore
2) Stop Scalix
3) On the original machine make a tar archive of the mailstore
4) Copy that over to the new machine
5) Extract it
6) Start Scalix and test.


Mmmm ... mistype up above ...

Between 1 and 2 above there should be a

1b) Stop Scalix
1c) Rename the directory the empty mailstore is in.

This, of course, assumes both servers have the same version of Scalix

Posted: Wed Jan 04, 2006 5:01 am
by florian
I agree with the scp statement; believe in a similar post in the last few days i've discussed this in greater detail; Mentioning omcheck when fixing up file permissions problems is very helpful, thanks for the pointer.

-- f.