# 统计副本数丢失一半及以上的 region

+ 使用 pd-ctl 检查大于等于一半副本数在故障节点上的 Region，并记录它们的 ID
```
./pd-ctl -u http://172.16.5.89:2679  region --jq='.regions[] | {id: .id, peer_stores: [.peers[].store_id] | select(length as $total | map(if .==(693842, 694019, 694073) then . else empty end) | length>=$total-length)}'
{"id":693786,"peer_stores":[694073,693842,694019]}
{"id":699352,"peer_stores":[4,693842,694019]}
{"id":700962,"peer_stores":[694073,5,693842]}
{"id":671258,"peer_stores":[1,694073,693842]}
{"id":692758,"peer_stores":[5,693842,694019]}
{"id":695179,"peer_stores":[694073,693842,694019]}
………….
```
![center](./student-guide/diagram/place-holder.png)
------------------------------------------------------------
统计副本数丢失一半及以上的 region
