Is there a way to recover the accidentally deleted scale-out.yml file?

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

Original topic: scale-out.yml 文件被误删有办法恢复吗

| username: zxgaa

[Test Environment] Testing environment
[TiDB Version] v6.1.0
[Reproduction Path] There is a PD node and scale-out.yml deployed in the /data1 directory, which was accidentally formatted.
[Encountered Issue: Symptoms and Impact]
The PD node and dashboard crashed, and the scale-out.yml file could not be found when performing automatic detection and repair.
[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

Just re-edit one and it will be fine.

| username: 像风一样的男子 | Original post link

Shrink the PD and then expand it again.

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

After scaling in the abnormal PD node, scale out and add a new one. The scale-out.yml file looks like this:

pd_servers:
  - host: 10.0.1.11
    ssh_port: 22
    # PD Server name
    name: "pd-1"
    # communication port for TiDB Servers to connect.
    client_port: 2379
    # Communication port among PD Server nodes.
    peer_port: 2380
    # PD Server deployment file, startup script, configuration file storage directory.
    deploy_dir: "/tidb-deploy/pd-2379"
    # PD Server data storage directory.
    data_dir: "/tidb-data/pd-2379"
    # PD Server log file storage directory.
    log_dir: "/tidb-deploy/pd-2379/log"
| username: caiyfc | Original post link

First, edit the config and extract the relevant information of this node from the topology file (similar to the example above). Then, use this information to create a new scaling file. Scale down this node using --force, and then scale up using the newly created scaling file.

| username: system | Original post link

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