# Master not discovered or elected yet, an election requires 2 nodes with ids

**URL:** <https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-2-nodes-with-ids/256116>\
**Category:** Elasticsearch\
**Created:** [November 20, 2020, 12:06pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-2-nodes-with-ids/256116 "2020-11-20T12:06:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xziten](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xziten/32/76885_2.png) [@xziten](https://discuss.elastic.co/u/xziten)\
**Post date:** [November 20, 2020, 12:06pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-2-nodes-with-ids/256116/1 "2020-11-20T12:06:23Z")

</div>

Hi,

I'm trying to setup an elasticsearch Cluster. I know that this is a common topic but I would like to understand what I'm doing wrong.

Here are some informations :

OS : RHEL 7.8  
ES Version : 7.10

Nodes :

- 3 Masters / ` node.roles: [data, master, voting_only]`
- 1 Data Hot / `node.roles: [data_hot]`
- 2 Data Warm / `node.roles: [data_warm]`
- 3 Data Cold / `node.roles: [data_cold]`

**Step by step :**

1. Configuring master Nodes

`cluster.name: my-cluster`  
`node.name: my-master-1(2)(3)`  
`node.roles: [data, master, voting_only]`  
`network.host: 0.0.0.0`  
`discovery.seed_hosts:`  
` - 127.0.0.1`  
` - 192.168.1.1`  
` - 192.168.1.2`  
` - 192.168.1.3`  
` - 192.168.1.4`  
` - 192.168.1.5`  
` - 192.168.1.6`  
`- 192.168.1.7`  
`- 192.168.1.8`  
`cluster.initial_master_nodes: ["my-master-1", "my-master-2", "my-master-3"]`

1. Starting

When I started, I did some mistakes in the configuraton so I had to relaunch 2 of the nodes.

Then, impossible to do a /\_cluster/health and got this in the log :

> [TIMESTPAMP][WARN][o.e.c.c.ClusterFormationFailureHelper] [my-master-1] master not discovered or elected yet, an election requires 2 nodes with ids [F7cuZHd3T4m-Hor0AY4AGQ, eu2wjtIlSv6WF4yOFAW8Iw], have discovered [{my-master-1]}{eu2wjtIlSv6WF4yOFAW8Iw}{xrvNSaydSjWOHmYdBJcfmw}{192.168.1.1}{192.168.1.1:9300}{dmv}{rack=r1, xpack.installed=true, transform.node=false}, {my-master-2}{F7cuZHd3T4m-Hor0AY4AGQ}{GrL4NArxQ\_yqh7ICI7TFHQ}{192.168.1.2}{192.168.1.2:9300}{dmv}{rack=r1, xpack.installed=true, transform.node=false}, {my-master-3}{3Wu1yarjR1yIqltD8Gh1fw}{IoGq1vesTUOTafSjBcVfGg}{192.168.1.3}{192.168.1.3:9300}{dmv}{rack=r1, xpack.installed=true, transform.node=false}] which is not a quorum; discovery will continue using [127.0.0.1:9300, 192.168.1.2:9300, 192.168.1.3:9300, 192.168.1.4:9300, 192.168.1.5:9300, 192.168.1.6:9300, 192.168.1.7:9300, 192.168.1.8:9300, 192.168.1.9:9300] from hosts providers and [{my-master-1}{eu2wjtIlSv6WF4yOFAW8Iw}{xrvNSaydSjWOHmYdBJcfmw}{192.168.1.1}{192.168.1.1:9300}{dmv}{rack=r1, xpack.installed=true, transform.node=false}] from last-known cluster state; node term 0, last-accepted version 0 in term 0

1. Do you have any idea of the problem ?
2. How to fix without reinstall the nodes ?

I tried to restart the nodes but it doesn't fix anything

Thank you !

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 20, 2020, 12:42pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-2-nodes-with-ids/256116/2 "2020-11-20T12:42:00Z")

</div>

All master nodes should not be voting\_only as none of these will actually be able to become master. The voting\_only setting is for cases where you have an arbiter deployed and you should never have more than one voting\_only node in a cluster.

---

<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:** [December 18, 2020, 12:42pm UTC](https://discuss.elastic.co/t/master-not-discovered-or-elected-yet-an-election-requires-2-nodes-with-ids/256116/3 "2020-12-18T12:42:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
