6.3. 使用快照管理器升级到另一个版本
使用快照管理器 Red Hat Enterprise Linux 操作系统的升级。
先决条件
- 您正在运行 Red Hat Enterprise Linux 9.6。
-
您已安装了
snapm和boom-boot软件包的当前版本。使用dnf -y install snapm安装快照管理器及其依赖项。 - 您有足够的空间用于快照集。根据原始安装的大小进行大小估计。列出所有挂载的逻辑卷,并确保有足够的空间用于每个卷。
-
您已安装了
leapp和leapp-upgrade-el9toel10软件包。
流程
使用引导和恢复引导条目,创建系统卷的命名的快照集。例如,如果您的系统由单独的 root 和
/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)手册页和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)和较早的版本。升级的系统版本是默认选择。