# Lost data after restarting ES

**URL:** https://discuss.elastic.co/t/lost-data-after-restarting-es/14767
**Category:** Elasticsearch
**Created:** [December 9, 2013, 11:51am UTC](https://discuss.elastic.co/t/lost-data-after-restarting-es/14767 "2013-12-09T11:51:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Dina](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@Dina](https://discuss.elastic.co/u/Dina)
#### Post date: [December 9, 2013, 11:51am UTC](https://discuss.elastic.co/t/lost-data-after-restarting-es/14767/1 "2013-12-09T11:51:10Z")

</div>

Hello,

We have 6 indexes on 5 nodes each shard on a node with no replic.

I had a red health on ES today , which appears to be that one shard of one index unassigned due to full disk space,  
After emptying the server from dummy data. I restarted the node that should have the unassigned node , but it didn't work at All.

Then restarted the whole nodes and had 5 shards unassigned.

I have on my configurations  
cluster.routing.allocation.disable\_allocation: true

After that we changed the configurations to  
cluster.routing.allocation.disable\_new\_allocation: true  
cluster.routing.allocation.disable\_allocation: true  
cluster.routing.allocation.allow\_primary: true

and restarted the whole node.  
After that the whole shards become unassigned and we discovered that the data on the hard disk is also removed.

I want to make sure, what we did wrong so we wont that again.

How can I recover unassigned shard for future ? is it by restart ?

Dina

---

<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, 2:02am UTC](https://discuss.elastic.co/t/lost-data-after-restarting-es/14767/2 "2017-07-06T02:02:32Z")

</div>


