I have Elasticsearch cluster of 3 nodes, it was working fine till now then i changed default path.data path to my own custom data path and restarted the whole cluster now my cluster is in red state and when running cluster health api it says master node not elected yet.
so my question is when we change the data.path does elastic node chnages it id too because in log i can see one of my node cannot find other two nodes i am sharing the log for clarification.
node 1
[2020-05-28T17:08:53,938][WARN ][o.e.c.c.ClusterFormationFailureHelper] [iamesd3_upg] master not discovered or elected yet, an election requires at least 2 nodes with ids from [6LTiaYAHTrSEdbvPPtlzmg, JfD9-6IwRIGXmZUkepUzHg, 8LHaAmg4SGKnlAxnN-IJSQ], have discovered [{iamesd2_upg}{VAWn0Pm4R_-ITKptSu4MCg}{hP-a34WMQdeJUJmE3Wydxw}{10.72.21.41}{10.72.21.41:9300}{ml.machine_memory=8192020480, ml.max_open_jobs=20, xpack.installed=true}, {iamesd_upg}{cA8K1RFYRP6rtkeIVSB20Q}{qGmIhscERPehh40Rq8s7mQ}{10.72.21.40}{10.72.21.40:9300}{ml.machine_memory=8191987712, ml.max_open_jobs=20, xpack.installed=true}] which is not a quorum; discovery will continue using [10.72.21.40:9300, 10.72.21.41:9300] from hosts providers and [{iamesd3_upg}{8LHaAmg4SGKnlAxnN-IJSQ}{MpUwSSXiTbGfduXqufhlTQ}{10.72.21.42}{10.72.21.42:9300}{ml.machine_memory=8191995904, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 2614, last-accepted version 5868 in term 2614
node2
[2020-05-28T17:19:56,276][WARN ][o.e.c.c.ClusterFormationFailureHelper] [iamesd_upg] master not discovered or elected yet, an election requires at least 2 nodes with ids from [cA8K1RFYRP6rtkeIVSB20Q, VAWn0Pm4R_-ITKptSu4MCg, 8LHaAmg4SGKnlAxnN-IJSQ], have discovered [{iamesd3_upg}{8LHaAmg4SGKnlAxnN-IJSQ}{OacA1YSnT_egR_fBjL1wRw}{10.72.21.42}{10.72.21.42:9300}{ml.machine_memory=8191995904, ml.max_open_jobs=20, xpack.installed=true}, {iamesd2_upg}{VAWn0Pm4R_-ITKptSu4MCg}{vtoy2OBgSJ-pr8qBfkBVZA}{10.72.21.41}{10.72.21.41:9300}{ml.machine_memory=8192020480, ml.max_open_jobs=20, xpack.installed=true}] which is a quorum; discovery will continue using [10.72.21.41:9300, 10.72.21.42:9300] from hosts providers and [{iamesd_upg}{cA8K1RFYRP6rtkeIVSB20Q}{qGmIhscERPehh40Rq8s7mQ}{10.72.21.40}{10.72.21.40:9300}{ml.machine_memory=8191987712, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 2614, last-accepted version 5686 in term 2614
node3
[2020-05-28T17:19:37,411][WARN ][o.e.c.c.ClusterFormationFailureHelper] [iamesd2_upg] master not discovered or elected yet, an election requires at least 2 nodes with ids from [VAWn0Pm4R_-ITKptSu4MCg, 6LTiaYAHTrSEdbvPPtlzmg, 8LHaAmg4SGKnlAxnN-IJSQ], have discovered [{iamesd_upg}{cA8K1RFYRP6rtkeIVSB20Q}{qGmIhscERPehh40Rq8s7mQ}{10.72.21.40}{10.72.21.40:9300}{ml.machine_memory=8191987712, ml.max_open_jobs=20, xpack.installed=true}, {iamesd3_upg}{8LHaAmg4SGKnlAxnN-IJSQ}{OacA1YSnT_egR_fBjL1wRw}{10.72.21.42}{10.72.21.42:9300}{ml.machine_memory=8191995904, ml.max_open_jobs=20, xpack.installed=true}] which is not a quorum; discovery will continue using [10.72.21.40:9300, 10.72.21.42:9300] from hosts providers and [{iamesd2_upg}{VAWn0Pm4R_-ITKptSu4MCg}{vtoy2OBgSJ-pr8qBfkBVZA}{10.72.21.41}{10.72.21.41:9300}{ml.machine_memory=8192020480, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 2614, last-accepted version 5752 in term 2614
I cannot solve this issue.
I tried different techniques
1. I copied nodes folder default location and created new folder and pasted nodes folder there.
2. creating the new cluster and pointing new cluster data.path to pasted location.
3. then creating new cluster but the result is same master not discoverable, i think elastic stores nodes information in nodes folder so it can do indexing and all.
for now i am running new elastic cluster but i need that data into cluster anyhow it's important for client.
one more thing can we change node-id if yes this problem might be solved.
please help me out with this issue.