Importing an Existing TiDB Cluster with TiUP

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tiup导入现有tidb集群

| username: Alan

Since the server is in an intranet environment and the tiup tool was not used during offline deployment, I now want to use tiup to manage the cluster. How can I import the existing TiDB cluster into tiup? Seeking expert advice.

| username: Jellybean | Original post link

The official website has detailed introduction steps, you can take a look. I remember the process is relatively simple and not complicated.

| username: 啦啦啦啦啦 | Original post link

Follow the method for handling lost tiup

| username: 昵称想不起来了 | Original post link

tiup cluster import

| username: tidb菜鸟一只 | Original post link

Write the topology.yaml file according to the configuration of the existing cluster, then

tiup cluster deploy tidb-xxx <version number of the existing cluster> topology.yaml

After that, you can see the current cluster with

tiup cluster display tidb-xxx

Then check to confirm that all configurations are consistent, and you will be able to manage the existing cluster through tiup.

| username: 像风一样的男子 | Original post link

You can refer to the FAQ posted by a previous classmate:

| username: zhanggame1 | Original post link

Do we need to do this in the current environment?

| username: Alan | Original post link

Thank you all for your answers.

| username: Alan | Original post link

Okay, thank you.

| username: tidb菜鸟一只 | Original post link

Find a separate machine that can access this batch of machines, or one of the machines will do. It’s just for the control machine.

| username: Kongdom | Original post link

:thinking: How to deploy without using the tiup tool if it was not used during deployment?

| username: zhanggame1 | Original post link

There was no tiup in the early deployment of TiDB, right?

| username: Kongdom | Original post link

But his version has already reached 6.1!

| username: Alan | Original post link

To explain, the cluster deployment was done by someone internal to TiDB. I am responsible for data import, and I couldn’t find the tiup tool, which is why I posted this question. Thank you, everyone.

| username: zhanggame1 | Original post link

It is possible that they installed tiup on their own computers and took the computers with them after setting up the cluster.

| username: Kongdom | Original post link

:+1::+1::+1: No wonder, no wonder, it’s original manufacturer support. Envious~

| username: 像风一样的男子 | Original post link

Don’t you VIP members have an internal ticket system? You can ask them.

| username: Alan | Original post link

I already asked him to install it on one of the machines, but he didn’t configure the environment variables and also moved the folder, so it couldn’t be found.