I use following which moved all the shard from that node.
then shutdown system.
setup new system with same name/ip
install all require rpms
and started node but it is not joining cluster. what am I missing?
PUT /_cluster/settings
{
"transient" :{
"cluster.routing.allocation.exclude._ip" : "ip_address"
}
}
Then once ready I remove that exclusion
PUT /_cluster/settings
{
"transient" :{
"cluster.routing.allocation.exclude._ip" : ""
}
}
[2019-09-16T16:25:56,482][WARN ][o.e.c.c.ClusterFormationFailureHelper] [elkm02] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [elkm01, elkm03, elkm04] to bootstrap a cluster: have discovered [{elkm02}{JG6KV5tpQ3W2x4rfvn3jRQ}{6SlplW6UQOqfzG7yPLGcOw}{10.29.248.230}{10.29.248.230:9300}{dim}{ml.machine_memory=101022859264, xpack.installed=true, ml.max_open_jobs=20}, {elkm01}{OvJiX8RNQn2Vb05oCuBJZQ}{3LndIPP0S--CBPEfPwtB9w}{10.29.248.229}{10.29.248.229:9300}{dim}{ml.machine_memory=101090594816, ml.max_open_jobs=20, xpack.installed=true}, {elkm03}{oYXgEVBgQoGToxFxhVoA3g}{p4-GG4UwQYCeYZR_SRKpSw}{10.29.248.235}{10.29.248.235:9300}{dim}{ml.machine_memory=24996524032, ml.max_open_jobs=20, xpack.installed=true}, {elkm04}{XTFxPJ6yRaeZVhHAg5uIAA}{r1Uki0XtRXucIau_4RUF-A}{10.29.248.236}{10.29.248.236:9300}{dim}{ml.machine_memory=101054177280, ml.max_open_jobs=20, xpack.installed=true}]; discovery will continue using [10.29.248.229:9300, 10.29.248.235:9300, 10.29.248.236:9300] from hosts providers and [{elkm02}{JG6KV5tpQ3W2x4rfvn3jRQ}{6SlplW6UQOqfzG7yPLGcOw}{10.29.248.230}{10.29.248.230:9300}{dim}{ml.machine_memory=101022859264, xpack.installed=true, ml.max_open_jobs=20}] from last-known cluster state; node term 16, last-accepted version 0 in term 0
[2019-09-16T16:25:56,472][INFO ][o.e.c.c.JoinHelper ] [elkm02] failed to join {elkm03}{oYXgEVBgQoGToxFxhVoA3g}{p4-GG4UwQYCeYZR_SRKpSw}{10.29.248.235}{10.29.248.235:9300}{dim}{ml.machine_memory=24996524032, ml.max_open_jobs=20, xpack.installed=true} with JoinRequest{sourceNode={elkm02}{JG6KV5tpQ3W2x4rfvn3jRQ}{6SlplW6UQOqfzG7yPLGcOw}{10.29.248.230}{10.29.248.230:9300}{dim}{ml.machine_memory=101022859264, xpack.installed=true, ml.max_open_jobs=20}, optionalJoin=Optional.empty}
Here is elasticsearch.yml for node
cluster.name: my-cluster
cluster.initial_master_nodes: ["elkm01","elkm03","elkm04"]
node.name: elkm02
node.master: true
node.data: true
path.data: /elkdata01/elasticsearch
path.logs: /elkdata01/log/elasticsearch
network.host: 10.29.248.230
http.port: 9200
discovery.seed_hosts: ["elkm01","elkm02", "elkm03", "elkm04"]
discovery.find_peers_interval: 10s
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /etc/elasticsearch/config/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /etc/elasticsearch/config/elastic-certificates.p12