# Status of copied shards in elastic

**URL:** <https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199>\
**Category:** Elasticsearch\
**Created:** [September 19, 2018, 9:58pm UTC](https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199 "2018-09-19T21:58:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dorinand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorinand/32/70521_2.png) [@dorinand](https://discuss.elastic.co/u/dorinand)\
**Post date:** [September 19, 2018, 9:58pm UTC](https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199/1 "2018-09-19T21:58:57Z")

</div>

I would like to get information about actual state of relocating process of shard. I can get this information about shard according to [docu](https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-shards.html):

```
curl -s -X GET "localhost:9201/_cat/shards/my_index" | grep RELOCATING
my_index 0 p RELOCATING 249564135 64.4gb 10.207.46.248 node1 -> 10.206.46.246 Dpj4oyolSF-5PULCvPlJUA node2

```

From documentation, I am not sure what is, in this case, number 249564135. From left side, there is `name of index`, `number of replica/shard`, `primary/replica`, `status`, `unknown number`, `size of shard`, `ip from node1`, `node1 name`, `ip to node`, `id of target`? What other options are available for GET request except `index,shard,prirep,state,unassigned.reason`?

I would like to create a bash script, to monitor this process. So e.g. I will know, that 50% of shard was already copied.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 20, 2018, 12:41am UTC](https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199/2 "2018-09-20T00:41:44Z")

</div>

`_cat/recovery` might be more useful.

---

<div class="post-metadata">

**Author:** ![dorinand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dorinand/32/70521_2.png) [@dorinand](https://discuss.elastic.co/u/dorinand)\
**Post date:** [September 20, 2018, 5:05am UTC](https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199/3 "2018-09-20T05:05:07Z")

</div>

@warkolm thank you for your help. It is exactly what I need. Do you know, what is the number from my question above?

---

<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:** [October 18, 2018, 5:05am UTC](https://discuss.elastic.co/t/status-of-copied-shards-in-elastic/149199/4 "2018-10-18T05:05:28Z")

</div>

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