Tiup list No Cluster Information

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

Original topic: tiup list 无集群信息

| username: 游兵老卒

[Test Environment for TiDB]
[TiDB Version]
[Reproduction Path] Uninstalled using tiup uninstall --self
[Encountered Problem: Phenomenon and Impact]
After re-executing local_install under the server image, tiup cluster list shows no cluster information. I also did not back up the cluster metadata.
Is it possible to regenerate the cluster information for tiup cluster through the topology file or the currently running cluster?
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots/Logs/Monitoring]

| username: h5n1 | Original post link

Reference

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

If you can reproduce the topology.yaml file, you can directly execute the following commands:

tiup cluster deploy tidb-xxx ./topology.yaml
tiup cluster display tidb-xxx
| username: redgame | Original post link

Sure, the topology file contains the cluster configuration information and topology structure.

| username: 游兵老卒 | Original post link

Let’s test it, it does work. However, will the deploy command damage the data of the existing cluster? I see there are many steps like copying and initializing.

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

It won’t damage the data, it’s just regenerating the metadata… However, the information inside must remain consistent with the previous one, otherwise, some services won’t recognize it and it will be useless…

| username: 游兵老卒 | Original post link

Okay, thank you.

| username: zhanggame1 | Original post link

Remember to back up after recovery. Tiup comes with an export configuration feature.

| username: system | Original post link

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