差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
ja:quickguides:migration_to_another_system [2023/07/27 03:35] – 作成 junichi | ja:quickguides:migration_to_another_system [2023/07/27 05:51] (現在) – [Data Import] junichi | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== | + | ====== |
There can be many reasons for moving a PFMS server and its Web Console, which are generally on the same real machine or virtual machine ([[: | There can be many reasons for moving a PFMS server and its Web Console, which are generally on the same real machine or virtual machine ([[: | ||
+ | |||
+ | Pandora FMS サーバとその Web コンソールを移動する理由はさまざまですが、これらは通常、同じ実マシンまたは仮想マシン上にあります ([[: | ||
**Possible examples:** | **Possible examples:** | ||
+ | |||
+ | **考えられる例: | ||
* A new version of Pandora FMS might require a different operating system, for example, migrating from CentOS 7 to Rocky Linux 8 or from Rocky Linux 8 to RedHat Enterprise (RHEL) 8. | * A new version of Pandora FMS might require a different operating system, for example, migrating from CentOS 7 to Rocky Linux 8 or from Rocky Linux 8 to RedHat Enterprise (RHEL) 8. | ||
行 9: | 行 13: | ||
* In the case of audits or to test new functionalities, | * In the case of audits or to test new functionalities, | ||
- | ===== Procedure | + | * Pandora FMS の新しいバージョンでは、たとえば、CentOS 7 から Rocky Linux 8 への移行、または Rocky Linux 8 から RedHat Enterprise (RHEL) 8 への移行など、別のオペレーティングシステムが必要になる場合があります。 |
+ | * ある Web サービスプロバイダーから別の Web サービスプロバイダーに移行する場合も考えられます。Pandora FMS の容量は、オペレーティングシステム全体のイメージよりも少ないです。 | ||
+ | * 監査の場合、または新しい機能をテストする場合は、メインサーバのコピーが必要です。 | ||
+ | |||
+ | ===== 手順 | ||
Usually the full path to the PFMS Web Console is | Usually the full path to the PFMS Web Console is | ||
+ | |||
+ | 通常、Pandora FMS コンソールのフルパスは次の通りです。 | ||
< | < | ||
行 21: | 行 31: | ||
and in the following instructions it is abbreviated as '' | and in the following instructions it is abbreviated as '' | ||
+ | 以下の手順では、'' | ||
- | ==== Data Export | + | ==== データのエクスポート |
**1.-** Make a backup of the database of the previous system. There are several steps, open a terminal window with administrator rights (root user): | **1.-** Make a backup of the database of the previous system. There are several steps, open a terminal window with administrator rights (root user): | ||
+ | |||
+ | **1.-** 以前のシステムのデータベースのバックアップを取得します。いくつかのステップがあります。管理者権限(root ユーザ)でターミナルウインドウを開きます。 | ||
* Start by making a logical copy of the database with the following command: | * Start by making a logical copy of the database with the following command: | ||
+ | |||
+ | * 次のコマンドでデータベースの論理的なコピーを作成します。 | ||
< | < | ||
行 41: | 行 56: | ||
* Compress all dependencies installed on the source server, which are necessary for the proper functioning of scripts / plugins installed on the source server and are not on the destination server. **Advanced systems will need to fully install the ****Integrated Development Environments** ( or **Integrated Development Environment**, | * Compress all dependencies installed on the source server, which are necessary for the proper functioning of scripts / plugins installed on the source server and are not on the destination server. **Advanced systems will need to fully install the ****Integrated Development Environments** ( or **Integrated Development Environment**, | ||
* Compress all SSL certificates and custom Apache web server configuration located in ''/ | * Compress all SSL certificates and custom Apache web server configuration located in ''/ | ||
+ | |||
+ | * 上記の出力ファイル ('' | ||
+ | * ''/ | ||
+ | * '' | ||
+ | * '' | ||
+ | * ''/ | ||
+ | * ''/ | ||
+ | * 元サーバにインストールされているすべての依存ファイルを圧縮します。対象となる依存ファイルは、元サーバにインストールされているスクリプト/ | ||
+ | * ''/ | ||
You are solely responsible for the safeguarding of your data. Write down on paper and pencil the procedure you will choose for the data transfer. **Be careful**, use redundancy in terms of backups and procedures with several people helping you in the process. | You are solely responsible for the safeguarding of your data. Write down on paper and pencil the procedure you will choose for the data transfer. **Be careful**, use redundancy in terms of backups and procedures with several people helping you in the process. | ||
- | ==== Data Import | + | データの保護はユーザのみなさん自身の責任です。データ転送のために選択する手順を紙と鉛筆で書き留めましょう。 バックアップや手順に関しては、複数の人が作業をサポートしてくれるような体制を確保するよう**注意してください**。 |
+ | |||
+ | ==== データのインポート | ||
**2.-** Install the new Pandora FMS system from scratch, we recommend the [[: | **2.-** Install the new Pandora FMS system from scratch, we recommend the [[: | ||
+ | |||
+ | **2.-** 新規で Pandora FMS システムをスクラッチからインストールします。[[: | ||
**3.-** Close all processes running on the new system, except **mysql**; Start with Pandora FMS (starting with version NG 754, there are [[: | **3.-** Close all processes running on the new system, except **mysql**; Start with Pandora FMS (starting with version NG 754, there are [[: | ||
+ | |||
+ | **3.-** **mysql** を除く、新しいシステムで実行中のすべてのプロセスを止めます。Pandora FMS から始めます (バージョン NG 754 以降、HA 高可用性環境の [[: | ||
+ | |||
< | < | ||
行 58: | 行 89: | ||
**4.-** To stop the Apache server will depend on the distribution you are using: | **4.-** To stop the Apache server will depend on the distribution you are using: | ||
+ | |||
+ | **4.-** Apache サーバの停止は、利用しているディストリビューションに依存します。 | ||
< | < | ||
行 75: | 行 108: | ||
**5.-** Next, send or copy, in the easiest way, the file '' | **5.-** Next, send or copy, in the easiest way, the file '' | ||
+ | |||
+ | **5.-** 次に、旧システムから '' | ||
**6.-** Enter **mysql** with root user. Access the Pandora FMS database in the new system, by default '' | **6.-** Enter **mysql** with root user. Access the Pandora FMS database in the new system, by default '' | ||
+ | |||
+ | **6.-** 新システムで、root で **mysql** へログインし、Pandora FMS データベースへアクセスします。デフォルトは '' | ||
< | < | ||
行 87: | 行 124: | ||
This path will vary depending on the directory where you have the old system backup, here it is assumed that you have it in your home directory ('' | This path will vary depending on the directory where you have the old system backup, here it is assumed that you have it in your home directory ('' | ||
+ | |||
+ | このパスは、古いシステムのバックアップがあるディレクトリによって異なります。ここでは、ホームディレクトリ ('' | ||
**7.-** In the event that it was a migration to a higher version, in which the structure of the database changes, this would be the moment of axisCut the migration scripts as indicated in [[: | **7.-** In the event that it was a migration to a higher version, in which the structure of the database changes, this would be the moment of axisCut the migration scripts as indicated in [[: | ||
+ | |||
+ | **7.-** データベースの構造が変更される新しいバージョンへの移行の場合は、[[: | ||
**8.-** If you have made a distribution change, take into account that the path or '' | **8.-** If you have made a distribution change, take into account that the path or '' | ||
+ | |||
+ | **8.-** ディストリビューションを変更した場合は、Web コンソールのパスが変更されていることを考慮してください。この場合、データベース内のいくつかのフィールド'' | ||
+ | |||
< | < | ||
行 99: | 行 143: | ||
These '' | These '' | ||
+ | |||
+ | これらのパスは、サーバおよびコンソールの設定ファイル('' | ||
**9.-** Once the database has been migrated, you must check if the files '' | **9.-** Once the database has been migrated, you must check if the files '' | ||
+ | |||
+ | **9.-** データベースのマイグレーションを行ったら、'' | ||
* If they are the same, go to **step number 10**. | * If they are the same, go to **step number 10**. | ||
行 107: | 行 155: | ||
* Option ( b ): Copy the data ( '' | * Option ( b ): Copy the data ( '' | ||
* Option ( c ): Grant permissions to the database with the data from the new installation. Assuming that the new installation has these data: '' | * Option ( c ): Grant permissions to the database with the data from the new installation. Assuming that the new installation has these data: '' | ||
+ | |||
+ | * 同じであれば、**ステップ 1o** へ行きます。 | ||
+ | * 異なるのであれば、いかのいずれかを選択します。 | ||
+ | * オプション(a): | ||
+ | * オプション(b): | ||
+ | * オプション(c): | ||
< | < | ||
行 114: | 行 168: | ||
**10.-** After this, start all the [[: | **10.-** After this, start all the [[: | ||
+ | |||
+ | **10.-** この後、すべての [[: | ||
**11.-** If the IP address or URL has changed in the new host, all **local** Agents will report to this new system. For Software Agents, you must modify the parameter [[: | **11.-** If the IP address or URL has changed in the new host, all **local** Agents will report to this new system. For Software Agents, you must modify the parameter [[: | ||
+ | |||
+ | **11.-** 新しいホストで IP アドレスまたは URL が変更された場合、すべての **ローカル** エージェントは、この新しいシステムに接続する必要があります。ソフトウェアエージェントの場合は、それぞれのパラメータ [[: | ||
**12.-** Use, in [[: | **12.-** Use, in [[: | ||
+ | |||
+ | **12.-** 最後の修正には、[[: | ||
In the case of an Enterprise version, the same process will be followed. | In the case of an Enterprise version, the same process will be followed. | ||
+ | |||
+ | Enterprise 版の場合も、同じ手順です。 | ||