Snapshot restore not restoring the missing shards


(Hari Prasad) #1

Hi
I am trying out the elasticsearch 1.0's snapshot and restore feature.
My doubt is when the restore operation is performed will the missing
shards, those available when snapshot was taken, restored?

When i tried this the missing shards were not restored. So does the restore
assumes all the shards are available and just restore the records?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/66a7b177-6ec8-4fbf-a3db-1a9d0ce04647%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #2

You can restore an index if it doesn't currently exist. If it currently
exists, it must have the same shard count as when you ran the snapshot, and
in this case, restore will replace your data in the index to the state of
the specific snapshot that you choose to restore.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b6d6fed4-aa2c-4861-b618-83e8562cf7f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Hari Prasad) #3

Thank you Binh Ly.
But i am correct to say a restore process should also restore missing
shards. Because in a case where if some shards are missing and restore
didn't help?

On Friday, 7 March 2014 20:58:15 UTC+5:30, Binh Ly wrote:

You can restore an index if it doesn't currently exist. If it currently
exists, it must have the same shard count as when you ran the snapshot, and
in this case, restore will replace your data in the index to the state of
the specific snapshot that you choose to restore.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/53ee2707-59fc-4dee-9cba-a86a6a701d81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #4

As long as you have the same shard count as the backup and all the shards
are allocated, the restore will work properly. If you have a missing shard
(i.e. you deleted the underlying fs directory) and it is not currently
allocated, you can allocate it first using cluster reroute:

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-reroute.html

And then once it is allocated, the restore will work properly.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/30929be4-ffaf-473e-b5d3-e0a0d7495596%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #5