TiDB Creating TiFlash Replica Stuck

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

Original topic: tidb创建tiflash副本一直卡着不动

| username: TiDBer_7Q5CQdQd

[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version] v7.1
It has been stuck while creating a replica for two days.

Deployment Situation
Three machines with 8 cores and 32GB RAM

Remaining Resources

Previously, it got stuck once and the reason was found to be that the disk utilization reached 0.8, making it impossible to create a replica. Later, the disk was expanded, and now the disk utilization is 0.5.

| username: Fly-bird | Original post link

What is the situation with a disconnect?

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

Are there any indications in the FiFlash logs?

| username: 大飞哥online | Original post link

There are a lot of things on 205. Which one did you add your flash to?

| username: redgame | Original post link

How large is the database? It’s been stuck for two days. Let’s start over.

| username: TiDBer_7Q5CQdQd | Original post link

Three machines, one node each.

| username: TiDBer_7Q5CQdQd | Original post link

200 million records. How to delete them? After I set the replica count to 0 and then reset it to 2, it still doesn’t work.

| username: 大飞哥online | Original post link

Remove all TiFlash instances, so there are no Flash instances left, and then add new Flash instances. Is that what you mean?

| username: TiDBer_7Q5CQdQd | Original post link

Shrink all the nodes first. Then add new nodes.

| username: ShawnYan | Original post link

Is there such a protection mechanism, so it’s working fine now, right?