# Accidently ran another instance of elasticsearch on a few nodes

**URL:** <https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647>\
**Category:** Elasticsearch\
**Created:** [November 8, 2014, 8:12am UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647 "2014-11-08T08:12:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johan\_Ohr](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@Johan\_Ohr](https://discuss.elastic.co/u/Johan_Ohr)\
**Post date:** [November 8, 2014, 8:12am UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647/1 "2014-11-08T08:12:30Z")

</div>

Hi, while trying to set up an another process as master, i believe i for  
some time ran multiple instances of elasticsearch on three nodes.

On these nodes, its looks like this:  
/var/lib/elasticsearch/elasticsearch/indices/0  
/var/lib/elasticsearch/elasticsearch/indices/1

On my other nodes, that are fine it looks like:  
/var/lib/elasticsearch/elasticsearch/indices/0

So, there is alot of data in the "1"-directory on three nodes, and these  
shards will not be ASSIGNED, my cluster stays yellow.

This mistake happend 1 week ago, since then i have restarted ES a couple of  
times, but it was just now that i got the problem.

How can i fix this?

At the moment im running 5 nodes, where 3 runs another instance of  
elasticsearch, as just masters

--  
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/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.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 9, 2014, 10:24pm UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647/2 "2014-11-09T22:24:00Z")

</div>

Yellow means unassigned replicas, try removing them and then adding them  
back.

Once your cluster is green you can stop one of the nodes with the extra  
data and then delete the extra directory, just make sure you let the other  
nodes rebalance and your cluster is green again before deleting, otherwise  
you may risk losing data.

On 8 November 2014 19:12, Johan Öhr [johan.ohr@gmail.com](mailto:johan.ohr@gmail.com) wrote:

> Hi, while trying to set up an another process as master, i believe i for  
> some time ran multiple instances of elasticsearch on three nodes.
> 
> On these nodes, its looks like this:  
> /var/lib/elasticsearch/elasticsearch/indices/0  
> /var/lib/elasticsearch/elasticsearch/indices/1
> 
> On my other nodes, that are fine it looks like:  
> /var/lib/elasticsearch/elasticsearch/indices/0
> 
> So, there is alot of data in the "1"-directory on three nodes, and these  
> shards will not be ASSIGNED, my cluster stays yellow.
> 
> This mistake happend 1 week ago, since then i have restarted ES a couple  
> of times, but it was just now that i got the problem.
> 
> How can i fix this?
> 
> At the moment im running 5 nodes, where 3 runs another instance of  
> elasticsearch, as just masters
> 
> --  
> 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/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.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/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 10, 2014, 3:33pm UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647/3 "2014-11-10T15:33:29Z")

</div>

To avoid this situation in the future, besides using a service to start  
elasticsearch, you can enforce the max nodes setting:

node.max\_local\_storage\_nodes: 1

--  
Ivan

On Sun, Nov 9, 2014 at 5:24 PM, Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> Yellow means unassigned replicas, try removing them and then adding them  
> back.
> 
> Once your cluster is green you can stop one of the nodes with the extra  
> data and then delete the extra directory, just make sure you let the other  
> nodes rebalance and your cluster is green again before deleting, otherwise  
> you may risk losing data.
> 
> On 8 November 2014 19:12, Johan Öhr [johan.ohr@gmail.com](mailto:johan.ohr@gmail.com) wrote:
> 
> > Hi, while trying to set up an another process as master, i believe i for  
> > some time ran multiple instances of elasticsearch on three nodes.
> > 
> > On these nodes, its looks like this:  
> > /var/lib/elasticsearch/elasticsearch/indices/0  
> > /var/lib/elasticsearch/elasticsearch/indices/1
> > 
> > On my other nodes, that are fine it looks like:  
> > /var/lib/elasticsearch/elasticsearch/indices/0
> > 
> > So, there is alot of data in the "1"-directory on three nodes, and these  
> > shards will not be ASSIGNED, my cluster stays yellow.
> > 
> > This mistake happend 1 week ago, since then i have restarted ES a couple  
> > of times, but it was just now that i got the problem.
> > 
> > How can i fix this?
> > 
> > At the moment im running 5 nodes, where 3 runs another instance of  
> > elasticsearch, as just masters
> > 
> > --  
> > 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/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/3c852fff-611a-45fb-b1c2-e5962d733977%40googlegroups.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/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAF3ZnZnUn1hHAy60TTiOxo8b5rdt0N35dDYjq7Abb3M8pNNEjg%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/CALY%3DcQBUueXaZ64g5%2B%2B3R69iFxJWo3oHQXq3cuhKt4CfYB33Dg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBUueXaZ64g5%2B%2B3R69iFxJWo3oHQXq3cuhKt4CfYB33Dg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Johan\_Ohr](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@Johan\_Ohr](https://discuss.elastic.co/u/Johan_Ohr)\
**Post date:** [November 10, 2014, 5:34pm UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647/4 "2014-11-10T17:34:48Z")

</div>

Thank you

I fixed the problem by taking down a node, delete wrong directory, start the node. It worked fine with the first two nodes. But not the third ..

See [https://groups.google.com/forum/m/?utm\_medium=email&utm\_source=footer#!topic/elasticsearch/7LZVzQkcAtA](https://groups.google.com/forum/m/?utm_medium=email&utm_source=footer#!topic/elasticsearch/7LZVzQkcAtA)

--  
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/dd0258ee-bc4d-4b05-b3f8-98985e71da62%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/dd0258ee-bc4d-4b05-b3f8-98985e71da62%40googlegroups.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:51am UTC](https://discuss.elastic.co/t/accidently-ran-another-instance-of-elasticsearch-on-a-few-nodes/20647/5 "2017-07-06T00:51:02Z")

</div>


