[Ilugc] CentOS Existing host to new host with all data/files

  • From: mehul.n.ved@xxxxxxxxx (Mehul Ved)
  • Date: Tue, 22 Oct 2013 21:53:46 +0530

On Tue, Oct 22, 2013 at 5:57 PM, ????? ?????? <ganeshtheone at gmail.com> wrote:

Our management decided to move our production server from existing provider
to azure.

My experience with Azure was horrid. Hope you have better luck.

We have centOS on both. It is for classified's related site, considerable
amount of data and ~thousands users with their disc space quota.

Do keep your old machine in place till you're sure everything is
working on the new machine, even if it means paying for an idle
machine for a month or two. It might end up being invaluable in case
something isn't moved correctly or left out.
I'll also suggest you have a complete description of what you have on
your server and document it somewhere, if you don't already, and keep
updating it so you don't miss out on anything.

This is our first time moving our servers. I need your Guidance and
suggestions on these.
1) How to migrate the mysql db.

mysqldump works pretty neatly for DBs, but you'd also want to keep
usernames and passwords also intact. To start with, have a look at
http://www.cyberciti.biz/tips/move-mysql-users-privileges-grants-from-one-host-to-new-host.html

2) How to manage the emails during the downtime.

You don't need to have a downtime. Look at imap proxy for the same.
There was a really good thread on one of the ILUG lists. I'll pass it
across if I can dig it out. It covered this topic really well.

3) Manage the files

Manage? You can just use rsync to sync the files between both the machines.

5) Anything that I missed out!.

Your configurations. Write scripts to handle installation and
configuration or use readymade tools for the same wherever possible.

My intention is not to pass on my work to someone.But I'm looking for
earlier experiences who have done this before.All I wanted is some *need
advice on best approach,working reference and Suggestions*,Since I can't
try all the resources available on live.This is the reason am here.

Also, consider hiring a consultant who'll plan it out and you be the
one who executes it. That way you'll gain experience and at the same
time not lose important data. It can be more costly to lose data or
time as opposed to hiring an experienced hand.

Other related posts: