# Restoring 2 nodes cluster after master goes down

**URL:** <https://discuss.elastic.co/t/restoring-2-nodes-cluster-after-master-goes-down/117617>\
**Category:** Elasticsearch\
**Created:** [January 30, 2018, 12:37pm UTC](https://discuss.elastic.co/t/restoring-2-nodes-cluster-after-master-goes-down/117617 "2018-01-30T12:37:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nejc\_Vidrih](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@Nejc\_Vidrih](https://discuss.elastic.co/u/Nejc_Vidrih)\
**Post date:** [January 30, 2018, 12:37pm UTC](https://discuss.elastic.co/t/restoring-2-nodes-cluster-after-master-goes-down/117617/1 "2018-01-30T12:37:26Z")

</div>

I have a 2 node elasticsearch cluster (version 1.7.1), let's call it A and B. A is data node, B is data and master node.  
A:

```auto
node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["A", "B"]

```

B:

```auto
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["A", "B"]

```

Node B went down and is not recoverable, node A was working OK until first restart. Now cluster state is 503 and logs show `No route to host`. If I change `node.master: true` node status is 200 but all the data is lost. Is there any way to recover data on a single node? I have data directory from node A.

---

<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:** [February 27, 2018, 12:37pm UTC](https://discuss.elastic.co/t/restoring-2-nodes-cluster-after-master-goes-down/117617/2 "2018-02-27T12:37:26Z")

</div>

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