# Master takes another cluster UUID when recovers

**URL:** <https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026>\
**Category:** Elasticsearch\
**Created:** [June 5, 2021, 11:24am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026 "2021-06-05T11:24:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshaygupta2208](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaygupta2208/32/89862_2.png) [@akshaygupta2208](https://discuss.elastic.co/u/akshaygupta2208)\
**Post date:** [June 5, 2021, 11:24am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/1 "2021-06-05T11:24:59Z")

</div>

Hello,

I am running an Elasticsearch cluster on the Kubernetes cluster.  
My cluster has the following nodes.  
Master nodes : 3  
Data nodes : 3  
Client nodes : minimum 2(they can vary on autoscaling)

My Data nodes have persistence enabled(running as statefulset) rest other nodes are running on non-persistence storage(running as deployment).

There are few cases where my all master pods go down.  
From this state when new master pods come up they take some other cluster UUID that is not matching my cluster and the complete cluster goes in an inconsistent state.

Is anyone also facing the same issue?

---

<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:** [June 5, 2021, 12:02pm UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/2 "2021-06-05T12:02:57Z")

</div>

Master nodes require persistent storage as well as data nodes.

---

<div class="post-metadata">

**Author:** ![akshaygupta2208](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaygupta2208/32/89862_2.png) [@akshaygupta2208](https://discuss.elastic.co/u/akshaygupta2208)\
**Post date:** [June 6, 2021, 7:56am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/3 "2021-06-06T07:56:14Z")

</div>

Okay I will try with that as well

---

<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:** [June 6, 2021, 9:43am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/4 "2021-06-06T09:43:06Z")

</div>

Which version of Elasticsearch are you using?

---

<div class="post-metadata">

**Author:** ![akshaygupta2208](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaygupta2208/32/89862_2.png) [@akshaygupta2208](https://discuss.elastic.co/u/akshaygupta2208)\
**Post date:** [June 6, 2021, 10:35am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/5 "2021-06-06T10:35:29Z")

</div>

7.12.1

---

<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:** [June 6, 2021, 10:56am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/6 "2021-06-06T10:56:12Z")

</div>

Then you absolutely need persistent volumes for your dedicated master nodes as you otherwise can lose the entire cluster and all the data and have to restore from snapshot if all master nodes are lost at the same time.

---

<div class="post-metadata">

**Author:** ![akshaygupta2208](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akshaygupta2208/32/89862_2.png) [@akshaygupta2208](https://discuss.elastic.co/u/akshaygupta2208)\
**Post date:** [June 6, 2021, 11:30am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/7 "2021-06-06T11:30:12Z")

</div>

Thanks Buddy After Adding persistence it seems to be working now.

---

<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 4, 2021, 11:31am UTC](https://discuss.elastic.co/t/master-takes-another-cluster-uuid-when-recovers/275026/8 "2021-07-04T11:31:01Z")

</div>

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