Page 1 of 2
Migrate from 9 to 11 on a new server
Posted: Fri Feb 09, 2007 3:12 am
by graemef
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.
Posted: Fri Feb 09, 2007 4:48 am
by Valerion
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.
Posted: Fri Feb 09, 2007 5:32 am
by graemef
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

Posted: Fri Feb 09, 2007 5:42 am
by Valerion
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

Posted: Sat Feb 10, 2007 1:05 pm
by florian
why would you want to do the export thing at all when you can simply copy over the message store as a whole?
Florian.
Posted: Sun Feb 11, 2007 7:11 pm
by graemef
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
Posted: Mon Feb 12, 2007 4:38 am
by Valerion
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.
Posted: Mon Feb 12, 2007 1:29 pm
by kanderson
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.
Posted: Tue Feb 13, 2007 7:53 pm
by graemef
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.
Posted: Wed Feb 14, 2007 11:43 pm
by florian
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.
Posted: Wed Feb 14, 2007 11:52 pm
by graemef
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.
Posted: Wed Feb 14, 2007 11:59 pm
by florian
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.
Posted: Thu Feb 15, 2007 12:52 am
by graemef
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.
Posted: Thu Feb 15, 2007 12:57 am
by florian
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
Posted: Thu Feb 15, 2007 12:58 am
by florian
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.