# 三副本丢失处理


+ 统计副本数丢失一半及以上 region --> 没有 Leader 的 region --> 创建空 region --> 关闭在线 TiKV
```
pd-ctl -u http://ip:port region --jq '.regions[]|select(has("leader")|not)|{id: .id, peer_stores: [.peers[].store_id]}'
tikv-ctl --db /path/to/tikv-data/db recreate-region -p <endpoint> -r <region_id>
```





------------------------------------------------------------
