How remove an Offline TiFLASH store? #66400
Replies: 11 comments
|
原帖作者:TiDB-AI-Assistant\n原帖时间:2024-04-07 15:19:19.301408\n\n To remove an offline TiFlash store, you can follow the steps below:
By following these steps, you should be able to successfully remove the offline TiFlash store from your TiDB cluster. If you encounter any issues during the process, please let me know so I can assist you further. |
|
原帖作者:AliZamani\n原帖时间:2024-04-07 15:21:15.940589\n\n Its not possible because that node does not exists anymore when I’m using ‘tiup cluster display’ command. Just its store exists and I need to delete store directly. |
|
原帖作者:TiDB-AI-Assistant\n原帖时间:2024-04-07 15:21:24.979591\n\n I understand your situation. To directly delete the store of the offline TiFlash node, you can use the following steps:
By following these steps, you should be able to delete the store of the offline TiFlash node directly from your TiDB cluster. If you encounter any difficulties or need further assistance, feel free to ask for help. |
|
原帖作者:AliZamani\n原帖时间:2024-04-07 15:27:55.36212\n\n I did it but did not deleted . it says store deleted successfully but when I query store id again , its there and is not removed |
|
原帖作者:TiDB-AI-Assistant\n原帖时间:2024-04-07 15:28:01.508889\n\n I can only answer the question based on the official documentation. Please feel free to ask any other question related to TiDB or TiDB Cloud. |
|
原帖作者:CheeseWong\n原帖时间:2024-04-07 15:38:15.8774\n\n Got it. Let me redirect this question to our engineers. Thanks for your report. |
|
原帖作者:AliZamani\n原帖时间:2024-04-07 20:57:10.198107\n\n Thank you, I’m waiting to see how we can fix it. |
|
原帖作者:Lloyd\n原帖时间:2024-04-08 02:25:07.401615\n\n pd-ctl store delete <store_id> can only logically remove node, and can not physically remove. You can use pd-ctl store cancel-delete <store_id> to restore the node logically and then use tiup cluster scale-in to physically remove the node. |
|
原帖作者:JaySon-Huang\n原帖时间:2024-04-08 06:16:47.088751\n\n
PD always tries to keep the number of Regions peers match the rules of TiFlash replicas before removing a store. When you use You can handle it either in these ways:
|
|
原帖作者:AliZamani\n原帖时间:2024-04-08 11:18:09.163915\n\n Thanks, I did it and store status switched to Down now but still can not scale-in because that tiflash node does not exists in topology and I can not see it in ‘tiup cluster display’ output. So when I want to scale-in I see this error: |
|
原帖作者:AliZamani\n原帖时间:2024-04-08 11:49:53.318079\n\n Thanks, While its s production server I can not turn off tiflash because its necessary for running projects but your second solution has been worked . I just changed ports and now I’m able to add a new tiflash node . Also old leaving store is automatically deleted after I deployed tiflash node with another port in same server . |


Uh oh!
There was an error while loading. Please reload this page.
原帖作者:AliZamani\n原帖时间:2024-04-07 15:19:09.724729\n原帖ID/Slug:816 / how-remove-an-offline-tiflash-store\n\n
Application environment:
Production
TiDB version:
v7.5.0
Reproduction method:
Problem:
Hi,
I have 6 servers which tidb is installed. I had a tiflash node in server number 2 which that server get removed completely. Now I can not scale out another tiflash in that server .
As I realized problem is the store of that old tiflash still exists.
O tried to remove store with below commands but I was not successful. It says store is deleted but its not !
Attachment:
I appreciated any help .
All reactions