Change TiDB Cluster Working Directory and Encounter Error During Reload: Error: init config failed: 192.168.0.26:20160: executor.ssh.execute_failed: Failed to execute command over SSH for 'tidb@192.168.0.26:22' {ssh_stderr: critical config check failed: s

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

Original topic: 更换tidb集群工作目录,然后reload的时候报错Error: init config failed: 192.168.0.26:20160: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@192.168.0.26:22’ {ssh_stderr: critical config check failed: storage data dir have been changed,

| username: 朵拉大虾

[Test Environment for TiDB]
[TiDB Version] 6.5.0
[Reproduction Path] What operations were performed to cause the issue
[Encountered Issue: Issue Phenomenon and Impact]
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: 考试没答案 | Original post link

Data directory, have you checked it??? Does it actually exist or is it what you expected?

| username: 考试没答案 | Original post link

Please send the cluster configuration file. Explain in detail what changes were made before and after.

| username: 朵拉大虾 | Original post link

Just added /data01 in front of the working directory.

| username: 考试没答案 | Original post link

The directory has changed, so redeploy it. This parameter doesn’t seem to support modification.

Is this a test environment or a production environment???

| username: 考试没答案 | Original post link

It’s best not to modify this parameter.

| username: 朵拉大虾 | Original post link

Test environment…

| username: 考试没答案 | Original post link

Then destroy the cluster and redeploy it. The data file path has been changed.

| username: 胡杨树旁 | Original post link

Try scaling up and then scaling down?

| username: Kongdom | Original post link

You can refer to this for handling:

| username: 考试没答案 | Original post link

The cluster cannot start. It is estimated that scaling operations cannot be performed.

| username: 考试没答案 | Original post link

You can change the path back, and after a successful startup, proceed with scaling up or down. However, for port changes, it’s better to start over.

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

Just delete it and recreate it.