How to Deploy TiUP Tool on Another Machine

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

Original topic: tiup工具如何在另外一台机器上部署

| username: terry0219

[TiDB Usage Environment] Production Environment
[TiDB Version] 7.5.0
A 3-node TiDB cluster has already deployed the tiup tool on one of the machines. To prevent issues in case this machine goes down, I want to deploy the tiup tool on another machine as well. How should I proceed?

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

After installing tiup on the new host, backup the cluster from the original host and scp it to the new host: tiup cluster meta backup | PingCAP 文档中心
tiup cluster meta restore | PingCAP 文档中心

| username: Daniel-W | Original post link

Just copy the .tiup directory and the image directory over.

| username: terry0219 | Original post link

Thank you for the reply. It worked after following these steps.

| username: terry0219 | Original post link

Thank you for the reply, it works now, thanks!

| username: ShawnYan | Original post link

Additional tip: Pay attention to tiup’s data backup and permission control

| username: wangccsy | Original post link

Do you want to set up dual-machine hot standby?

| username: 江湖故人 | Original post link

Why doesn’t TiDB put the meta files of TiUP into PD? :thinking:

| username: 哈喽沃德 | Original post link

When I usually deploy, I open multiple machines and execute the same command, handling several at once.

| username: Kongdom | Original post link

Has this issue been resolved?
If it has been resolved, please mark the question as [Marked as Best Answer] so that it can be searched and help others find the answer more efficiently.
:yum:

| username: dba远航 | Original post link

It’s good that it’s resolved.

| username: 烂番薯0 | Original post link

Pack the tiup under root and scp it over.

| username: zhanggame1 | Original post link

Package the .tiup folder and overwrite it, then configure the environment variables.

| username: 哈喽沃德 | Original post link

There should be environment variables, right?

| username: 烂番薯0 | Original post link

No need, the official website says to just copy it over directly.

| username: 哈喽沃德 | Original post link

When you copy it over and run tiup, doesn’t it prompt that the command is not found?

| username: kelvin | Original post link

Copying the .tiup directory and the image directory over is the correct solution.

| username: system | Original post link

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