# Using `pd-ctl` & `tikv-ctl` for Recovery

+ **_1)_** **`pd-ctl -u ${http://pd-ip:port} region > region.data`**
+ **_2)_** **`pd-ctl -u ${http://pd-ip:port} store | grep -B 3  -A 30  'bad-tikv-ip:port'`**
+ **_3)_** Turn off the scheduler 
+ **_4)_** **`tiup cluster stop ${cluster-name}`**
+ **_5)_** **`tikv-ctl --db /path/to/tikv-data/db unsafe-recover remove-fail-stores -s <s1,s2> --all regions`**  
    + The option **`-s`** means the **`store-id`**, which was get by the step 2
    + Execute this command on survived `TiKV` nodes
    + You can execute this command online after version `v6.1`
-------------------------------------------------------------

