<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>工具人技術交流</title>
	<atom:link href="https://bbs.mydns.jp/feed/" rel="self" type="application/rss+xml" />
	<link>https://bbs.mydns.jp/</link>
	<description></description>
	<lastBuildDate>Tue, 12 Nov 2024 06:46:42 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.1</generator>
	<item>
		<title>Mariadb Cluster修復 / 強迫特定節點開始新叢集</title>
		<link>https://bbs.mydns.jp/2024/11/08/mariadb-cluster%e4%bf%ae%e5%be%a9-%e5%bc%b7%e8%bf%ab%e7%89%b9%e5%ae%9a%e7%af%80%e9%bb%9e%e9%96%8b%e5%a7%8b%e6%96%b0%e5%8f%a2%e9%9b%86/</link>
					<comments>https://bbs.mydns.jp/2024/11/08/mariadb-cluster%e4%bf%ae%e5%be%a9-%e5%bc%b7%e8%bf%ab%e7%89%b9%e5%ae%9a%e7%af%80%e9%bb%9e%e9%96%8b%e5%a7%8b%e6%96%b0%e5%8f%a2%e9%9b%86/#respond</comments>
		
		<dc:creator><![CDATA[yumin]]></dc:creator>
		<pubDate>Fri, 08 Nov 2024 06:02:36 +0000</pubDate>
				<category><![CDATA[未分類]]></category>
		<guid isPermaLink="false">https://yml.mydns.jp/?p=8</guid>

					<description><![CDATA[<p>【前言】 架設成為Cluster Mariadb的架構下，經常會因為不明原因而停止Cluster(例如網路  ...</p>
<p>〈<a href="https://bbs.mydns.jp/2024/11/08/mariadb-cluster%e4%bf%ae%e5%be%a9-%e5%bc%b7%e8%bf%ab%e7%89%b9%e5%ae%9a%e7%af%80%e9%bb%9e%e9%96%8b%e5%a7%8b%e6%96%b0%e5%8f%a2%e9%9b%86/">Mariadb Cluster修復 / 強迫特定節點開始新叢集</a>〉這篇文章最早發佈於《<a href="https://bbs.mydns.jp">工具人技術交流</a>》。</p>
]]></description>
										<content:encoded><![CDATA[<p>【前言】</p>
<p>架設成為Cluster Mariadb的架構下，經常會因為不明原因而停止Cluster(例如網路  中斷，傳輸品質不佳等等)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>0、先停掉三台Mariadb</p>
<p>1、更新/etc/my.cnf.d/server.cnf</p>
<p>原本的設定檔案被改為server.cnf.rpmsave，因此再次改名為server.cnf</p>
<p>2、<code>galera_new_cluster</code></p>
<p>[ERROR] WSREP: It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 .</p>
<p><code>vi /var/lib/mysql/grastate.dat</code></p>
<p><img fetchpriority="high" decoding="async" class="wp-image-7418 alignnone size-full" src="https://lib.yml.idv.tw/wp-content/uploads/2024/11/圖片-47.png" alt="" width="661" height="418" /></p>
<p>已正常啟動</p>
<p><img decoding="async" class="wp-image-7419 alignnone size-full" src="https://lib.yml.idv.tw/wp-content/uploads/2024/11/圖片-48.png" alt="" width="661" height="418" /></p>
<p>&nbsp;</p>
<p>3、啟動172.18.50.235 與  172.18.50.236 節點</p>
<p>啟動前直接</p>
<div id="urvanov-syntax-highlighter-67286ba71d035574734144-1" class="crayon-line"><code><span class="crayon-v">rm</span> <span class="crayon-o">-</span><span class="crayon-v">rf</span> <span class="crayon-o">/</span><span class="crayon-t">var</span><span class="crayon-o">/</span><span class="crayon-v">lib</span><span class="crayon-o">/</span><span class="crayon-v">mysql</span><span class="crayon-o">/</span><span class="crayon-o">*</span></code></div>
<hr />
<p>觀察重點： 是否有在群組內</p><pre class="urvanov-syntax-highlighter-plain-tag">View:
  id: 36a04d39-85e1-11ee-a679-dacab4680194:26797370
  status: primary
  protocol_version: 4
  capabilities: MULTI-MASTER, CERTIFICATION, PARALLEL_APPLYING, REPLAY, ISOLATION, PAUSE, CAUSAL_READ, INCREMENTAL_WS, UNORDERED, PREORDERED, STREAMING, NBO
  final: no
  own_index: 2
  members(3):
        0: 340f8764-9a6e-11ef-9a56-f3e7f5dd4481, webmariadb03
        1: 954083d9-9a6d-11ef-8b6a-e71d25e3964e, webmariadb02
        2: ba7630de-9a6c-11ef-937a-322a47ec5a65, webmariadb01
=================================================</pre><p>如果最後狀態是這樣，表示要再重啟一次</p><pre class="urvanov-syntax-highlighter-plain-tag">View:
  id: 36a04d39-85e1-11ee-a679-dacab4680194:26797182
  status: non-primary
  protocol_version: 4
  capabilities: MULTI-MASTER, CERTIFICATION, PARALLEL_APPLYING, REPLAY, ISOLATION, PAUSE, CAUSAL_READ, INCREMENTAL_WS, UNORDERED, PREORDERED, STREAMING, NBO
  final: no
  own_index: 0
  members(1):
	0: 4fb4dafa-9a6d-11ef-b1c1-f2cd4629484e, webmariadb02
=================================================</pre><p>&nbsp;</p>
<p>〈<a href="https://bbs.mydns.jp/2024/11/08/mariadb-cluster%e4%bf%ae%e5%be%a9-%e5%bc%b7%e8%bf%ab%e7%89%b9%e5%ae%9a%e7%af%80%e9%bb%9e%e9%96%8b%e5%a7%8b%e6%96%b0%e5%8f%a2%e9%9b%86/">Mariadb Cluster修復 / 強迫特定節點開始新叢集</a>〉這篇文章最早發佈於《<a href="https://bbs.mydns.jp">工具人技術交流</a>》。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://bbs.mydns.jp/2024/11/08/mariadb-cluster%e4%bf%ae%e5%be%a9-%e5%bc%b7%e8%bf%ab%e7%89%b9%e5%ae%9a%e7%af%80%e9%bb%9e%e9%96%8b%e5%a7%8b%e6%96%b0%e5%8f%a2%e9%9b%86/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
