7.3. Snapshot Manager を使用した別のバージョンへのアップグレード
Snapshot Manager を使用して、Red Hat Enterprise Linux オペレーティングシステムのアップグレードを実行します。
前提条件
- Red Hat Enterprise Linux 9.6 を実行している。
-
最新バージョンの
snapmおよびboom-bootパッケージがインストールされている。dnf -y install snapmを使用して、Snapshot Manager とその依存関係をインストールしてください。 - スナップショットセットに使用できる十分な領域があります。元のインストールのサイズに基づいてサイズを推定します。マウントされているすべての論理ボリュームをリスト表示し、各ボリュームに十分な領域があることを確認してください。
-
leappおよびleapp-upgrade-el9toel10パッケージがインストールされている。
手順
ブートエントリーと復元ブートエントリーを含む、システムボリュームの名前付きスナップショットセットを作成します。たとえば、独立したルートファイルシステムと
/varファイルシステムでシステムが構成されており、スナップショットセットにbefore-upgradeという名前を付ける場合は、次のコマンドを実行します。# snapm snapset create --boot --revert before-upgrade / /var SnapsetName: before-upgrade Sources: /, /var NrSnapshots: 2 Time: 2025-04-23 20:41:53 UUID: 5e56c455-6285-5f2d-a640-1595eac8381a Status: Active Autoactivate: yes Bootable: yes BootEntries: SnapshotEntry: 178e20f RevertEntry: 6703c58詳細は、以下のようになります。
-
createはスナップショットセットを作成します。 -
--bootはスナップショットブートエントリーの作成を有効にします。 -
--revertは復元ブートエントリーの作成を有効にします。 -
before-upgradeはスナップショットセットの名前を指定します。 -
/ /varは、スナップショットセットに含めるマウントポイントのスペース区切りのリストです。
このコマンドは、boom オペレーティングシステムプロファイル が実行中のシステムにまだ存在しない場合に、それを自動的に作成します。設定されたオペレーティングシステムプロファイルをさらに制御するには (たとえば、実行中のシステムでまだ使用されていないカスタムブートオプションを設定する場合)、システムの
boom(8)man ページとboom profile createサブコマンドを参照してください。-
Leapp ユーティリティーを使用して Red Hat Enterprise Linux 10 にアップグレードします。
# leapp upgrade ==> Processing phase `configuration_phase` ====> * ipu_workflow_config IPU workflow config actor ==> Processing phase `FactsCollection` … ====> * add_upgrade_boot_entry Add new boot entry for Leapp provided initramfs. A reboot is required to continue. Please reboot your system. Debug output written to /var/log/leapp/leapp-upgrade.log ============================================================ REPORT OVERVIEW ============================================================ HIGH and MEDIUM severity reports: 1. Detected modified configuration files in leapp configuration directories. 2. Leapp detected loaded kernel drivers which are no longer maintained in RHEL 10. 3. GRUB2 core will be automatically updated during the upgrade 4. Detected customized configuration for dynamic linker. 5. Packages not signed by Red Hat found on the system Reports summary: Errors: 0 Inhibitors: 0 HIGH severity reports: 5 MEDIUM severity reports: 0 LOW severity reports: 3 INFO severity reports: 2 Before continuing, review the full report below for details about discovered problems and possible remediation instructions: A report has been generated at /var/log/leapp/leapp-report.txt A report has been generated at /var/log/leapp/leapp-report.json ============================================================ END OF REPORT OVERVIEW ============================================================ Answerfile has been generated at /var/log/leapp/answerfile Reboot the system to continue with the upgrade. This might take a while depending on the system configuration. Make sure you have console access to view the actual upgrade process.leapp upgradeコマンドのレポートで表示されたブロッカーを確認して解決します。upgradeブートエントリーで再起動します。# leapp upgrade --reboot ==> Processing phase `configuration_phase` ====> * ipu_workflow_config IPU workflow config actor ==> Processing phase `FactsCollection` ...Red Hat Enterprise Linux Upgrade Initramfsがデフォルトとして設定されており、自動的に起動します。
検証
- アップグレードが完了すると、システムが自動的に再起動します。GRUB 画面に、使用可能なオペレーティングシステムのアップグレードされたバージョン (Red Hat Enterprise Linux 10) と以前のバージョンが表示されます。アップグレードされたシステムバージョンがデフォルトの選択です。