How to Use TiDB Cluster Commands on Machines Not Deployed with TiDB Cluster

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

Original topic: tidb集群在非部署集群的机器上如何使用tidb集群命令

| username: TiDBer_vJpITQ5J

[TiDB Usage Environment] Production Environment
I deployed a TiDB cluster on three servers: 10.200.78.51, 10.200.78.52, and 10.200.78.53. During deployment, I chose to execute the TiDB command on 10.200.78.51 to create the cluster. If I later modify the cluster architecture, add more servers, and then take all nodes of the initially used 10.200.78.51 server offline, how can I transfer the management authority of the TiDB cluster to other servers? I tested installing the cluster command on other clusters, but it couldn’t detect the cluster information.

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

You mean migrating tiup, right? Refer to this link:

| username: xingzhenxiang | Original post link

Here is the record of my migration practice: 专栏 - TiDB迁移、升级与案例分享(TiDB v4.0.11 → v6.5.1) | TiDB 社区

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

Just copy all the files from the original tiup directory to the new control machine.

| username: TiDBer_vJpITQ5J | Original post link

The test was unsuccessful, and the cluster information is still not detected.

| username: xingzhenxiang | Original post link

Execute tiup cluster list on the new control machine to check.

| username: TiDBer_vJpITQ5J | Original post link

tiup cluster list
tiup is checking updates for component cluster …
Starting component cluster: /root/.tiup/components/cluster/v1.12.1/tiup-cluster list
Name User Version Path PrivateKey


| username: xingzhenxiang | Original post link

It doesn’t seem to have succeeded. It should be as follows:

| username: TiDBer_vJpITQ5J | Original post link

Tested multiple times, still the same.

| username: xingzhenxiang | Original post link

Could you see it executing on your original machine?

| username: TiDBer_vJpITQ5J | Original post link

That definitely works.

| username: xingzhenxiang | Original post link

Was this method moved over here?

| username: TiDBer_vJpITQ5J | Original post link

Yes, yes, yes~

| username: TiDBer_vJpITQ5J | Original post link

Got it.

| username: TiDBer_1kLKZUSY | Original post link

TiDB Playground

| username: xingzhenxiang | Original post link

Congratulations!

| username: 孤君888 | Original post link

You should migrate the TIUP tool, just copy the hidden folder under the TIUP home directory.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.