How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 11.0?

Discuss installation of Scalix software
aramagedec
Posts: 3
Joined: Wed Dec 18, 2013 10:47 am

How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 11.0?

Postby aramagedec » Thu Dec 19, 2013 5:57 am

How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 11.0?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Re: How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 1

Postby ScalixSupport » Mon Dec 23, 2013 6:45 am

Download the Scalix 12.0.3 package and run the scalix installer, selecting the option to upgrade.

aramagedec
Posts: 3
Joined: Wed Dec 18, 2013 10:47 am

Re: How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 1

Postby aramagedec » Mon Dec 23, 2013 9:02 am

Hello.
This is a first that i do. But i have an error: Unsupported OS release: openSUSE 11.0 (i586) on i386.
That can i do now????

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 1

Postby BaldBoy » Tue Jan 07, 2014 9:33 am

Hello aramagedec,
Scalix's compatibility list does not onclude OpenSUSE. You can find them here http://www.scalix.com/37-english/support/388-scalix-12-0-3-release-notes#mozTocId9842

Therefore you might have these options available assuming you're testing a migration process using a staging environment (i.e. not a live one).
  • Try launching scalix-installer with --override-release=SLES10 and look if the setup/upgrade process works
  • If previous step fails you might want to follow Manual Installation instructions depicted here : http://www.scalix.com/wiki/index.php?title=Manual_Installation
  • If all previous fail you might want to install on a new fresh CentOS machine and after a successful install you might want to move your current mailboxes there.

Hope it helps.

aramagedec
Posts: 3
Joined: Wed Dec 18, 2013 10:47 am

Re: How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 1

Postby aramagedec » Wed Feb 19, 2014 7:54 am

Hi.
If I install fresh CentosOS, how I could migrate all settings and mailboxes from old one to a new one???

In WIKI i found only this - http://www.scalix.com/wiki/index.php?title=HowTos/Migrate_Scalix, but it's only create email addresses and type of users, no password and etc.

Help!! Please!!
Thanks.

BaldBoy
Posts: 141
Joined: Fri May 19, 2006 12:45 pm

Re: How to update from Scalix 11.4.6 to 12.0.3 on OpenSUSE 1

Postby BaldBoy » Fri Mar 21, 2014 6:46 am

Hi aramagedec,
the process is a little bit long but might be easiest than you think.
Let's start.

I assume you will have two separate servers: for the purpouse of this example i will imagine your current server host name is "suse.mynet.com" while your new server hostname will be "centos.mynet.com".

First of all you need to prepare an archive of "all" data contained by your current Scalix setup (on SuSE). Relevant data are contained in /var/opt/scalix/xx/s/ (where xx is the code of your current setup - in current example will be "se"): to do that simply halt all scalix running services and sendmail and do a backup copy of the "s" directory in the node directory

Code: Select all

cd /var/opt/scalix/se
tar -czvf mybackuparchive.tar.gz s/

Store your archive in a safe place.

Then on a new fresh CentOS do install Scalix 12. When you're done and have verified everything is ok, it's time to move here your backupped data. You will notice that in your new install the node name will change to /var/opt/scalix/cs/. This is important.

Hands on your new server you will want to do the following:

Stop all scalix services and sendmail

Code: Select all

service scalix stop
service scalix-tomcat stop
service sendmail stop


Now you will copy your backup archive here and extract the data. Allow overwriting of existing files.

Code: Select all

cd /var/opt/scalix/co
cp <sourcepathofyourarchive>\mybackuparchive.tar.gz .
tar -xzvf mybackuparchive.tar.gz


Ensure all files are owned by the scalix user and group and that file's mode are ok

Code: Select all

chown -R scalix:scalix /var/opt/scalix/co/s <enter>
omcheck -s -d > /tmp/scalixfix.sh <enter>
sh /tmp/scalixfix.sh <enter>


Now we have to change the hostname from the "old" one to the new

Code: Select all

sxmodfqdn -o suse.mynet.com -n centos.mynet.com <enter>


This procedure scans all internal entities and make adjustements. Nevertheless we have to make changes to other configuration files:

Code: Select all

source /opt/scalix/global/config; \
  for i in /var/opt/scalix//* ; do \
   if [ $i != $OMDATADIR ]; then \
   sed -i -e 's/suse.mynet.com/centos.mynet.com/g' \
    `grep -iRl suse.mynet.com $i 2>/dev/null \
    | egrep -iv 'centos.mynet.com|logs|indexes|postgres/data' \
    | xargs`; fi; done <enter>


To be sure of our job let's run

Code: Select all

source /opt/scalix/global/config; for i in /var/opt/scalix//* ; do \
if [ $i != $OMDATADIR ]; then grep -iR $OMHOSTNAME $i 2>/dev/null| egrep -iv 'logs|indexes|postgres/data'; \
fi; done <enter>

and should get an output like this:

Code: Select all

/var/opt/scalix/co/caa/scalix.res/config/ubermanager.properties:ubermanager.query.server=centos.mynet.com
/var/opt/scalix/co/caa/scalix.res/config/ubermanager.properties:ubermanager.console.localDomains=centos.mynet.com
/var/opt/scalix/co/mobile/mobile.properties:platform.url=centos.mynet.com
/var/opt/scalix/co/platform/platform.properties:imap.host=centos.mynet.com
/var/opt/scalix/co/platform/platform.properties:smtp.host=centos.mynet.com
/var/opt/scalix/co/platform/platform.properties:hibernate.connection.url = jdbc:postgresql://centos.mynet.com:5733/scalix
/var/opt/scalix/co/res/config/res.properties:res.ubermanager.host=centos.mynet.com
/var/opt/scalix/co/res/config/res.properties:res.kerberos.allowedclients=ubermanager/centos.mynet.com
/var/opt/scalix/co/webmail/swa.properties:swa.email.domain=centos.mynet.com
/var/opt/scalix/co/webmail/swa.properties:swa.email.imapServer=centos.mynet.com
/var/opt/scalix/co/webmail/swa.properties:swa.email.smtpServer=centos.mynet.com
/var/opt/scalix/co/webmail/swa.properties:swa.platform.url=http://centos.mynet.com:8080/api
/var/opt/scalix/co/webmail/swa.properties:swa.ldap.1.server=centos.mynet.com
/var/opt/scalix/co/webmail/swa.properties:swa.ldap.2.server=centos.mynet.com


We're almost there but we're not quite done yet.
Still we have to do some changes on SIS properties for each account.

Code: Select all

omshowu -m all| while read line; do ommodu "$line" --index `omshowu -n "$line"|grep -i sis|\
sed -e 's/^.*suse.mynet.com/sxidx:\/\/centos.mynet.com/g'`; done <enter>


To check users has the proper SIS URL simply do :

Code: Select all

omshowu -n sxadmin <enter>

and should get something like this:

Code: Select all

Authentication ID: sxadmin
...
SIS URL : sxidx://centos.mynet.com/<whatever>

Note the new hostname ?

One last step. We have to modify the default mailnode. In fact if you type:

Code: Select all

# omshowmnmp <enter>
suse suse.mynet.com

you still get the "old" hostname. Therefore we have to change it.

Code: Select all

# omdelmnmp suse <enter>
  Disabling 1 subsystem(s).
  Directory Relay Server Stopped
  Enabling 1 subsystem(s).
  Directory Relay Server Started

# omaddmnmp centos centos.mynet.com <enter>
  Disabling 1 subsystem(s).
  Directory Relay Server Stopped
   Enabling 1 subsystem(s).
   Directory Relay Server Started

# omshowmnmp <enter>
   centos centos.mynet.com


That's it.
You can now start your new server which now holds all old mailboxes.

Stevenbem
Posts: 2
Joined: Wed Jan 07, 2015 7:39 am

How to update from Scalix 11 4 6 to 12 0 3 on OpenSUSE 11 0

Postby Stevenbem » Wed Jan 07, 2015 7:51 am

huhu
i want to update the manual collection to the latest version
but the infomation how to do it is wrong.
i cant find in the tutorial all listet files.
anyone update it already?
thx
ciao
dreamer76


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests

cron