Moving Scalix to a new server - revisited

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

bluemike
Posts: 202
Joined: Fri Oct 28, 2005 1:30 pm
Location: Everett,WA
Contact:

Moving Scalix to a new server - revisited

Postby bluemike » Tue Dec 27, 2005 1:34 pm

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?

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Jan 03, 2006 6:23 am

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

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Tue Jan 03, 2006 10:24 am

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

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Jan 04, 2006 5:01 am

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.
Florian von Kurnatowski, Die Harder!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 26 guests

cron