文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== 772 から 777 へのマイグレーション手順 ====== {{indexmenu_n>44}} [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] <wrap #ks1 /> ===== 前提条件 ===== 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 になります。 <wrap #ks2 /> ===== OUM でのマイグレーションおよびアップグレード ===== <WRAP center round info 90%> Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2). </WRAP> <WRAP center round info 90%> Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) からバージョン 777 (MySQL 8 および PHP 8.2) </WRAP> 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 <wrap :en>**Management → Settings → System Settings → System Settings → Historical database**</wrap> menu, disable the connection to the history database. 2. <wrap :ja>**管理(Management) → 設定(Settings) → システム設定(System settings) → システム設定(System settings) → ヒストリデータベース(Historical database)**</wrap> メニューで、ヒストリデータベースへの接続を無効にします。 {{ :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 に更新します。 <code bash> tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz cd pandora_server ./pandora_server_installer --upgrade </code> 6.- Restart service: 6. サービスを再起動します。 <code bash> systemctl restart pandora_server </code> Or, if you have **systemd** installed: または、**systemd** の場合は次のようにします。 <code bash> systemctl restart pandora_ha </code> 7.- Re-activate the history database **with the same parameters used before the update**. 7. **更新前に使用したのと同じパラメータを使用して** ヒストリデータベースを再有効化します。 {{ :wiki:pfms_772-to-pfms_777-img030.png }} <wrap #ks3 /> ===== RPM によるマイグレーションとアップグレード ===== <WRAP center round info 90%> \\ Upgrade Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2). </WRAP> <WRAP center round info 90%> Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) をバージョン 777 (MySQL 8 および PHP 8.2) にアップグレードします。 </WRAP> 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 サイトからダウンロードできます。 <code bash> rpm -U pandorafms_console_enterprise-7.0NG.777.x86_64.rpm </code> Note: MR files will be applied in this process. 注: このプロセスでは MR ファイルが適用されます。 4.- Update the tar.gz 777 server package: 4. tar.gz 777 サーバパッケージに更新します。 <code bash> tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz cd pandora_server ./pandora_server_installer --upgrade </code> 5.- Restart PFMS server services. 5. PFMS サーバサービスを再起動します。 <code bash> systemctl restart pandora_server </code> Or, if **systemd** is installed: または、**systemd** の場合は次のようにします。 <code bash> systemctl restart pandora_ha </code> <wrap #ks4 /> ===== Tarball によるマイグレーションとアップグレード ===== <WRAP center round info 90%> Pandora FMS version 772 (MySQL 5.7 and PHP 8.0) to version 777 (MySQL 8 and PHP 8.2). </WRAP> <WRAP center round info 90%> Pandora FMS バージョン 772 (MySQL 5.7 および PHP 8.0) からバージョン 777 (MySQL 8 および PHP 8.2) </WRAP> 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 サイトからダウンロードできます。 <code bash> pandorafms_console_enterprise-7.0NG.777.tar.gz </code> 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'' に移動する必要があります。 <code bash> tar xzvf pandorafms_console_enterprise-7.0NG.777.tar.gz && cp -R attachment/enterprise/ /var/www/html/pandora_console/ </code> Then, the necessary permissions are set in the Console directory: 次に、コンソールディレクトリに必要な権限を設定します。 <code bash> chown -R www-data. /var/www/html/pandora_console </code> <WRAP center round info 90%> To update the database structure, **the recommended option** is to use the following //script//: </WRAP> <WRAP center round info 90%> データベース構造を更新するには、**推奨オプション**として次の //script// を使用します。 </WRAP> <file> php /var/www/html/pandora_console/godmode/um_client/updateMR.php </file> //As an alternative to the previous process,// this can be done manually: // 前のプロセスの代わりに、// 以下を手動で実行することもできます: Log in to the database: データベースにログイン: <code bash> mysql -u root -p pandora </code> 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'') を適用します。 <code 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; </code> Finally, the MR fields: 最後に、MR フィールドの更新: <code sql> UPDATE tconfig SET VALUE= 69 WHERE token='MR'; exit; </code> 4. Update tar.gz 777 server package: 4. tar.gz 777 サーバパッケージに更新します。 <code bash> tar xvzf pandorafms_server_enterprise-7.0NG.777_x86_64.tar.gz cd pandora_server ./pandora_server_installer --upgrade </code> 5. Restart services: 5. サービスを再起動します。 <code bash> systemctl restart pandora_server </code> Or by means of **systemd**: または、**systemd** にて。 <code> systemctl restart pandora_ha </code> 6. It is recommended to launch the following command to avoid console errors, especially if you are using Ubuntu: 6. 特に Ubuntu を使用している場合は、コンソールエラーを回避するために次のコマンドを実行することをお勧めします。 <code bash> cd /var/www/html/pandora_console/ && cat extras/delete_files/delete_files.txt | xargs rm -fr </code> [[:ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] CKG Edit ja/documentation/pandorafms/technical_annexes/44_upgrade_from_772_to_777.txt 最終更新: 2025/02/26 02:36by junichi