After deleting the log folder of the TiKV node, the node fails to start

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

Original topic: 删除tikv节点的log文件夹后,节点启动失败

| username: TiDBer_NUP2nMAg

Simulating a TiDB cluster on a single machine:
The TiKV disk was full, and then the entire log folder of one TiKV node was deleted. Restarting that node failed.

| username: WalterWj | Original post link

How did you delete it, and what was the error message when it failed?

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

It is recommended to delete logs without deleting the entire folder, just delete the logs with dates, or you can clear the current log file.

| username: TiDBer_NUP2nMAg | Original post link

I deleted the log folder under the tikv node, and when I checked for errors, there was no log folder and no logs.

| username: TiDBer_NUP2nMAg | Original post link

| username: TiDBer_NUP2nMAg | Original post link

All have been deleted, and creating a new log folder doesn’t work either.

| username: WalterWj | Original post link

Based on the log content, is the user group correct? Is it tidb.tidb?

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

Then refer to other nodes and create a log directory with the same permissions to try again.

| username: zhanggame1 | Original post link

Are there more logs?

| username: TiDBer_NUP2nMAg | Original post link

Still unable to start successfully, I created an identical directory.

| username: TiDBer_NUP2nMAg | Original post link

There are no logs written in this directory, and the user ownership and other nodes are the same.

| username: TiDBer_NUP2nMAg | Original post link

Can’t see the error log because it can’t be written at all.

| username: WalterWj | Original post link

Then check the system logs, or manually run the run_tidb.sh script located in the scripts directory under the deploy directory to see what it outputs.

| username: Hacker007 | Original post link

If it really doesn’t work, scale down and then scale up again.

| username: system | Original post link

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