# Restore an index without \_state directory

**URL:** <https://discuss.elastic.co/t/restore-an-index-without--state-directory/11222>\
**Category:** Elasticsearch\
**Created:** [March 20, 2013, 4:50pm UTC](https://discuss.elastic.co/t/restore-an-index-without--state-directory/11222 "2013-03-20T16:50:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferdy\_Galema](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@Ferdy\_Galema](https://discuss.elastic.co/u/Ferdy_Galema)\
**Post date:** [March 20, 2013, 4:50pm UTC](https://discuss.elastic.co/t/restore-an-index-without--state-directory/11222/1 "2013-03-20T16:50:40Z")

</div>

Hi,

I'm having some troubles restoring an index. I have an index with 3 shards  
on 3 machines (2 replica's), but I've lost the \_state directories. (I think  
the \_state directories where on other machines, which I cleaned up). Also  
the gateway node had its data (state info) removed.

So normally you would have the following structure:

nodes/0/indices/myIndex:  
0  
1  
2  
\_state

I am missing the \_state directories.

When I start the ES instances on those machines, the master (on a separate  
machine) does not 'pick up' myIndex on the data nodes. How can I force this  
import?

Can I recreate the \_state dir? Or can I recreate the index using ES  
commands and would it keep the index files or overwrite the old index  
files? I still know the mapping and index settings so that is not the  
problem.

The index is originally created with ES 0.19.9 but now I'm running on ES  
0.20.5.

--

_Kalooga_ | Visual RelevanceCheck out our Visual Gallery Layer now! [http://spitsnieuws.nl/archives/entertainment/2012/12/huis-amy-winehouse-levert-weinig-op](http://spitsnieuws.nl/archives/entertainment/2012/12/huis-amy-winehouse-levert-weinig-op)  
Kalooga

Helperpark 288  
9723 ZA Groningen  
The Netherlands  
+31 50 2103400

[www.kalooga.com](http://www.kalooga.com)  
info@kalooga.comKalooga EMEA

53 Davies Street  
W1K 5JH London  
United Kingdom  
+44 20 7129 1430Kalooga Spain and LatAM

Maria de Sevilla Diago No 3  
28022 Madrid - Madrid  
Spain  
+34 670 580 872

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:45am UTC](https://discuss.elastic.co/t/restore-an-index-without--state-directory/11222/2 "2017-07-06T02:45:34Z")

</div>


