# Deleted cluster,cant restore index from non-ES snapshot (disk backup)

**URL:** <https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905>\
**Category:** Elasticsearch\
**Created:** [October 24, 2015, 11:20am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905 "2015-10-24T11:20:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 24, 2015, 11:20am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/1 "2015-10-24T11:20:00Z")

</div>

Hello,

we managed to delete our cluster. And we have no good backup.(I know that we fucked up 🙂 )  
Well, to be more precise, ES decided to delete all data after we started 3 new master nodes and assigned the data nodes to the new cluster(as it turned out this was a very bad decision)  
1.5TB of data was gone within seconds/minutes. All acts of restoring the data failed.  
I don't really care about the logs that we lost. We log enough and only really care about live data anyways.

But we miss our dashboards. Or at least some of them, since some guys made backups themselves.

We have a daily backup of the elasticsearch servers disk. I managed to restore this backup partially.

The index was previously stored in 5 shards with one replica, across 6 nodes. One node backup failed, so i only have the data from 5 nodes.

I managed to find all 5 shards in the backups (and some replicas), but the backup was not run on all servers at the exact same time.  
For example: node1 backup was run at 8am, node2 backup maybe at 10am and so on.  
The index was not changed between the backup times.

Putting the shards in a new ES cluster does not work.  
Elasticsearch does not even attempt to load them.

Is there any way to somehow get the data? I just want our kibana dashboards back, because we put a lot of work in them.

a lecture regarding elasticsearch backups is not necessary. I know that we made a big mistake and we payed for it.

If there is any way this might work, i would be very happy.

Luca

---

<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:** [October 26, 2015, 5:54am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/2 "2015-10-26T05:54:03Z")

</div>

The backups should run at the same time across all nodes, so it's odd that you have different times there.

Are you sure the data is being placed back into where ever `path.data` points to?

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 26, 2015, 6:11am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/3 "2015-10-26T06:11:04Z")

</div>

I don't think that you understood me correctly.  
We did not use any kind of elasticsearch backup. A full disk backup is made once every day. But this is not done at the same time on all nodes.

Yes, the directory is correct. After altering the \_state files, elasticsearch tries to load them but tells me that some checksums are wrong and that the shards are corrupted.

---

<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:** [October 26, 2015, 6:12am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/4 "2015-10-26T06:12:47Z")

</div>

Ohh ok. Then yeah its probably a mismatch somewhere.  
I'm not sure what you can do here, but perhaps a lucene level expert can give you something to extract the data. No promises though!

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 26, 2015, 6:24am UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/5 "2015-10-26T06:24:03Z")

</div>

Thank you for trying to help

---

<div class="post-metadata">

**Author:** ![tinle](https://avatars.discourse-cdn.com/v4/letter/t/c77e96/32.png) [@tinle](https://discuss.elastic.co/u/tinle)\
**Post date:** [October 26, 2015, 2:40pm UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/6 "2015-10-26T14:40:41Z")

</div>

Take a look at Luke [https://code.google.com/p/luke/](https://code.google.com/p/luke/). It's a tool for diag, repair Lucene indexes.

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 26, 2015, 2:53pm UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/7 "2015-10-26T14:53:24Z")

</div>

Thanks, I will give it a try and report back (might take a few days, for different reasons)

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 26, 2015, 6:17pm UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/8 "2015-10-26T18:17:59Z")

</div>

okay, it looks promising so far.  
I managed to open each shards index directory in the tool you mentioned.

Do you have any experience using luke?

What would be the next step to get this stuff back into elasticsearch?

---

<div class="post-metadata">

**Author:** ![lwintergerst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lwintergerst/32/18164_2.png) [@lwintergerst](https://discuss.elastic.co/u/lwintergerst)\
**Post date:** [October 26, 2015, 7:21pm UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/9 "2015-10-26T19:21:50Z")

</div>

If found a Solution!!

The master also needed a /\_state/.st  
This is why ES did not load anything. It did not know that an index was there.  
Fortunately i also had a backup of the \_state file and nothing changed there inbetween backups.

I am so happy right now.. 😃

Thanks so much for helping. Even though the tool itself was not the solution, it helped me undestand everything better and finally led to a solution (after countless google searches)

---

<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 5, 2017, 11:42pm UTC](https://discuss.elastic.co/t/deleted-cluster-cant-restore-index-from-non-es-snapshot-disk-backup/32905/10 "2017-07-05T23:42:38Z")

</div>


