moving mail store to another server and upgrade to 11.2

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

mdraghici
Posts: 25
Joined: Thu Jan 04, 2007 1:20 pm

moving mail store to another server and upgrade to 11.2

Postby mdraghici » Mon Nov 05, 2007 3:05 pm

Hello,

I am trying to move my scalix server to another machine. Currently I am running Scalix 11.1 on openSUSE 10.1 and I plan to move to Scalix 11.2 on OSS 10.2. If this works I will afterwards try to move to a production server like centOS. I searched through the forums and I tried several times to do the move but it always fails when I try to start the scalix services.

The steps I followed for the move I got them from one of Florian's posts:

1. Build the new system preserving hostname and IP
2. Make sure you create user and group scalix with the SAME Linux user and group id as on the old system (copy entries in /etc/passwd, /etc/shadow, /etc/group)
3. Copy /etc/opt/scalix/instance.cfg and the whole /var/opt/scalix/??/s directory. I used tar to archive the directory, moved it to the new server and extract it
4. Run Scalix Installer. It should see/find the existing message store and pick it up.

now, when I type /etc/init.d/scalix start it says FAILED

I am stuck. The installer log says that install was successful. Can anyone point me in the right direction.

thx in advance for all the help

kanderson

Postby kanderson » Mon Nov 05, 2007 3:52 pm

Can you post the output from /var/opt/scalix/??/s/logs/fatal.

Also the output from omstat -s and omstat -a

Thanks
Kev.

mdraghici
Posts: 25
Joined: Thu Jan 04, 2007 1:20 pm

re:

Postby mdraghici » Tue Nov 06, 2007 1:40 am

Kev,

there is nothing in fatal log and there are no other log files created in this folder. When I moved the data store I deleted the old logs thinking that the errors will be written in new log files. I need to start figuring where to start looking for the problem.

omstat -a

Code: Select all

PC Monitor                    Aborted        NON-STOP       0
Directory Relay Server        Stopped        11.05.07
Notification Server           Stopped        11.05.07       0
Shared memory daemon          Aborted        NON-STOP
Notification Monitor          Aborted        NON-STOP
Session Monitor               Aborted        NON-STOP
Indexer                       Aborted        NON-STOP
Stats Daemon                  Aborted        NON-STOP
Container Access Monitor      Aborted        NON-STOP
Item Structure Server         Stopped        01.06.07
Database Monitor              Stopped        11.05.07
Licence Monitor Daemon        Aborted        NON-STOP
LDAP Daemon                   Stopped        11.05.07
Queue Manager                 Aborted        NON-STOP
Item Delete Daemon            Aborted        NON-STOP
IMAP Server Daemon            Stopped        11.05.07
SMTP Relay                    Stopped        11.05.07
Mime Browser Controller       Stopped        11.05.07
Event Server                  Stopped        11.05.07



omstat -s

Code: Select all

Service Router                Stopped        11.05.07       -
Local Delivery                Stopped        11.05.07       -
Internet Mail Gateway         Stopped        11.05.07       -
Local Client Interface        Disabled       11.05.07       -
Remote Client Interface       Disabled       11.05.07       -
Test Server                   Stopped        11.05.07       -
Request Server                Stopped        11.05.07       -
Print Server                  Stopped        11.05.07       -
Bulletin Board Server         Stopped        11.05.07       -
Background Search Service     Stopped        11.05.07       0
CDA Server                    Stopped        11.05.07       0
POP3 interface                Stopped        11.05.07       -
Omscan Server                 Stopped        11.05.07       0
Archiver                      Stopped        11.05.07       -


thx
~mircea

kanderson

Postby kanderson » Tue Nov 06, 2007 1:58 am

so if you type omrc, none of the logs (especially fatal) are recreated, and there's no useful errors given?

My gut is that this will be permissions. Can you post the output from "ls -alh /var/opt/scalix/??/s/" I don't know it for sure, but that's my immediate gut feel...

Kev.

mdraghici
Posts: 25
Joined: Thu Jan 04, 2007 1:20 pm

re:

Postby mdraghici » Tue Nov 06, 2007 2:50 am

Thanx Kev for the fast reply.

I run the omscan tool and found some file permissions that were improper. Run the script and fixed those. Next I run the installer again to reconfigure scalix components but still nothing started.

Next step, I uninstalled scalix completely keeping the message store in place. I reinstalled scalix and it still does not start. I do have a fatal log now that shows this:

Code: Select all

ERROR                   Omscan Server (Omscan Tool   ) Tue Nov  6 08:14:53 2007
[OM.DMON 380] The container access monitor is not running.
Pid of logging process: 7783


ERROR                   Administration(Scalix Admin C) Tue Nov  6 08:17:45 2007
[SYS 2] No such file or directory
Pid of logging process: 8843
Current errno value: 2



when i type omrc i get this error message

Code: Select all

ERROR: Inconsistency found between version files in sys and lib
directories. This means that the patch levels of the Scalix shared
library and binary areas do not match. Scalix cannot be started until
this is resolved.



I know I have seen this error before in the forums but I cannot find a solution for this

this is the listing of the s directory

Code: Select all

total 896K
drwxrwxr-x  54 scalix scalix 4.0K Oct 11 22:29 .
drwxr-xr-x  11 scalix scalix 4.0K Nov  6 08:43 ..
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 Copyright
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 License
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 LicenseKeys
drwxrwx--x   9 scalix scalix 4.0K Jan  6  2007 acl
drwxrwxr-x   2 scalix scalix 4.0K Nov  5 19:43 admin
drwxrwx---   3 scalix scalix 4.0K Jan  6  2007 bb
drwxrwx---   3 scalix scalix 4.0K Jan  6  2007 cda
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 csetconv
drwxrwx--- 217 scalix scalix 4.0K Oct  8 10:27 data
drwxrwx---   3 scalix scalix 4.0K Jan  6  2007 dblogs
drwxrwx--x   2 scalix scalix 4.0K Mar 20  2006 diag
drwxrwx---   3 scalix scalix 4.0K Mar 20  2006 dir
drwxrwx---   2 scalix scalix 4.0K Oct 30 10:23 dirchlog
drwxrwx---   2 scalix scalix 4.0K Mar 20  2006 dits
drwxrwx---   2 scalix scalix 4.0K Mar 20  2006 ds
drwxrwx---   2 scalix scalix 240K Nov  5 19:43 indexwork
drwxrwxr-x   3 scalix scalix 4.0K Mar 20  2006 is
drwxrwx--x   2 scalix scalix 4.0K Mar 20  2006 lic
drwxrwxr-x   2 scalix scalix 4.0K Nov  6 08:45 logs
drwxr-xr-x   3 root   root   4.0K Jan  6  2007 ml
drwxrwx--x   2 scalix scalix 4.0K Mar 20  2006 msglists
drwxrwx--x   2 scalix scalix 4.0K Apr  5  2006 msgpool
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 nits
drwxrwxr-x  15 scalix scalix 4.0K Mar 20  2006 nls
drwxrwxr-x   3 scalix scalix 4.0K Nov  5 19:43 notifs
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 notify
drwxr-xr-x   2 root   root   4.0K Nov  5 19:35 oldDbLogs
drwxrwxr-x  51 scalix scalix 4.0K Jul  2 15:50 omhtml
drwxrwx---  78 scalix scalix 4.0K Nov  1 22:28 orphans
drwxrwxr-x   2 scalix scalix 4.0K Jan  6  2007 plugin
drwxrwx---   2 scalix scalix 4.0K Mar 20  2006 pmove.store
drwxrwx---   2 scalix scalix 4.0K Nov  5 19:35 pop3
drwxrwx--x   2 scalix scalix 4.0K Mar 20  2006 queues
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 release.cst
drwxrwxr-x   8 scalix scalix 4.0K Jul  2 15:50 release.sys
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 release.tou
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 req
drwxrwx---   2 scalix scalix 4.0K Jul 26  2006 rules
drwxrwxrwx   2 root   root   4.0K Jul  2 15:50 rules.eg
drwxrwx--x   2 scalix scalix  12K Nov  1 19:09 scan.serv
drwxrwx--x   3 scalix scalix 4.0K Nov  1 22:28 scan.work
drwxrwxr-x   2 scalix scalix 4.0K Nov  5 19:35 se
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 structdb
drwxrwxr-x   2 scalix scalix 4.0K Nov 21  2006 structlog
drwxrwxr-x  18 scalix scalix 4.0K Nov  1 14:09 sys
drwxrwx--x   4 scalix scalix  44K Nov  6 08:43 temp
drwxrwxrwx   2 scalix scalix 392K Nov  6 08:48 tmp
drwxrwxr-x   2 scalix scalix 4.0K Jul  2 15:50 toupper
drwxrwx---   2 scalix scalix 4.0K Mar 20  2006 trace
drwxrwx--x 210 scalix scalix 4.0K Nov  1 14:08 user
drwxrwxr-x   2 scalix scalix 4.0K Mar 20  2006 webusers
drwxrwx--x   2 scalix scalix 4.0K Mar 20  2006 xport.hold



thx again for all your help

~mircea

mdraghici
Posts: 25
Joined: Thu Jan 04, 2007 1:20 pm

SOLVED

Postby mdraghici » Tue Nov 06, 2007 3:05 am

Kev,

I managed to install the server. I found the problem to be connected to the different version that the message store had in /var/opt/scalix/fa/s/sys/version

I changed the entry in this file to the one from omvers and then reconfigured the server using the scalix installer.

this post was useful in that direction http://www.scalix.com/forums/viewtopic.php?t=6920&postdays=0&postorder=asc&start=15

thanx for your help

best regards

~mircea
Last edited by mdraghici on Tue Nov 06, 2007 12:12 pm, edited 1 time in total.

a.schild
Posts: 224
Joined: Wed Feb 14, 2007 5:10 pm

Re: moving mail store to another server and upgrade to 11.2

Postby a.schild » Tue Nov 06, 2007 5:34 am

Hello,

we are just at the point where we will do the very same thing.
Are the steps below still the "correct" ones or did you have to do something additionally ?

mdraghici wrote:Hello,
1. Build the new system preserving hostname and IP
2. Make sure you create user and group scalix with the SAME Linux user and group id as on the old system (copy entries in /etc/passwd, /etc/shadow, /etc/group)
3. Copy /etc/opt/scalix/instance.cfg and the whole /var/opt/scalix/??/s directory. I used tar to archive the directory, moved it to the new server and extract it
4. Run Scalix Installer. It should see/find the existing message store and pick it up.


In step 4. did you install Scalix 11.1 or directly 11.2 ?

André

kanderson

Postby kanderson » Tue Nov 06, 2007 11:47 am

That error, about the different versions of libraries and executables should be resolved by running ompatchom.

Even though the versions match now, I'd recommend running it anyway.

It'll take a couple of mins to complete.

Kev.

mdraghici
Posts: 25
Joined: Thu Jan 04, 2007 1:20 pm

Postby mdraghici » Tue Nov 06, 2007 12:11 pm

Andre, in step 4 I installed directly 11.2. Kev, thanx for your help. I will run ompatchom to make sure everything works properly

a.schild
Posts: 224
Joined: Wed Feb 14, 2007 5:10 pm

Postby a.schild » Fri Nov 09, 2007 3:40 am

Hello,

last night we did sucessfully upgrade from Suse 10.1 Scalix 11.1.x to CentOS 5 and Scalix 11.2.

Of course there where some obstacles, otherwise I would have got too much sleep :twisted:

Basically I did it as was mentioned in this thread.
The obstacles:

- The datapartition was reiserfs, and Centos default kernel does not come with reiserfs support. After adding the centos plus repository and installing the new kernel as described here http://wiki.centos.org/Repositories/CentOSPlus I had access to the data again.

- During the install I got the error message that it could not start postgres. It turned out that I had to remove all /var/opt/scalix/??/* files, except the /var/opt/scalix/??/s folder. (I did a inplace upgrade)

- The file /var/opt/scalix/??/s/sys/version did not got updated with the new version, so I had to update it manually

- Last the apache did not start because the file /opt/scalix/global/httpd/scalix-web-client.conf was missing. I copied it over from the old installation and then things got running. This one is a bit strange, but might result from the fact that I had removed the 11.2 packages and reinstalled them once more.

But now everything is OK and running smooth.
The installer did a good job, thanks to you all.

André


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests

cron