Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 中控机tiup备份迁移到另外一台服务器tiup命令报错
[TiDB Usage Environment] Production Environment
[TiDB Version] v6.1.1
[Reproduction Path] Pack the tiup directory from the control machine to another TiDB server and decompress it, the tiup command reports an error.
Followed the official documentation. 使用 TiUP 部署运维 TiDB 线上集群 | PingCAP 文档中心
[Encountered Problem: Problem Phenomenon and Impact]
Why does it still need to find the software installation directory here?
tiup cluster list
Error: stat /opt/soft/tidb-community-server-v6.1.1-linux-amd64: no such file or directory
/opt/soft/tidb-community-server-v6.1.1-linux-amd64 is the current offline installation software directory.
Following Binbin’s instructions, after copying the .json files from the software extraction directory, it works.
Original control machine: Copy the .json files to the shared directory.
[tidb@centos-bsf36cfx ~]$ cp /opt/soft/tidb-community-server-v6.1.1-linux-amd64/*json /backup/tidb-test/tidb-community-server-v6.1.1-linux-amd64/
Target control machine: Reset the mirror directory with tiup mirror set
[tidb@centos-gxb9vid4 ~]$ tiup mirror set /backup/tidb-test/tidb-community-server-v6.1.1-linux-amd64/
Successfully set mirror to /backup/tidb-test/tidb-community-server-v6.1.1-linux-amd64
[tidb@centos-gxb9vid4 ~]$ tiup cluster list
tiup is checking updates for component cluster ...
Starting component `cluster`: /home/tidb/.tiup/components/cluster/v1.10.3/tiup-cluster list
Name User Version Path PrivateKey
---- ---- ------- ---- ----------
tidb-test tidb v6.1.1 /home/tidb/.tiup/storage/cluster/clusters/tidb-test /home/tidb/.tiup/storage/cluster/clusters/tidb-test/ssh/id_rsa
It can be executed normally
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.