How to Control the DM Cluster in the Absence of TiUP

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

Original topic: tiup丢失的情况下,如何进行集群dm的控制

| username: zzw6776

To improve efficiency, please provide the following information. Clear problem descriptions can be resolved more quickly:
【TiDB Usage Environment】Production Environment
【TiDB Version】v5.3
【Encountered Problem】
【Reproduction Path】
【Problem Phenomenon and Impact】

The background is that an online machine suddenly lost connection, and it is the master control machine, with tiup and configurations all on it.
After the crash in the morning, the TiDB service has returned to normal, but the DM service reported an error. Because tiup was lost, even if tiup was installed on the remaining machines, the previous synchronization tasks could not be displayed through tiup dm list. Is there any way to operate DM to let it continue running?

Follow-up
I relied on my memory to recall the address of the master. Through the operation of tiup dmctl --master-addr xx query-status, I found the corresponding crashed task and manually restarted it.

Now the problem has become how to restore the lost master control machine tiup so that the following two commands can give correct results:
tiup dm list
tiup cluster list

How to recover the lost DM synchronization configuration file

Please advise, and provide tutorial links.

| username: BraveChen | Original post link

Have you performed this operation with the reinstalled tiup?
tiup install dm dmctl

| username: zzw6776 | Original post link

Yes, I was able to restore it by using tiup dmctl --master-addr xx query-status. Now I want to know how to restore the synchronization yml files for tiup and dm.

| username: BraveChen | Original post link

[FAQ] .tiup and other metadata recovery methods after deletion - Maintenance Guide / TiDB Common FAQ - TiDB Q&A Community (asktug.com)

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.