# Is there any way to check the relocation progress of shards?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719>\
**Category:** Elasticsearch\
**Created:** [March 15, 2022, 10:44am UTC](https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719 "2022-03-15T10:44:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 15, 2022, 10:44am UTC](https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719/1 "2022-03-15T10:44:04Z")

</div>

I plan to migrate the data in a cluster with three nodes to another cluster. After I add the exclusion parameter (cluster.routing.allocation.exclude.\_ip) to the cluster, check the status of shards through /\_cat/shards It was RELOCATING, but for a day, I kept refreshing and repeatedly executed /\_cat/shards, and all the shards in the RELOCATING state did not change.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c19e31ea48f4c768ad9fe9e8b5a82b2dc79bfc72.png)

How to know what's going on behind the RELOCATING state? How much has it been copied?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 15, 2022, 10:46am UTC](https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719/2 "2022-03-15T10:46:32Z")

</div>

Have you looked at the [cat recovery API](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/cat-recovery.html)?

---

<div class="post-metadata">

**Author:** ![wajika](https://avatars.discourse-cdn.com/v4/letter/w/977dab/32.png) [@wajika](https://discuss.elastic.co/u/wajika)\
**Post date:** [March 15, 2022, 10:55am UTC](https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719/3 "2022-03-15T10:55:57Z")

</div>

Thanks, this command really helped me, do I just need to focus on these three fields next?  
'files / files\_recovered / files\_percent'

Is there any way to know why copying is so slow or how to make it faster?

> <https://gist.github.com/wajika/ee0b1cec1a1906d38f901b54c1ea56e6>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 12, 2022, 10:56am UTC](https://discuss.elastic.co/t/is-there-any-way-to-check-the-relocation-progress-of-shards/299719/4 "2022-04-12T10:56:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
