差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:quickguides:ha_percona_xtradb [2022/05/30 06:03] – [Running on all nodes] junichi | ja:quickguides:ha_percona_xtradb [2023/09/27 04:25] (現在) – [以前のデータがある環境における変更の適用] junichi | ||
---|---|---|---|
行 4: | 行 4: | ||
[[: | [[: | ||
+ | |||
行 348: | 行 349: | ||
- | ===== Changes to the Pandora FMS schema for its correct operation | + | ===== 正しい動作のための |
<WRAP center round important 60%> To avoid problems with deadlocks due to the constant writings and readings that are produced in parallel, it is necessary to modify the following Pandora FMS tables with the following modifications: | <WRAP center round important 60%> To avoid problems with deadlocks due to the constant writings and readings that are produced in parallel, it is necessary to modify the following Pandora FMS tables with the following modifications: | ||
+ | </ | ||
+ | |||
+ | <WRAP center round important 60%> 並行して行われる書き込みと読み取りによるデッドロックの問題を回避するために、以下に示す内容で Pandora FMS の該当テーブルを変更する必要があります。\\ | ||
</ | </ | ||
行 376: | 行 380: | ||
For its correct operation, these changes should be applied with the database without data, only with the schema. | For its correct operation, these changes should be applied with the database without data, only with the schema. | ||
+ | 正しく動作させるには、これらの変更をスキーマのみのデータが入っていないデータベースに適用する必要があります。 | ||
- | ===== Applying changes in an environment with previous data ===== | + | ===== 以前のデータがある環境における変更の適用 |
In this scenario, it is necessary to rebuild the tables where the necessary modifications have been added to avoid deadlocks in the environment. The process would be as follows: | In this scenario, it is necessary to rebuild the tables where the necessary modifications have been added to avoid deadlocks in the environment. The process would be as follows: | ||
+ | |||
+ | このシナリオは、デッドロックを回避するために、すでにデータが入っているテーブルに対して変更を適用して再構築する場合の例です。処理は次のようになります。 | ||
1.- '' | 1.- '' | ||
+ | |||
+ | 1.- DROP および create TABLE フィールドを除く、個別に関係するすべてのテーブルを'' | ||
+ | |||
< | < | ||
#mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> | #mysqldump -u root -p pandora tagent_access --skip-add-drop-table --complete-insert --no-create-info> | ||
行 392: | 行 402: | ||
2.- Delete the affected tables: | 2.- Delete the affected tables: | ||
+ | |||
+ | 2.- 影響のあるテーブルを削除します。 | ||
< | < | ||
行 403: | 行 415: | ||
3.- Create again all the tables with all the '' | 3.- Create again all the tables with all the '' | ||
+ | |||
+ | 3.- 環境が問題なく動作するように、新しい列を含むすべてのテーブルを '' | ||
4.- Incorporate with **source** all the '' | 4.- Incorporate with **source** all the '' | ||
+ | |||
+ | 4.- 手順1 で作成したすべての '' | ||
+ | |||
< | < | ||
#mysql -u root -p pandora | #mysql -u root -p pandora | ||
行 415: | 行 432: | ||
</ | </ | ||
- | At the end of the process, all the tables will have the incremental | + | At the end of the process, all the tables will have the incremental |
- | [[: | + | 処理が終わると、すべてのテーブルに、最初から作成されたインクリメンタル ID が含まれます。 |
+ | [[: | ||