Page 1 of 2
Data from Scalix 10 to 11
Posted: Wed Feb 07, 2007 10:07 am
by Jean-Denis
Hi,
For the moment Scalix 10.0.1 is running on a server.
I just install with success Scalix 11.0.1 on another server.
Does exist any possibility to transfer data from one to the other ?
Or do I have to upgrade scalix 10 to scalix 11 on the first server first ?
Thank you
Posted: Wed Feb 07, 2007 10:58 am
by Valerion
1) Uninstall Scalix from the second machine, make sure the files and mailstore is gone
2) Transfer /var/opt/scalix from the first machine to the second, taking care to preserve permissions and ownership
3) Install Scalix on the second machine. It will ask you if you want to keep the mailstore, say yes to that.
Scalix will use the old mailstore and upgrade it while the installation happens.
Posted: Fri Feb 09, 2007 8:17 am
by anand_joshi
Hi,
Additional info:-
Please make sure to stop the server while taking the backup of /var/opt/scalix.
Thanks
Posted: Mon Apr 30, 2007 11:31 am
by jillrae
I have 11.0.3 running with my active mail store. I am bringing a new server (bigger, better, faster) on-line. If I follw these same directions: Copy the /var/opt/Sclaix directory and put it on my new server, then install 11.0.3 it will ask if I want to keep the exisitng mail store?
jillrae
Posted: Thu May 03, 2007 5:51 am
by ScalixSupport
Hi!
Yes keep the existing message store and continue installation.
Thanks,
Subir
Posted: Wed May 16, 2007 4:00 pm
by jillrae
OK I copier /var/opt/scalix to my new server (after I uninstalled Scalix 11.0.3 off of it). I then started the Scalix 11.0.3 installer. It never asked itf I wanted to keep the exisitng mail store. In fact it aborts in the middle of the installtion. The install log says that when it tries to create the /var/opt/scalix/lx folder, it already exists and it is not empty. So it aborts.
I tried running the installer to reconfigure the install, but that doesn't work. It finishes, but doesn't install Scalix correctly to run.
Hmmmm. Any ideas?
Thanks
Posted: Thu May 17, 2007 9:19 am
by ScalixSupport
Hi!
Manually uninstall everything from the new server and start afresh, to uninstall follow the
steps below:
1. delete all RPMs of scalix, the ones returned for "rpm -qa | grep scalix"
2. rm -rf /var/opt/scalix* /opt/scalix* /etc/opt/scalix*
3. Stop Scalix Server in the first server, transfer the contents from folder /var/opt/scalix
from the first machine to the second at same folder location, taking care to preserve
permissions and ownership.
3) Install Scalix on the second machine. It will ask you if you want to keep the mailstore, say yes to that.
Hope this helps.
Thanks,
Subir
Posted: Thu May 17, 2007 9:25 am
by jillrae
OK I will prepare the new server per instructions. Just I am copying the vat/opt/scalix/ folder from a tape backup of an sxbackup snapshot. The mailstore was stopped when the snapshot was taken. Will this make a difference? (Instead of doing .tar or somthing liek that.)
Thanks
Posted: Thu May 17, 2007 9:37 am
by ScalixSupport
Hi Again!
I think a sxbackup also creates a tar according to:
http://www.scalix.com/wiki/index.php?ti ... h_sxbackup
anyways, that should not be problem.
Try the steps and let me know the details, keep a track of the scalix installer log that gets
created at /var/log.
Thanks,
Subir
Posted: Thu May 17, 2007 1:31 pm
by jillrae
That worked. Got my backup server up. Thanks. Although I never did get asked if I wanted to keep my mail store. It just went through the setup with no questions.
I can login to my user account and the sxadmin account just fine. But when I try to login to the admin console, it says:
Could not login. Could not fetch server list. Possible problem with administration console.
Also when I do a omstat command, it can't find the command. Is this a pathing problem?
Posted: Fri May 18, 2007 3:09 am
by ScalixSupport
Hi!
Thats OK, so now the server is up and running. The problem that now is to be resolved
is login in SAC.
Firstly, I would request you to perform a permission check on the data folder, check the
permissions for scalix files using the command "omcheck -s -d", to actually fix the
problem if any of permissions, you should run omcheck to generate a shell script - on
standard output - that, when run, fixes the problem for permission issues.
Code: Select all
omcheck -s -d >fix_perms.sh
bash ./fix_perms.sh
You might want to review what the script is planning to do before actually executing
the second command.
Please reply with what do you get result for the command:
Try logging into SAC with what you get next to "Authentication ID" in the above
command.
Also, try the steps mentioned at:
viewtopic.php?p=30358&highlight=#30358
See if these helps.
Thanks,
Subir
Posted: Fri May 18, 2007 8:40 am
by jillrae
I performed the following:
omcheck -s -d >fix_perms.sh
bash ./fix_perms.sh
And it completed with success.
omshowu -n sxadmin
Came back with a normal looking response. (Sorry I can't paste it here. My backup server if stand alone right now.)
I did the steps in the link you also gave and everything responed as expected with no errors.
I can log into the sxadmin mailbox with no problem, but still get the same "Could not login. Could not fetch server list. Possible problem with administration console. "
Error.
Also I got the om commands to run OK, but had to do it from the /opt/scalix/bin directory with a ./ in front of it. On my live server I can run any of the OM commands from the command line without the ./ How do I fix this? I assume it is a pathing thing.
I did notice that when I log into the webmail interface it is very slow. I checked to see if postgres was running. It was not. I tried to start it with the /etc/init.d/ ./scalix-postgres start command, but it failed. Could this be my problem?
Thanks
Posted: Fri May 18, 2007 11:40 am
by ScalixSupport
Hi!
Try these:
1. Reconfigured the DB & the Messaging Service.
2. Edit the file /var/opt/scalix/??/postgres/data/pg_hba.conf
Add the following lines to the beginning of the file, see if things work:
Code: Select all
# List of Scalix Platform hosts begins here
host scalix scalix 192.168.0.242/32 md5
# List of Scalix Platform hosts ends here
Note: For you replace 192.168.0.242 with your scalix server IP address.
Restart scalix-postgres service and see if this helps, else check the postgres logs at
/var/opt/scalix/??/postgres/pgstartup.log.
Command not working is definitely path issue, /opt/bin should be added to PATH
environment variable.
Thanks,
Subir
Posted: Fri May 18, 2007 12:21 pm
by jillrae
Reconfigured the DB & Messaging store.
Edited the /var/opt/scalix/lx/postgres/data/pg_hba.conf file. The IP address of my on-line server was listed in here. I changed it to the IP address of my backup server.
Tried to restart postgres, but it returned "unspecified error"
Checked postgres startup log, but nothing was recored in it.
Do you think there are other places where the on-line server IP address is used and this may cause my problem?
Am working on the PATH thing.
Thanks.
Just FYI. My on-line server and my off-line server both have the same FQDN but have different IP addresses. I want to set them up so they sync with one another for a hot spare and was told that was the way to set them up.
Posted: Fri May 18, 2007 1:34 pm
by Shredder
Did you follow the guide from the Wiki on changing the IP address of the backup server?
Shredder