# Check If SQL server in Percona cluster is in bootstrap mode

**URL:** <https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [June 3, 2021, 9:34pm UTC](https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710 "2021-06-03T21:34:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonfe33](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jasonfe33](https://forums.percona.com/u/jasonfe33)\
**Post date:** [June 3, 2021, 9:34pm UTC](https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710/1 "2021-06-03T21:34:25Z")

</div>

Hello,  
Still getting to learn this so I apologize if this is an easy question. How can I make sure none of my SQL nodes are running in bootstrap mode? I ran a service mysql status on all 3 nodes in percona cluster 5.7 and they all show mysql.service - Percona XtraDB Cluster and active. Not sure how else to check. I need to reboot all the nodes 1 at a time but was wanting to verify none were in bootstrap mode.

Thank you!

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 3, 2021, 10:19pm UTC](https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710/2 "2021-06-03T22:19:39Z")

</div>

You’re on the correct path.

```
systemctl status mysql

```

vs

```
systemctl status mysql@bootstrap

```

Which one is ‘Running (Active)’? That’s how you can tell. 🙂  
The better question is why do you think it matters about being in bootstrap or not to do a rolling restart? It doesn’t. If node2 was in bootstrap mode, whatever, just restart it normally. (ie: stop mysql@bootstrap, start mysql). It only matters if you restart mysql@bootstrap. That would be bad but you have to actually issue that command; it’s not something that would happen automatically.

---

<div class="post-metadata">

**Author:** ![jasonfe33](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jasonfe33](https://forums.percona.com/u/jasonfe33)\
**Post date:** [June 10, 2021, 7:41pm UTC](https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710/3 "2021-06-10T19:41:21Z")

</div>

@matthewb thank you for the response. I was more or less just checking as I didn’t want any running in bootstrap since it was unnecessary. Which leads me my next question. Is it best to “not” have mysql service starting on reboot incase say all 3 of our MySQL servers were down and needed to boot up but needed 2 of them to point at a specific node for data sync. Thus needing to check when mysql went down so you could bootstrap the one that had most recent data?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 15, 2021, 2:54pm UTC](https://forums.percona.com/t/check-if-sql-server-in-percona-cluster-is-in-bootstrap-mode/10710/4 "2021-06-15T14:54:46Z")

</div>

@jasonfe33 If all 3 are set to start automatically, then you are technically ok. When a pxc node starts normally, it tries to make contact with other nodes listed in the gcomm:// address. If none respond, then after a timeout, the node shuts down. If all 3 happen to hit this state, then you can still step in and start the bootstrap normally.
