# One shard is not assigned in TEST cluster

**URL:** <https://discuss.elastic.co/t/one-shard-is-not-assigned-in-test-cluster/311645>\
**Category:** Kibana\
**Created:** [August 8, 2022, 12:17pm UTC](https://discuss.elastic.co/t/one-shard-is-not-assigned-in-test-cluster/311645 "2022-08-08T12:17:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yasar](https://avatars.discourse-cdn.com/v4/letter/y/dc4da7/32.png) [@yasar](https://discuss.elastic.co/u/yasar)\
**Post date:** [August 8, 2022, 12:17pm UTC](https://discuss.elastic.co/t/one-shard-is-not-assigned-in-test-cluster/311645/1 "2022-08-08T12:17:06Z")

</div>

Hi team,

In our test cluster, one shard could not assigned. could you please tell us how can we assign the unassigned shard in TEST cluster. If, is there any command or something to run the dev tool for assigning the unassigned shard ?

Please find the below snap for your reference.

![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5e5d6bc42ef236ca05429e318c459b653c8c3c62.png)

Thanks,  
Yasar Arafaath A.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 8, 2022, 1:03pm UTC](https://discuss.elastic.co/t/one-shard-is-not-assigned-in-test-cluster/311645/2 "2022-08-08T13:03:46Z")

</div>

You need to provide more information about why this shard is unassigned.

Run this request in Kibana Dev Tools:

```auto
GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state

```

This will show you all your shards and list the reason for the unassigned shards.

Then you can get more information using:

```auto
GET _cluster/allocation/explain
{
  "index": "index-name",
  "shard": shard-number,
  "primary": false
}

```

---

<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:** [September 5, 2022, 1:04pm UTC](https://discuss.elastic.co/t/one-shard-is-not-assigned-in-test-cluster/311645/3 "2022-09-05T13:04:12Z")

</div>

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