# Unassigned shards

**URL:** https://discuss.elastic.co/t/unassigned-shards/9218
**Category:** Elasticsearch
**Created:** [October 2, 2012, 9:19pm UTC](https://discuss.elastic.co/t/unassigned-shards/9218 "2012-10-02T21:19:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Simeon\_Zaharici](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@Simeon\_Zaharici](https://discuss.elastic.co/u/Simeon_Zaharici)
#### Post date: [October 2, 2012, 9:19pm UTC](https://discuss.elastic.co/t/unassigned-shards/9218/1 "2012-10-02T21:19:58Z")

</div>

Hello

We have an elasticsearch cluster with 5 nodes used for graylog2, a log  
centralization solution.  
We have four nodes that hold data + 1 node that has node.data=false that is  
used by the graylog server to index messages.  
Today we restarted the node that does not hold any data and strangely that  
caused all the shards to be re-initialized. However only part of the shards  
have recovered, there are four shards stuck in initializing state whereas  
four others(their replicas) are in an unassigned state.

The only error present on the nodes is this one

cat /var/log/elasticsearch/Graylog2.log| grep -B7 -i err  
[2012-10-02 16:05:58,867][WARN][index.engine.robin] [server\_name]  
[graylog2][4] failed to flush after setting shard to inactive  
org.elasticsearch.index.engine.EngineClosedException: [graylog2][4]  
CurrentState[CLOSED]  
at  
org.elasticsearch.index.engine.robin.RobinEngine.flush(RobinEngine.java:799)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.updateIndexingBufferSize(RobinEngine.java:223)  
at  
org.elasticsearch.indices.memory.IndexingMemoryBufferController$ShardsIndicesStatusChecker.run(IndexingMemoryBufferController.java:147)  
at  
org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:218)  
at  
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)  
at  
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)

We are using index..number\_of\_replicas=1

Is there a way to get the unassigned shards to be reinitialized ?

Thanks

--

---

<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: [July 6, 2017, 3:10am UTC](https://discuss.elastic.co/t/unassigned-shards/9218/2 "2017-07-06T03:10:29Z")

</div>


