差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:complex_environments_and_optimization:06_ha [2026/06/19 23:31] – [サーバ間の SSH 鍵共有] junichija:documentation:pandorafms:complex_environments_and_optimization:06_ha [2026/07/31 22:41] (現在) junichi
行 3: 行 3:
 {{indexmenu_n>6}} {{indexmenu_n>6}}
  
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] +[[ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
- +
  
 ===== 概要 ===== ===== 概要 =====
行 392: 行 390:
 </code> </code>
  
-<WRAP center round tip 75%>+<WRAP center round tip 90%>
  
-In case you install the Percona server together with the Web Console and the PFMS server, you will be able to use the deploy indicating the MySQL 8 version by means of the ''MYVER=80'' parameter: +\\  
-<code>+ 
 +In case the Percona server is installed along with the web Console and the PFMS server, you can use the //[[:en:documentation:pandorafms:installation:01_installing#ks1_7_1_1|deploy]]// indicating the MySQL 8 version using the ''MYVER=80'' parameter: 
 + 
 +<code bash>
 curl -Ls https://pfms.me/deploy-pandora-el8 | env MYVER=80 bash curl -Ls https://pfms.me/deploy-pandora-el8 | env MYVER=80 bash
  
 </code> </code>
 +
 +\\ 
  
 </WRAP> </WRAP>
  
-<WRAP center round tip 75%>+<WRAP center round tip 90%>
  
-Percona サーバーを Web コンソールおよび Pandora FMS サーバと一緒にインストールする場合、''MYVER=80'' パラメーターを使用することで MySQL バージョン 8 デプロイするように指定できます。。+\\  
 + 
 +Percona サーバーを Web コンソールおよび Pandora FMS サーバと一緒にインストールする場合、''MYVER=80'' パラメーターを使用することで MySQL バージョン 8 を[[:ja:documentation:pandorafms:installation:01_installing#ks1_7_1_1|デプロイ]]するように指定できます。。
  
 <code> <code>
行 410: 行 415:
  
 </code> </code>
 +
 +\\ 
  
 </WRAP> </WRAP>
 +
 +<wrap #ks6_1_2 />
  
 === Percona 8 の Ubuntu Server へのインストール === === Percona 8 の Ubuntu Server へのインストール ===
行 1432: 行 1441:
  
  
- 
-=== 同期スクリプトの利用 === 
- 
-With Pandora FMS server a script is implemented that allows you to synchronize the **SLAVE** database in case it is out of sync. 
- 
-Pandora FMS サーバでは、同期が取れていない場合に **SLAVE** データベースを同期できるようにするスクリプトが実装されています。 
- 
-The manual execution of this script is the following: 
- 
-スクリプトの手動実行は次の通りです: 
- 
-<code> 
-./pandora_ha_resync_slave.sh "pandora_server.conf file" MASTER SLAVE 
- 
-</code> 
- 
-For example, to make a manual synchronization from node 1 to node 2 the execution would be the following: 
- 
-例えば、ノード1 からノード2 へ手動で同期するには、次のように実行します: 
- 
-<code> 
-/usr/share/pandora_server/util/pandora_ha_resync_slave.sh /etc/pandora/pandora_server.conf node1 node2 
- 
-</code> 
- 
-To configure the automatic recovery of the HA environment when there is any synchronization problem between **MASTER** and **SLAVE**, it is necessary to have the configuration token ''splitbrain_autofix'' configured to 1, inside the server configuration file (''/etc/pandora/pandora_server.conf''). 
- 
-**MASTER** と **SLAVE** の間で同期の問題が発生した際に HA 環境の自動回復を設定するには、サーバ設定ファイル(''/etc/pandora/pandora_server.conf'')内の設定トークン ''splitbrain_autofix'' を 1 にする必要があります。  
- 
-So, whenever a [[#ks6_6|Split-Brain]] takes place (both servers have the master role) or there is any synchronization problem between **MASTER**  and **SLAVE**  node, ''pandora_ha''  will try to launch the ''pandora_ha_resync_slave.sh''  script to synchronize from that point the MASTER server status in the SLAVE server. 
- 
-そうすると、[[#スプリットブレイン|スプリットブレイン]] が発生した場合 (両方のサーバがマスターの役割を持っている場合)、または **MASTER** と **SLAVE** の間で同期の問題が発生した場合は、常に ''pandora_ha'' が ''pandora_ha_resync_slave.sh'' スクリプトを起動して、その時点のマスターサーバの状態をスレーブサーバへ同期しようとします。 
- 
-This process will generate events in the system indicating the start, the end and if any error took place in there. 
- 
-この処理は、開始、終了、およびそこでエラーが発生したかどうかを示すイベントをシステムで生成します。 
- 
-<wrap #ks6_4 /> 
  
  
行 1516: 行 1487:
 </WRAP> </WRAP>
  
-**mysql** > ''CREATE USER slaveuser@% IDENTIFIED WITH mysql_native_password BY 'pandora';''+**mysql** > ''CREATE USER replicationuser@% IDENTIFIED WITH mysql_native_password BY 'pandora';''
  
-**mysql** > ''GRANT REPLICATION CLIENT, REPLICATION SLAVE on *.* to slaveuser@%;''+**mysql** > ''GRANT REPLICATION CLIENT, REPLICATION SLAVE on *.* to replicationuser@%;''
  
 **mysql** > ''CREATE USER pandora@% IDENTIFIED WITH mysql_native_password BY 'pandora';'' **mysql** > ''CREATE USER pandora@% IDENTIFIED WITH mysql_native_password BY 'pandora';''
行 1763: 行 1734:
 *************************** 1. row *************************** *************************** 1. row ***************************
                Slave_IO_State: Waiting for source to send event                Slave_IO_State: Waiting for source to send event
-                  Master_Host: node1+                  Master_Host: pandoraha1
                   Master_User: root                   Master_User: root
                   Master_Port: 3306                   Master_Port: 3306
行 1838: 行 1809:
 </WRAP> </WRAP>
  
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]+[[ja:documentation:pandorafms:start|Pandora FMS ドキュメント一覧に戻る]]
  
 ===== (OBSOLETE) データベース HA ===== ===== (OBSOLETE) データベース HA =====
  • ja/documentation/pandorafms/complex_environments_and_optimization/06_ha.1781911863.txt.gz
  • 最終更新: 2026/06/19 23:31
  • by junichi