Migrate from 9 to 11 on a new server

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Migrate from 9 to 11 on a new server

Postby graemef » Fri Feb 09, 2007 3:12 am

I am installing a new scalix 11 server on RHE4 U2. We are currently running a scalix 9.2.1.24 server on FC4.
Can I install the new scalix 11 and get it running then export all users and mailboxes from my old scalix 9 box ?

I am looking for a method with the least transfer time as I want to take the mail server offline, do the transfer then bring the new one online.

I have done a search and have found people saying I need to install scalix 9, transfer the mailboxes, upgrade to 10 then upgrade to 11. I really don't want to do this for a couple of reasons
1. Time to migrate.
2. My existing scalix installation is messy as I was learning on this one. I want to start fresh.

Help please.

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

Postby Valerion » Fri Feb 09, 2007 4:48 am

You can script the following, or do it by hand for fewer users:

1) For each user:
a) do a omcpoutu for the mailbox
b) do a omshowu and store the details

2) Delete Scalix and create a new mailstore on 11

3) For each user
a) Create the user using the same data as in 1b
b) do a omcpinu from the file stored in 1a

And there you go :)

However, please note that omcpoutu does NOT store the mailbox rules, or MAPI properties (permissions on mailboxes, amongst others) at all, nor does it store public folders.

Also, this doesn't preserve the mailstore and its configuration at all. But it doesn't sound like you want that anyway. Just be sure to take a copy of any files you want to preserve (like smtpd.cfg, for example) and merge the results back into the mailstore.

Copying the whole mailstore is still the better route IMO, even if it can take longer to go from 9 -> 10 -> 11. Just note that Scalix 11 doesn't support FC4, but I am sure you know that.

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Postby graemef » Fri Feb 09, 2007 5:32 am

Many thanks for that, there no flash rules or anything set up and there are only about 30 mailboxes or so, so this should be a good way of doing it.

Any linux gurus know how to write a script to extract a list of users, export their mailbox and then import it again on another computer :D

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

Postby Valerion » Fri Feb 09, 2007 5:42 am

Have a look at one of my posts in this thread: viewtopic.php?t=4533

It's an exporter, I will leave the importer as an excercise to you. And of course, this may break your machine. If so you get to keep both pieces ;)

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

Postby florian » Sat Feb 10, 2007 1:05 pm

why would you want to do the export thing at all when you can simply copy over the message store as a whole?

Florian.
Florian von Kurnatowski, Die Harder!

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Postby graemef » Sun Feb 11, 2007 7:11 pm

Does that mean the message store between 9 and 11 is compatible. What do I need to copy for this to work ? Is there a howto anywhere ?
Cheers
Graeme

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

Postby Valerion » Mon Feb 12, 2007 4:38 am

I will agree with Florian, this is not the best way to do it, unless you want to reconstitute the mailstore completely. However, I would recommend going the 9.4 -> 10 -> 11 route if you want to do that, and not 9.4 -> 11.

kanderson

Postby kanderson » Mon Feb 12, 2007 1:29 pm

Keep in mind that Scalix upgrades are really fast and easy.

Plan 15 mins of downtime to go from 9 to 10. And another 15 mins of downtime to go from 10 to 11.0.1.

So you're talking about half an hour in total.

Kev.

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Postby graemef » Tue Feb 13, 2007 7:53 pm

Ok, I have my new scalix 11 server up and running. I have the old server and the new server setup in such a way that I can put a rule on the old server using sxaa to redirect and retain individual users email to the new server. All works well.

What I now want to do is export individual users and import them on the new server. Unfortunately a number of these are over 2GB. When I try the command omcpoutu -n "usernamer/mailnode" -f - > filename I end up with a file call - that stops at 2GB and a file called filename with 0 size. Any hints ???

I am not doing the conventinal upgrade as my original scalix server is a mess and I want a fresh install with only certain mailboxes on it.

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

Postby florian » Wed Feb 14, 2007 11:43 pm

Your problem is http://bugzilla.scalix.com/show_bug.cgi?id=6120 - the "-f -" option is only available for Scalix 9.4.0 onwards.

Either you consider doing an in-place upgrade to Scalix 11 as per other threads in the forum or at least you upgrade your Scalix 9 system to 9.4.2 (which should be extremely painless) and then export your date.

Florian.
Florian von Kurnatowski, Die Harder!

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Postby graemef » Wed Feb 14, 2007 11:52 pm

Unfortunately I can't upgrade at all as it is running on FC3. Guess it is going to be a slow, disruptive process of manually exporting to .pst every box over 2GB.

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

Postby florian » Wed Feb 14, 2007 11:59 pm

No.

You should actually just tar your whole /var/opt/scalix directory, then copy the tar file to your new server, then create a Unix user called scalix and a group called scalix with the exact same UID and GID and other parameter values as on the old server and then run the Scalix 11 installer. It should see that there is already a message store, offer you to keep it and upgrade in place.

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

graemef
Posts: 81
Joined: Mon May 23, 2005 6:52 am

Postby graemef » Thu Feb 15, 2007 12:52 am

Is there anywhere I can download a full version of 10 to do a stepped migration to 11 ? I found a download, but it only contains RPM's and no installer.

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

Postby florian » Thu Feb 15, 2007 12:57 am

you can get it at

http://www.scalix.com/community/downloa ... equest.php

just fill in your email address and you'll have a choice to download 10.0.5 or 11.0. however, if you copy over the mdssage store (and otherwise do a fresh install), you can also go for scalix 11 directly.

Florian
Florian von Kurnatowski, Die Harder!

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

Postby florian » Thu Feb 15, 2007 12:58 am

by the way - one thing that will make your upgrade experience easier ... if you can, give the new machine the same hostname as the old one....

-- f.
Florian von Kurnatowski, Die Harder!


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 6 guests

cron