What is the right way of making a copy of existing cluster

Thanks, ajbeamon.

I’ve tried it, it works great!

My problem was
that I’d copied all data files including the coordinators’ data files, but I used the new cluster file with a new cluster id.

The working procedure:

  1. Shut both source and destination clusters down completely
  2. Copy all contents of the data dirs
  3. Merge cluster files from two clusters into the new one. Take the first part (cluster description and cluster id) from the source cluster and the second part (the list of coordinator processes) from the destination cluster. Use it as the new destination cluster file.
  4. Start both source and destination clusters up

The only problem is there are two clusters with the same cluster id. How can I change it for the clone-cluster?

1 Like