使用 tiup 销毁集群

用官网的语句进行部署,未注意到版本,现在部署了一个v4.0.0-rc版本,现在想要降低到3.x的版本,目前已经把每个节点上的部署目录删除掉了, .tiup/ 目录中的data文件夹也删除,依然无法重新部署新的版本。

之前执行的语句: tiup cluster deploy tidb-test v4.0.0-rc ./topology.yaml --user tidb -i /home/tidb/.ssh/id_rsa

待执行语句: tiup cluster deploy tidb-test v3.0.13 ./topology.yaml --user tidb -i /home/tidb/.ssh/id_rsa

现在报如下错误:

Error: Deploy port conflicts to an existing cluster (check.deploy.port_conflict)

The port you specified in the topology file is: Port: 2379 Component: pd 10.8.70.10

It conflicts to a port in the existing cluster: Existing Cluster Name: tidb-test Existing Port: 2379 Existing Component: pd 10.8.70.10

Please change to use another port or another host. Error: run /home/tidb/.tiup/components/cluster/v0.5.0/cluster (wd:/home/tidb/.tiup/data/RxG5942) failed: exit status 1

如上问题,麻烦帮忙解答一下!谢谢!

你好,

如果选择 destroy 销毁集群,请注意数据的备份,此步骤相当于将集群完全删除

只需如下处理,销毁并创建新的集群:

  1. tiup cluster destroy tidb-test
  2. tiup cluster deploy tidb-test v3.0.13 ./topology.yaml --user tidb -i /home/tidb/.ssh/id_rsa
1 个赞

好的,感谢!

:call_me_hand:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。