<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Add node back into galera cluster (brute force)]]></title><description><![CDATA[<p dir="auto">Here is the scenario...</p>
<p dir="auto">You have a 3 node galera (g1,g2,g3)  cluster and there is some network maintenance which stops connectivity between the nodes causing them to lose their quorum and stop serving.</p>
<p dir="auto">To fix this you disable 2 nodes (g2,g3) and bring just one back (g1)...</p>
<p dir="auto">you should be able to bring the 1 node back with the following command:<br />
<code>galera_new_cluster</code><br />
If that causes a failure, you may also need to update a line in your <code>/var/lib/mysql/grastate.dat</code> file.<br />
to do this change:<br />
<code>safe_to_bootstrap: 0</code><br />
to<br />
<code>safe_to_bootstrap: 1</code><br />
now run the <code>galera_new_cluster</code> command again and it "should" work...</p>
<p dir="auto">Once your network settles down and connectivity is regained you will have 2 galera nodes which will no longer gracefully start up, what do you do?</p>
<p dir="auto">Feel free to use the following hammer:</p>
<p dir="auto">On g2</p>
<pre><code>cd /var/lib/mysql
rm grastate.dat
rm ib_logfile*
sudo -u mysql mysqld --wsrep_sst_donor=g1
</code></pre>
<p dir="auto">where "g1" is the wsrep_node_name of your working/primary galera node</p>
<p dir="auto">follow the above instructions for g3 and you should be all set...</p>
]]></description><link>https://forum.uno.gs/topic/1332/add-node-back-into-galera-cluster-brute-force</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 11:23:15 GMT</lastBuildDate><atom:link href="https://forum.uno.gs/topic/1332.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Aug 2023 12:57:41 GMT</pubDate><ttl>60</ttl></channel></rss>