I have a question about data migration. We’re moving from Data Center ‘A’ to Data Center ‘B’, and we have a 3-node YugabyteDB cluster set up in Data Center ‘A’. We want to migrate the data from the cluster in Data Center ‘A’ to the cluster (yet to be set up) in Data Center ‘B’. Could you please recommend the best approach for this migration? Thank you!
Hi @parvez
The best way is described in Change cluster configuration | YugabyteDB Docs.
You add all new nodes in DC-B, move data there, and remove DC-A nodes.
Hi @parvez
I wanted to check how the existing clusters are deployed. Do you use yugabyted CLI or yb-master/yb-tserver CLI. Depending on this, some of the steps may differ on how to start the 2nd cluster with the right flags.
Can you please provide us with details of your current deployment?
Thanks,
Nikhil Chandrappa
yugabyted Product Lead
Hi @nmalladi, We are using yugabyted to start, stop, and status
Hi @dorian_yugabyte, Thanks for sharing the link. Let me go through it.
Hi @parvez ,
Thanks for the details.
From the docs that Dorian shared,
-
For steps 2 - 3, you need to follow yugabyted steps for starting the nodes. You don’t need to rerun the
yugabyted configure
command after the new nodes in DC2 are started. It will be configured in the below step. -
From steps 4 -7, you can follow the documented steps.
Hi @nmalladi, Got it. Thank you!
I also came across this document Back up and restore data | YugabyteDB Docs and Distributed snapshots for YSQL | YugabyteDB Docs
any thoughts ?
Snapshot + restore works too but it will be offline migration.