Error reported after configuring the dir of raft-engine in TiKV

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

Original topic: tikv配置raft-engine的dir后报错

| username: TiDBer_qijtMMBk

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] Modify the tikv configuration to set the raft-engine’s dir to a separate disk directory:
raft-engine:
dir: {new dir}/raft-engine
[Encountered Issue: Problem Phenomenon and Impact]
The configured tikv node cannot start, error log:
Execute command finished {“code”: 1, “error”: "init config failed: 10.8.82.25:20160: executor.ssh.execute_failed: Failed to execute command over SSH for ‘tidb@10.8.82.25:10000’ {ssh_stderr: invalid configuration: Cannot find raft data set.\n,
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Log/Monitoring]

| username: xfworld | Original post link

Is the indentation incorrect? Or is the directory inaccessible?

| username: ShawnYan | Original post link

Is there a space in the middle?

| username: redgame | Original post link

Is there an issue with the permissions?

| username: zhanggame1 | Original post link

It seems like the path is incorrect. Do you have the original screenshot?

| username: ffeenn | Original post link

Try clearing the raft directory and then retry.

| username: cassblanca | Original post link

Is there any issue with directory access permissions?

| username: h5n1 | Original post link

Did you modify this directory on the existing cluster? It seems that doing this online won’t work. You should stop TiKV and copy the files from the original directory to the new directory.

| username: system | Original post link

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