Postby florian » Tue Dec 27, 2005 1:57 pm
A few suggestions to improvide this procedure....
1. All the files in /var/opt/scalix are owned by user "scalix", group "scalix", so if you want to avoid permission problems, you should be creating the user and group with the same UID and groupid as on the old server, i.e. on the old server do
old # grep scalix /etc/passwd
scalix:x:101:103:Scalix User:/var/opt/scalix:/bin/true
101 is your user id, 103 is your group id. On the new Server, create user and group with the same parameters:
new # groupadd -g 103 scalix
new # useradd -u 101 -g 103 -c "Scalix User" -d "/var/opt/scalix" -m -s /bin/true
2. as it is faster, I would suggest using nfs between the two boxes:
On the old Server, export the old Filesystem:
In /etc/exports, add a line reading:
/var/opt/scalix new.server.hostname(ro,async,no_root_squash)
Make sure your nfs server is started:
old # /etc/init.d/nfs start
old # /etc/init.d/nfslock start
Make sure the FS is really exported:
old # exportfs -a
Check that the FS has really been exported:
old # showmount -e
On the new server, mount the filesystem over nfs
# mount -t nfs old.server.hostname:/var/opt/scalix /mnt
Copy over all the files, unmount
# cp -a /mnt/* /var/opt/scalix
# umount /mnt
3. I would only install your Scalix server now, using our normal installer; do a typical install; during install, it will say that there is only a message store and if you want to remove it; obviously, don't.
4. After installation, some configuration in /var/opt/scalix will still contain the old hostname. You need to fix this. One thing is to run the sxmodfqdn command:
new # sxmodfqdn -o old.server.hostname -n new.server.hostname
Another is to check the /var/opt/scalix/sys/smtpd.cfg config files and change.
Then, you should also check your mainode mapping by issueing the
new # omshowmnmp
command.
This will display something like:
gr old.server.hostname
saruman,bamail old.server.hostname
For each line, then issue a omaddmnmp command, in this example:
new # omaddmnmp gr new.server.hostname
new # omaddmnmp saruman,bamail new.server.hostname
Warning! If any of the names in the first column contains your server hostname, DON'T change this. This is your mailnode name, which, by default, will be based on the servers hostname. This SHOULD NOT be changed unless you want to end up with a lot of unrepliable email and lots of trouble down the road. It's only a name, after all.
After this, restart scalix.
omshut
omrc
Believe everything should work all right now. As said before, Outlook profiles are a likely source of trouble, you might need to rework those.
At best, give the new machine the same hostname as the old. This saves a lot of work. Give them different IP addresses. In that case, in all the NFS-related commands up there, use your server IP address instead of the hostname.
Note: old.server.hostname and new.server.hostname are supposed to be your fully qualified hostnames, such as scalix-server.us.company.com or so.
Note-2: the commands up there and file locations are RedHat; hope it's the same for SuSE in case you're using this OS. I didn't check.
Note-3: I typed most of this from my memory, so minor typos might apply - in general I think the procedure should be just fine!
Tell us how it went, cheers,
Florian.
You might also want to check all config files in /var/opt/scalix, i.e.
new # cd /var/opt/scalix
new # grep old.server.hostname *
new # grep old *
And if you find anything, correct it. Lik
Florian von Kurnatowski, Die Harder!