# Bootstrap with Existing UUID

**URL:** <https://forums.percona.com/t/bootstrap-with-existing-uuid/6436>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [July 1, 2018, 12:37pm UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436 "2018-07-01T12:37:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvigneshs](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kvigneshs](https://forums.percona.com/u/kvigneshs)\
**Post date:** [July 1, 2018, 12:37pm UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/1 "2018-07-01T12:37:06Z")

</div>

Hello All,

Is there is any way to bootstrap the node with existing UUID? I have three node cluster whenever I restart the bootstrap with all node are down, say for eg.

Node 1 - Bootstrap  
Node 2  
Node 3

Stopping the nodes one by one from Node 3, Node 2 and Node1. When I start Node 1 as Bootstrap it resets the Older UUID, this force the other nodes to Join into this cluster by SST due to UUID is reset to a different one. I have Huge data on DB, can’t able to wait for that to transmit those to another node since they are in different Geo Region, Like Node 1 in London, Node 2 in Frankfurt and Node 3 in Hongkong.

Any solution to Start the Bootstrap with the same UUID.

---

<div class="post-metadata">

**Author:** ![kvigneshs](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kvigneshs](https://forums.percona.com/u/kvigneshs)\
**Post date:** [July 2, 2018, 7:20am UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/2 "2018-07-02T07:20:26Z")

</div>

Any solutions please?

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [July 2, 2018, 7:31am UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/3 "2018-07-02T07:31:24Z")

</div>

There is a blog post here about various scenarios, towards the end there may be situations similar to the one you are facing (with potential solutions).

[URL=“[Galera replication – how to recover a PXC cluster](https://www.percona.com/blog/2014/09/01/galera-replication-how-to-recover-a-pxc-cluster/)”][https://www.percona.com/blog/2014/09...a-pxc-cluster/[/URL]](https://www.percona.com/blog/2014/09...a-pxc-cluster/%5B/URL%5D)

As always, test and secure working backups. I have to say that, sorry, and I am sure you know this already.

If that article doesn’t help you out, so that our engineers can understand the issue better and consider any known issues arising from your environment, could you provide more details about your environment particularly:  
[LIST]  
[_]Percona XtraDB Cluster version  
[_]environment details  
[_]error logs if any  
[_]my.cnf files  
[\*]any other relevant information that might help them understand what you have or haven’t tried  
[/LIST] Thanks.

---

<div class="post-metadata">

**Author:** ![kvigneshs](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kvigneshs](https://forums.percona.com/u/kvigneshs)\
**Post date:** [July 4, 2018, 6:16am UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/4 "2018-07-04T06:16:23Z")

</div>

Hello Lorraine,

Thanks for the reply and email,

The version of Percona XtraDB Cluster is 5.7.21  
Node 1- Bootstrap in London  
Node 2 - Joiner node in Hongkong  
Node 3 - Joiner node in Frankfurt

Configuration Files: /etc/my.cnf

# 

# The Percona XtraDB Cluster 5.7 configuration file.

# 

# 

# \* IMPORTANT: Additional settings that can override those from this file!

# The files must end with ‘.cnf’, otherwise they’ll be ignored.

# Please make any edits and changes to the appropriate sectional files

# included below.

# 

!includedir /etc/my.cnf.d/  
!includedir /etc/percona-xtradb-cluster.conf.d/

/etc/percona-xtradb-cluster.conf.d/mysqld.cnf

# Template my.cnf for PXC

# Edit to your requirements.

[client]  
socket=/var/lib/mysql/mysql.sock

[mysqld]  
server-id=1  
datadir=/var/lib/mysql  
socket=/var/lib/mysql/mysql.sock  
log-error=/var/log/mysql/mysql-error.log  
slow-query-log-file=/var/log/mysql/mysql-slow.log  
pid-file=/var/run/mysqld/mysqld.pid  
log-bin  
log\_slave\_updates  
expire\_logs\_days=7  
sql\_mode=‘’  
innodb\_buffer\_pool\_size = 6G  
innodb\_log\_file\_size = 2G  
#innodb\_log\_file\_size = 50331648  
innodb\_flush\_log\_at\_trx\_commit = 1  
innodb\_flush\_method = O\_DIRECT  
innodb\_read\_io\_threads = 16  
innodb\_write\_io\_threads = 16  
innodb\_io\_capacity = 3000  
innodb\_io\_capacity\_max = 6000  
#innodb\_force\_recovery=6  
#innodb\_force\_recovery=3  
#innodb\_purge\_threads=0

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

/etc/percona-xtradb-cluster.conf.d/wsrep.cnf

[mysqld]

# Path to Galera library

wsrep\_provider=/usr/lib64/galera3/libgalera\_smm.so

# Cluster connection URL contains IPs of nodes

#If no IP is found, this implies that a new cluster needs to be created,  
#in order to do that you need to bootstrap this node  
wsrep\_cluster\_address=gcomm://node1-ip,node2-ip,node3-ip

# In order for Galera to work correctly binlog format should be ROW

binlog\_format=ROW

wsrep\_provider\_options=“gcache.size=7G;gcache.page\_size=3G;gcache.recover=yes”

# MyISAM storage engine has only experimental support

default\_storage\_engine=InnoDB

# Slave thread to use

wsrep\_slave\_threads=16

wsrep\_log\_conflicts=ON

# This changes how InnoDB autoincrement locks are managed and is a requirement for Galera

innodb\_autoinc\_lock\_mode=2

# Node IP address

wsrep\_node\_address=node1-ip

# Cluster name

wsrep\_cluster\_name=cluster-new

#If wsrep\_node\_name is not specified, then system hostname will be used  
wsrep\_node\_name=node1cluster

#pxc\_strict\_mode allowed values: DISABLED,PERMISSIVE,ENFORCING,MASTER  
pxc\_strict\_mode=DISABLED

# SST method

wsrep\_sst\_method=xtrabackup-v2

#Authentication for SST method  
wsrep\_sst\_auth=“user:pass”

max\_connections=999999  
max\_connect\_errors=999999

This is the config in all nodes. Whenever i restart the cluster the UUID changes with different one, this resets the joiner node UUID leads to SST.

---

<div class="post-metadata">

**Author:** ![krunalbauskar](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@krunalbauskar](https://forums.percona.com/u/krunalbauskar)\
**Post date:** [July 4, 2018, 6:40am UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/5 "2018-07-04T06:40:55Z")

</div>

Normally UUID will not change on restart.

Take a look at this example here:

node-2 boot for first time: Group state: e8e50be9-7f61-11e8-ba49-0af85422503a:0 Local state: 00000000-0000-0000-0000-000000000000:-1

node-2 on shutdown:  
2018-07-04T08:12:17.351541Z 3 [Note] WSREP: New cluster view: global state: e8e50be9-7f61-11e8-ba49-0af85422503a:1, view# -1: non-Primary, number of nodes: 0, my index: -1, protocol version 3

node-1 on shutdown:  
2018-07-04T08:12:43.627751Z 2 [Note] WSREP: New cluster view: global state: e8e50be9-7f61-11e8-ba49-0af85422503a:5784, view# -1: non-Primary, number of nodes: 0, my index: -1, protocol version 3

node-2 on restart post node1 was restarted:  
2018-07-04T08:13:43.005469Z 0 [Note] WSREP: Shifting OPEN → PRIMARY (TO: 5784)  
2018-07-04T08:13:43.005681Z 2 [Note] WSREP: State transfer required:  
Group state: e8e50be9-7f61-11e8-ba49-0af85422503a:5784  
Local state: e8e50be9-7f61-11e8-ba49-0af85422503a:1  
…

2018-07-04T08:13:43.110533Z 2 [Note] WSREP: IST receiver addr using tcp://192.168.1.8:5031  
2018-07-04T08:13:43.110926Z 2 [Note] WSREP: Prepared IST receiver, listening at: tcp://192.168.1.8:5031

node-2 is retaining the same uuid and so there is no need of SSt.

- When you are starting node-2 is data-directory being wiped off and fresh seed is being used.
- You can also check node-2 uuid by just running ./bin/mysqld … my.cnf…–wsrep\_recover this will not start the server but will emit the cached wsrep-position.

---

<div class="post-metadata">

**Author:** ![kvigneshs](https://avatars.discourse-cdn.com/v4/letter/k/f05b48/32.png) [@kvigneshs](https://forums.percona.com/u/kvigneshs)\
**Post date:** [July 5, 2018, 5:20am UTC](https://forums.percona.com/t/bootstrap-with-existing-uuid/6436/6 "2018-07-05T05:20:32Z")

</div>

Hi krunalbauskar,

Thanks for sharing, In my case every time the UUID was resting when cluster goes down (Not even a single Node is running).
