Mail Server Migration [message #144621] |
Tue, 18 December 2018 21:32  |
DeepThought
Messages: 72 Registered: March 2014
|
|
|
|
I'm going to be migrating my mail server to a new Apple Mac mini (which will be running mirrored SSDs and a Pegasus RAID server for the data store. Currently the server is on a Mac mini running a standard mirror with the data store locally.
Has anyone got ay suggestions on the best way to migrate? I assume moving the data store to the external Pegasus first, then performing a full backup from the old MacMini and restoring to the new Mac mini?
Cheers
|
|
|
Re: Mail Server Migration [message #144622 is a reply to message #144621] |
Wed, 19 December 2018 11:04   |
bm
Messages: 57 Registered: July 2008
|
|
|
|
1. Install new Kerio
2. Stop all services on new Kerio
3. RSYNC Datastore (via terminal or CCC)
4. Stop old Kerio services
5. Repeat step 2
6. Copy config from old to new Kerio
7. Shut down old Kerio
8. Change IP/host on new Kerio (to old one) and datastore paths in config
9. Start new Kerio
[Updated on: Wed, 19 December 2018 11:10] Report message to a moderator
|
|
|
Re: Mail Server Migration [message #144624 is a reply to message #144622] |
Wed, 19 December 2018 12:30   |
DeepThought
Messages: 72 Registered: March 2014
|
|
|
|
Thanks bm - so you're saying to do the whole migration in one go?
Could you clarify in step 5 why you'd repeat step 2 - Stop all services on new Kerio - they'd already be stopped wouldn't they?
Is there a Kerio kb on copying the config?
Thanks again
|
|
|
|
Re: Mail Server Migration [message #144663 is a reply to message #144624] |
Thu, 27 December 2018 14:25   |
robvas
Messages: 4 Registered: November 2018 Location: USA
|
|
|
|
philstone wrote on Wed, 19 December 2018 06:30Thanks bm - so you're saying to do the whole migration in one go?
Could you clarify in step 5 why you'd repeat step 2 - Stop all services on new Kerio - they'd already be stopped wouldn't they?
Is there a Kerio kb on copying the config?
Thanks again
The first stop is for the old server, second is for the new server
|
|
|
Re: Mail Server Migration [message #144694 is a reply to message #144663] |
Wed, 02 January 2019 15:32   |
Maerad
Messages: 275 Registered: August 2013
|
|
|
|
Here's how I did it:
- Stop Kerio service on old server
- Install Kerio on the new server, stop it right away (just to be sure that everything you need is installed) and copy the mailserver.cfg somewhere else
- Copy your kerio folder from the old server into the new one
- Go into the mailserver.cfg from the "new" install and look up the new path. Copy that, close the file, open the old one in you kerio folder on the new server and do a "search and replace" to change the old dir to the new one.
- Start the services and be done. Or do a reboot :3
|
|
|
|
Re: Mail Server Migration [message #144728 is a reply to message #144624] |
Sat, 05 January 2019 13:39   |
Backspin
Messages: 130 Registered: June 2008 Location: Amsterdam, the Netherland...
|
|
|
|
philstone wrote on Wed, 19 December 2018 12:30
Could you clarify in step 5 why you'd repeat step 2 - Stop all services on new Kerio - they'd already be stopped wouldn't they?
Seems like a type to me, he probably means repeat step 3. That would make more sense.
Step 3 syncs all your data to the new server, while the old server is still running. This way, you won't have downtime during sync (Otherwise, if you have a lot of data to copy, you could have considerable downtime).
However, because you are syncing a live server, it is possible that files are changed after or during sync, so you won't have an exact copy.
This is why you stop the old kerio in step 4, and then rsync again in step 5. Because you are using rysnc, only changed and new files are synced, so this sync will be much faster than the first sync from step 3. And because the old kerio is now stopped, there won't be any changing or new files during sync, so this time you will end up with an exact copy.
The 2 methods from the knowledgebase article on migrating do work, but both cause considerable downtime because you are copying your full datastore while your old server is stopped, so effectively your services are down as long as it takes to copy all your data.
Backspin IT - http://www.backspin.nl
|
|
|
|
Re: Mail Server Migration [message #144735 is a reply to message #144621] |
Mon, 07 January 2019 10:07  |
DeepThought
Messages: 72 Registered: March 2014
|
|
|
|
Thanks all - I did the migration and it all went smoothly. Seeing as the new server was blank I stopped them both at the same time, copied the data across and restarted the services and all went in fine.
Thanks again.
|
|
|