# Changed Master Node and New Master Did Not Find Old Indices

**URL:** https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815
**Category:** Elasticsearch
**Created:** [November 18, 2014, 3:29pm UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815 "2014-11-18T15:29:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![umutcan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umutcan/32/625_2.png) [@umutcan](https://discuss.elastic.co/u/umutcan)
#### Post date: [November 18, 2014, 3:29pm UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/1 "2014-11-18T15:29:31Z")

</div>

Hi,

I have a cluster with 1 master and 3 data nodes. I needed to change  
master node. So, I created a new master node and shutdown the old one.  
Both are EC2 instances. After doing this new master did not find old  
indices. All the files belong to old indices still remains inside the  
data nodes.

Is there a way to make new master node find those files and use old indices?

Thanks,  
Umutcan

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [November 18, 2014, 8:17pm UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/2 "2014-11-18T20:17:18Z")

</div>

Did it join the cluster without any problems?  
Is it set to master: true and data:true?

On 19 November 2014 02:29, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:

> Hi,
> 
> I have a cluster with 1 master and 3 data nodes. I needed to change master  
> node. So, I created a new master node and shutdown the old one. Both are  
> EC2 instances. After doing this new master did not find old indices. All  
> the files belong to old indices still remains inside the data nodes.
> 
> Is there a way to make new master node find those files and use old  
> indices?
> 
> Thanks,  
> Umutcan
> 
> --  
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> msgid/elasticsearch/546B65DB.1040201%[40gamegos.com](http://40gamegos.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![umutcan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umutcan/32/625_2.png) [@umutcan](https://discuss.elastic.co/u/umutcan)
#### Post date: [November 19, 2014, 7:14am UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/3 "2014-11-19T07:14:39Z")

</div>

Yes, it did and both are set to true.

But, it did not join the cluster until I shut down the old master.

On 18-11-2014 22:17, Mark Walkom wrote:

> Did it join the cluster without any problems?  
> Is it set to master: true and data:true?
> 
> On 19 November 2014 02:29, Umutcan \<[umutcan@gamegos.com](mailto:umutcan@gamegos.com)  
> [mailto:umutcan@gamegos.com](mailto:umutcan@gamegos.com)\> wrote:
> 
> ```
> Hi,
> 
> I have a cluster with 1 master and 3 data nodes. I needed to
> change master node. So, I created a new master node and shutdown
> the old one. Both are EC2 instances. After doing this new master
> did not find old indices. All the files belong to old indices
> still remains inside the data nodes.
> 
> Is there a way to make new master node find those files and use
> old indices?
> 
> Thanks,
> Umutcan
> 
> -- 
> 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%2Bunsubscribe@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com.
> For more options, visit https://groups.google.com/d/optout.
> 
> ```
> 
> --  
> 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)  
> [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [November 19, 2014, 10:36am UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/4 "2014-11-19T10:36:21Z")

</div>

What version are you on?

Is there anything in the logs?

On 19 November 2014 18:14, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:

> Yes, it did and both are set to true.
> 
> But, it did not join the cluster until I shut down the old master.
> 
> On 18-11-2014 22:17, Mark Walkom wrote:
> 
> Did it join the cluster without any problems?  
> Is it set to master: true and data:true?
> 
> On 19 November 2014 02:29, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> 
> > Hi,
> > 
> > I have a cluster with 1 master and 3 data nodes. I needed to change  
> > master node. So, I created a new master node and shutdown the old one.  
> > Both are EC2 instances. After doing this new master did not find old  
> > indices. All the files belong to old indices still remains inside the data  
> > nodes.
> > 
> > Is there a way to make new master node find those files and use old  
> > indices?
> > 
> > Thanks,  
> > Umutcan
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com)  
> [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![umutcan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umutcan/32/625_2.png) [@umutcan](https://discuss.elastic.co/u/umutcan)
#### Post date: [November 19, 2014, 12:38pm UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/5 "2014-11-19T12:38:45Z")

</div>

I am using 1.4.0 version. There is nothing in the logs.

I started new master after I shut down the old one. I thought new master  
could detect indices, but I guess master node stores some meta data  
related to indices and these data is gone with the old master node. New  
master created all the indices from scratch.

I use timestamp in the index names, so indices before yesterday is still  
remains in the data nodes. I want to load these indices.

On 19-11-2014 12:36, Mark Walkom wrote:

> What version are you on?
> 
> Is there anything in the logs?
> 
> On 19 November 2014 18:14, Umutcan \<[umutcan@gamegos.com](mailto:umutcan@gamegos.com)  
> [mailto:umutcan@gamegos.com](mailto:umutcan@gamegos.com)\> wrote:
> 
> ```
> Yes, it did and both are set to true.
> 
> But, it did not join the cluster until I shut down the old master.
> 
> On 18-11-2014 22:17, Mark Walkom wrote:
> 
> ```
> 
> > ```
> > Did it join the cluster without any problems?
> > Is it set to master: true and data:true?
> > 
> > On 19 November 2014 02:29, Umutcan <umutcan@gamegos.com
> > <mailto:umutcan@gamegos.com>> wrote:
> > 
> > Hi,
> > 
> > I have a cluster with 1 master and 3 data nodes. I needed to
> > change master node. So, I created a new master node and
> > shutdown the old one. Both are EC2 instances. After doing
> > this new master did not find old indices. All the files
> > belong to old indices still remains inside the data nodes.
> > 
> > Is there a way to make new master node find those files and
> > use old indices?
> > 
> > Thanks,
> > Umutcan
> > 
> > -- 
> > 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%2Bunsubscribe@googlegroups.com>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> > -- 
> > 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>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com
> > <https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> > ```
> 
> ```
> -- 
> 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>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com
> <https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.
> 
> ```
> 
> --  
> 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)  
> [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [November 19, 2014, 10:42pm UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/6 "2014-11-19T22:42:05Z")

</div>

If your new master capable node joined the cluster then it would have  
received the cluster state metadata, and (presuming things are all ok) when  
you remove the old master then it should be promoted and take over without  
problems.

I don't really know much about the AWS plugin though, but a standard  
cluster works in that manner.

On 19 November 2014 23:38, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:

> I am using 1.4.0 version. There is nothing in the logs.
> 
> I started new master after I shut down the old one. I thought new master  
> could detect indices, but I guess master node stores some meta data related  
> to indices and these data is gone with the old master node. New master  
> created all the indices from scratch.
> 
> I use timestamp in the index names, so indices before yesterday is still  
> remains in the data nodes. I want to load these indices.
> 
> On 19-11-2014 12:36, Mark Walkom wrote:
> 
> What version are you on?
> 
> Is there anything in the logs?
> 
> On 19 November 2014 18:14, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> 
> > Yes, it did and both are set to true.
> > 
> > But, it did not join the cluster until I shut down the old master.
> > 
> > On 18-11-2014 22:17, Mark Walkom wrote:
> > 
> > Did it join the cluster without any problems?  
> > Is it set to master: true and data:true?
> > 
> > On 19 November 2014 02:29, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> > 
> > > Hi,
> > > 
> > > I have a cluster with 1 master and 3 data nodes. I needed to change  
> > > master node. So, I created a new master node and shutdown the old one.  
> > > Both are EC2 instances. After doing this new master did not find old  
> > > indices. All the files belong to old indices still remains inside the data  
> > > nodes.
> > > 
> > > Is there a way to make new master node find those files and use old  
> > > indices?
> > > 
> > > Thanks,  
> > > Umutcan
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com)  
> [https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt\_gZURTiLg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt_gZURTiLg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![umutcan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/umutcan/32/625_2.png) [@umutcan](https://discuss.elastic.co/u/umutcan)
#### Post date: [November 20, 2014, 7:00am UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/7 "2014-11-20T07:00:03Z")

</div>

You are right. It should be ok if the new node joined before I remove  
old one, but the new master joined cluster after I removed the old one.

I will change my cluster configuration. I think it is better to make all  
nodes both data and master.

But, my question still remains. Is there a way to recover those indices  
from files?

On 20-11-2014 00:42, Mark Walkom wrote:

> If your new master capable node joined the cluster then it would have  
> received the cluster state metadata, and (presuming things are all ok)  
> when you remove the old master then it should be promoted and take  
> over without problems.
> 
> I don't really know much about the AWS plugin though, but a standard  
> cluster works in that manner.
> 
> On 19 November 2014 23:38, Umutcan \<[umutcan@gamegos.com](mailto:umutcan@gamegos.com)  
> [mailto:umutcan@gamegos.com](mailto:umutcan@gamegos.com)\> wrote:
> 
> ```
> I am using 1.4.0 version. There is nothing in the logs.
> 
> I started new master after I shut down the old one. I thought new
> master could detect indices, but I guess master node stores some
> meta data related to indices and these data is gone with the old
> master node. New master created all the indices from scratch.
> 
> I use timestamp in the index names, so indices before yesterday is
> still remains in the data nodes. I want to load these indices.
> 
> On 19-11-2014 12:36, Mark Walkom wrote:
> 
> ```
> 
> > ```
> > What version are you on?
> > 
> > Is there anything in the logs?
> > 
> > On 19 November 2014 18:14, Umutcan <umutcan@gamegos.com
> > <mailto:umutcan@gamegos.com>> wrote:
> > 
> > Yes, it did and both are set to true.
> > 
> > But, it did not join the cluster until I shut down the old
> > master.
> > 
> > On 18-11-2014 22:17, Mark Walkom wrote:
> > 
> > ```
> > 
> > > ```
> > > Did it join the cluster without any problems?
> > > Is it set to master: true and data:true?
> > > 
> > > On 19 November 2014 02:29, Umutcan <umutcan@gamegos.com
> > > <mailto:umutcan@gamegos.com>> wrote:
> > > 
> > > Hi,
> > > 
> > > I have a cluster with 1 master and 3 data nodes. I
> > > needed to change master node. So, I created a new master
> > > node and shutdown the old one. Both are EC2 instances.
> > > After doing this new master did not find old indices.
> > > All the files belong to old indices still remains inside
> > > the data nodes.
> > > 
> > > Is there a way to make new master node find those files
> > > and use old indices?
> > > 
> > > Thanks,
> > > Umutcan
> > > 
> > > -- 
> > > 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%2Bunsubscribe@googlegroups.com>.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com.
> > > For more options, visit https://groups.google.com/d/optout.
> > > 
> > > -- 
> > > 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>.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com
> > > <https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> > > For more options, visit https://groups.google.com/d/optout.
> > > 
> > > ```
> > 
> > ```
> > -- 
> > 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>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com
> > <https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm_medium=email&utm_source=footer>.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> > -- 
> > 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>.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com
> > <https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> > For more options, visit https://groups.google.com/d/optout.
> > 
> > ```
> 
> ```
> -- 
> 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>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com
> <https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com?utm_medium=email&utm_source=footer>.
> 
> For more options, visit https://groups.google.com/d/optout.
> 
> ```
> 
> --  
> 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)  
> [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt\_gZURTiLg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt_gZURTiLg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt\_gZURTiLg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt_gZURTiLg%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [November 20, 2014, 7:11am UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/8 "2014-11-20T07:11:54Z")

</div>

ES can recover what it knows as dangling indexes, those not in the cluster  
state but on FS.  
You can read more here

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

On 20 November 2014 18:00, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:

> You are right. It should be ok if the new node joined before I remove old  
> one, but the new master joined cluster after I removed the old one.
> 
> I will change my cluster configuration. I think it is better to make all  
> nodes both data and master.
> 
> But, my question still remains. Is there a way to recover those indices  
> from files?
> 
> On 20-11-2014 00:42, Mark Walkom wrote:
> 
> If your new master capable node joined the cluster then it would have  
> received the cluster state metadata, and (presuming things are all ok) when  
> you remove the old master then it should be promoted and take over without  
> problems.
> 
> I don't really know much about the AWS plugin though, but a standard  
> cluster works in that manner.
> 
> On 19 November 2014 23:38, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> 
> > I am using 1.4.0 version. There is nothing in the logs.
> > 
> > I started new master after I shut down the old one. I thought new master  
> > could detect indices, but I guess master node stores some meta data related  
> > to indices and these data is gone with the old master node. New master  
> > created all the indices from scratch.
> > 
> > I use timestamp in the index names, so indices before yesterday is still  
> > remains in the data nodes. I want to load these indices.
> > 
> > On 19-11-2014 12:36, Mark Walkom wrote:
> > 
> > What version are you on?
> > 
> > Is there anything in the logs?
> > 
> > On 19 November 2014 18:14, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> > 
> > > Yes, it did and both are set to true.
> > > 
> > > But, it did not join the cluster until I shut down the old master.
> > > 
> > > On 18-11-2014 22:17, Mark Walkom wrote:
> > > 
> > > Did it join the cluster without any problems?  
> > > Is it set to master: true and data:true?
> > > 
> > > On 19 November 2014 02:29, Umutcan [umutcan@gamegos.com](mailto:umutcan@gamegos.com) wrote:
> > > 
> > > > Hi,
> > > > 
> > > > I have a cluster with 1 master and 3 data nodes. I needed to change  
> > > > master node. So, I created a new master node and shutdown the old one.  
> > > > Both are EC2 instances. After doing this new master did not find old  
> > > > indices. All the files belong to old indices still remains inside the data  
> > > > nodes.
> > > > 
> > > > Is there a way to make new master node find those files and use old  
> > > > indices?
> > > > 
> > > > Thanks,  
> > > > Umutcan
> > > > 
> > > > --  
> > > > 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).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546B65DB.1040201%40gamegos.com)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZmspn9Nh0V7YZGkhYXFBKWR1B%3DYonZm1jpk%2By5oivcKNw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > 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).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546C435F.1020000%40gamegos.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnj9Hv7gvwOXJNifOYJsksqFb65n%3Dt5uMkYwzmgxk3ZwQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > 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).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546C8F55.5000700%40gamegos.com?utm_medium=email&utm_source=footer).
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt\_gZURTiLg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt_gZURTiLg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt\_gZURTiLg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZ%3Dz5mSJ0tUZkZwhHWgiYEVvA%3DewMJU70PbBt_gZURTiLg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com](https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com)  
> [https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/546D9173.9020205%40gamegos.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnq\_KM-jtCW8SnYA%3DwxXQCcvHB9u4vEPSRkNTCWg%2BkugA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnq_KM-jtCW8SnYA%3DwxXQCcvHB9u4vEPSRkNTCWg%2BkugA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:48am UTC](https://discuss.elastic.co/t/changed-master-node-and-new-master-did-not-find-old-indices/20815/9 "2017-07-06T00:48:48Z")

</div>


