# Elasticsearch losing shards

**URL:** <https://discuss.elastic.co/t/elasticsearch-losing-shards/67973>\
**Category:** Elasticsearch\
**Created:** [December 5, 2016, 2:35am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973 "2016-12-05T02:35:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lfengjie](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@lfengjie](https://discuss.elastic.co/u/lfengjie)\
**Post date:** [December 5, 2016, 2:35am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/1 "2016-12-05T02:35:21Z")

</div>

I have a single node ES cluster, the version about ES is 2.4.  
But I recently found that some primary shards will be lost. But My disk is good.

I shutdown my PC everyday, is this the problem?

---

<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:** [December 5, 2016, 2:51am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/2 "2016-12-05T02:51:10Z")

</div>

> [@lfengjie](#):
>
> But I recently found that some primary shards will be lost.

What do you mean by this.

---

<div class="post-metadata">

**Author:** ![lfengjie](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@lfengjie](https://discuss.elastic.co/u/lfengjie)\
**Post date:** [December 5, 2016, 6:31am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/4 "2016-12-05T06:31:20Z")

</div>

The health of my cluster is red. some primary shards became unassigned after a period of time!  
But I can not find the reason why it became red. My cluster has changed a lot in the previous month:

1. First my cluster has only one node,
2. Then I expanded it, there are double nodes in my cluster.
3. At last, I removed the extension node ,my cluster have only one node.

---

<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:** [December 5, 2016, 6:49am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/5 "2016-12-05T06:49:49Z")

</div>

Check your logs then, they don't just become unassigned for no reason.

---

<div class="post-metadata">

**Author:** ![lfengjie](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@lfengjie](https://discuss.elastic.co/u/lfengjie)\
**Post date:** [December 5, 2016, 7:40am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/6 "2016-12-05T07:40:39Z")

</div>

The log shows:  
Cluster health status changed from [Green] to [RED] (reason: [{Vikinga}{iqVm....}{10.192.13.118}{10.192.118:9301} failed to ping, tried[3] times, each with maximum[30s] timeout]).

I find that all the indices of the cluster do not have replicas. So if the cluster changed from two nodes into single node, it will lost some shards.

Thank you for reply!

---

<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:** [January 2, 2017, 7:41am UTC](https://discuss.elastic.co/t/elasticsearch-losing-shards/67973/7 "2017-01-02T07:41:43Z")

</div>

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