====== 772 から 777 へのマイグレーション手順 ======
{{indexmenu_n>44}}
[[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
===== 前提条件 =====
Pandora FMS version 772 with MySQL 5.7 and PHP 8.0 must be installed.
MySQL 5.7 および PHP 8.0 環境で Pandora FMS バージョン 772 をインストールする必要があります。
The final versions installed after following these instructions will be **Pandora FMS** version 777 with **MySQL** 8 and **PHP** 8.2.
これらの手順に従った後にインストールされる最終バージョンは、**Pandora FMS** バージョン 777、**MySQL** 8、**PHP** 8.2 になります。
===== OUM でのマイグレーションおよびアップグレード =====
Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2).
Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) からバージョン 777 (MySQL 8 および PHP 8.2)
1. The [[:en:documentation:pandorafms:technical_annexes:19_mysql_8|MySQL upgrade to version 8.0]] must be executed.
1. [[:ja:documentation:pandorafms:technical_annexes:19_mysql_8|MySQL バージョン 8.0 へのアップグレード]] を実行する必要があります。
2. In the **Management → Settings → System Settings → System Settings → Historical database** menu, disable the connection to the history database.
2. **管理(Management) → 設定(Settings) → システム設定(System settings) → システム設定(System settings) → ヒストリデータベース(Historical database)** メニューで、ヒストリデータベースへの接続を無効にします。
{{ :wiki:pfms_772-to-pfms_777-img010.png }}
3. [[:en:documentation:pandorafms:installation:02_anexo_upgrade#ks1_2|Offline Console Upgrade by OUM]] up to version 775.
3. バージョン 775 まで、[[:ja:documentation:pandorafms:installation:02_anexo_upgrade#ks1_2|OUM によるオフラインコンソールのアップグレード]] を行います。
At this point the tool will indicate the need to install PHP version 8.2 to be able to upgrade to Pandora FMS version 776:
この時点で、ツールが Pandora FMS バージョン 776 にアップグレードするには PHP バージョン 8.2 をインストールする必要があることを示します。
{{ :wiki:pfms_772-to-pfms_777-img020.png }}
4. Upgrading PHP to version 8.2, depending on the operating system installed:
4. インストールされているオペレーティング システムに応じて、PHP をバージョン 8.2 にアップグレードします。
* [[:en:documentation:pandorafms:technical_annexes:18_php_8#ks2_2|Rocky Linux 8/AlmaLinux 8/RHEL 8 - Upgrade to PHP 8.2]].
* [[:ja:documentation:pandorafms:technical_annexes:18_php_8#ks2_2|Rocky Linux 8/AlmaLinux 8/RHEL 8 - PHP 8.2 へのアップグレード]]
5.- Update server package tar.gz 777:
5. サーバパッケージ tar.gz 777 に更新します。
tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz
cd pandora_server
./pandora_server_installer --upgrade
6.- Restart service:
6. サービスを再起動します。
systemctl restart pandora_server
Or, if you have **systemd** installed:
または、**systemd** の場合は次のようにします。
systemctl restart pandora_ha
7.- Re-activate the history database **with the same parameters used before the update**.
7. **更新前に使用したのと同じパラメータを使用して** ヒストリデータベースを再有効化します。
{{ :wiki:pfms_772-to-pfms_777-img030.png }}
===== RPM によるマイグレーションとアップグレード =====
\\ Upgrade Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2).
Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) をバージョン 777 (MySQL 8 および PHP 8.2) にアップグレードします。
1. Perform [[:en:documentation:pandorafms:technical_annexes:19_mysql_8|MySQL upgrade to version 8.0]].
1. [[:ja:documentation:pandorafms:technical_annexes:19_mysql_8|MySQL バージョン 8.0 へのアップグレード]] を実行します。
2. Upgrade PHP to version 8.2, depending on the operating system installed:
2. インストールされているオペレーティングシステムに応じて、PHP をバージョン 8.2 にアップグレードします。
* [[:en:documentation:pandorafms:technical_annexes:18_php_8#ks2_2|Rocky Linux 8/AlmaLinux 8/RHEL 8 - Upgrade to PHP 8.2]].
* [[:en:documentation:pandorafms:technical_annexes:18_php_8#ks4_2|CentOS 7 - Upgrade to PHP 8.2]].
* [[:ja:documentation:pandorafms:technical_annexes:18_php_8#ks2_2|Rocky Linux 8/AlmaLinux 8/RHEL 8 - PHP 8.2 へのアップグレード]]
* [[:ja:documentation:pandorafms:technical_annexes:18_php_8#ks4_2|CentOS 7 - PHP 8.2 へのアップグレード]]
3.- Updating the Console by RPM. The package can be downloaded from the [[https://pandorafms.com/en/contact/|Support]] website:
3. RPM によるコンソールの更新。パッケージは [[https://pandorafms.com/ja/contact/|サポート]] Web サイトからダウンロードできます。
rpm -U pandorafms_console_enterprise-7.0NG.777.x86_64.rpm
Note: MR files will be applied in this process.
注: このプロセスでは MR ファイルが適用されます。
4.- Update the tar.gz 777 server package:
4. tar.gz 777 サーバパッケージに更新します。
tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz
cd pandora_server
./pandora_server_installer --upgrade
5.- Restart PFMS server services.
5. PFMS サーバサービスを再起動します。
systemctl restart pandora_server
Or, if **systemd** is installed:
または、**systemd** の場合は次のようにします。
systemctl restart pandora_ha
===== Tarball によるマイグレーションとアップグレード =====
Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2).
Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) からバージョン 777 (MySQL 8 および PHP 8.2)
1. Upgrade PHP to version 8.2:
1. PHP をバージョン 8.2 にアップグレードします。
* [[:en:documentation:pandorafms:technical_annexes:18_php_8#ks3|Upgrading to PHP 8.2 - Ubuntu Server 22.04]].
* [[:ja:documentation:pandorafms:technical_annexes:18_php_8#ks3|PHP 8.2 へのアップグレード - Ubuntu Server 22.04]]。
2. Updating the Console by Tarball. The package, in tar.gz format, may be downloaded from the [[https://pandorafms.com/en/contact/|Support]] website:
2. Tarball によるコンソールの更新。tar.gz 形式のパッケージは、[[https://pandorafms.com/ja/contact/|サポート]] Web サイトからダウンロードできます。
pandorafms_console_enterprise-7.0NG.777.tar.gz
3. To update the console, unzip it and the ''attachment'' and ''enterprise'' folders will be generated, which should be moved to ''/var/www/html/pandora_console'':
3. コンソールを更新するには、ファイルを展開して生成される ''attachment'' および ''enterprise'' フォルダを ''/var/www/html/pandora_console'' に移動する必要があります。
tar xzvf pandorafms_console_enterprise-7.0NG.777.tar.gz && cp -R attachment/enterprise/ /var/www/html/pandora_console/
Then, the necessary permissions are set in the Console directory:
次に、コンソールディレクトリに必要な権限を設定します。
chown -R www-data. /var/www/html/pandora_console
To update the database structure, **the recommended option** is to use the following //script//:
データベース構造を更新するには、**推奨オプション**として次の //script// を使用します。
php /var/www/html/pandora_console/godmode/um_client/updateMR.php
//As an alternative to the previous process,// this can be done manually:
// 前のプロセスの代わりに、// 以下を手動で実行することもできます:
Log in to the database:
データベースにログイン:
mysql -u root -p pandora
The next step is to apply the necessary MR files (''65.sql'', ''66.sql'', ''67.sql'', ''68.sql'' y ''69.sql''):
次のステップでは、必要な MR ファイル (''65.sql''、''66.sql''、''67.sql''、''68.sql''、''69.sql'') を適用します。
SOURCE /var/www/html/pandora_console/extras/mr/65.sql;
SOURCE /var/www/html/pandora_console/extras/mr/66.sql;
SOURCE /var/www/html/pandora_console/extras/mr/67.sql;
SOURCE /var/www/html/pandora_console/extras/mr/68.sql;
SOURCE /var/www/html/pandora_console/extras/mr/69.sql;
Finally, the MR fields:
最後に、MR フィールドの更新:
UPDATE tconfig SET VALUE= 69 WHERE token='MR';
exit;
4. Update tar.gz 777 server package:
4. tar.gz 777 サーバパッケージに更新します。
tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz
cd pandora_server
./pandora_server_installer --upgrade
5. Restart services:
5. サービスを再起動します。
systemctl restart pandora_server
Or by means of **systemd**:
または、**systemd** にて。
systemctl restart pandora_ha
6. It is recommended to launch the following command to avoid console errors, especially if you are using Ubuntu:
6. 特に Ubuntu を使用している場合は、コンソールエラーを回避するために次のコマンドを実行することをお勧めします。
cd /var/www/html/pandora_console/ && cat extras/delete_files/delete_files.txt |
xargs rm -fr
[[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]