How to Remove a TiKV Node from the Cluster When Its Disk Fails

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

Original topic: tikv所在磁盘故障,我如何能够把所在tikv踢出集群

| username: xingzhenxiang

【TiDB Usage Environment】Production
【TiDB Version】v3.1.0
【Encountered Problem】Disk failure on TiKV
【Problem Phenomenon and Impact】
Disk failure on TiKV, how can I remove the affected TiKV from the cluster?

| username: Christophe | Original post link

Scale down will do.

| username: tidb狂热爱好者 | Original post link

I’ve done this many times. Here are the steps for you:
tiup cluster scale-in --node 10.0.1.5:20160

| username: xfworld | Original post link

Refer to this document:

  1. If the node cannot be started, it can only be forcibly deleted (forced offline).
  • Forced offline
tiup cluster scale-in <clusterName> -N <IP:port> --force
  • Clean up region metadata
curl -X DELETE http://${HostIP}:2379/pd/api/v1/admin/cache/region/{region_id}
  1. If the node can still be started, it can be scaled down in the normal way.
| username: xiaohetao | Original post link

Scaling in, 使用 TiUP 扩容缩容 TiDB 集群 | PingCAP 文档中心

| username: xingzhenxiang | Original post link

Received, thank you everyone.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.