6.3. 使用快照管理器升级到另一个版本


使用快照管理器 Red Hat Enterprise Linux 操作系统的升级。

先决条件

  • 您正在运行 Red Hat Enterprise Linux 9.6。
  • 您已安装了 snapmboom-boot 软件包的当前版本。使用 dnf -y install snapm 安装快照管理器及其依赖项。
  • 您有足够的空间用于快照集。根据原始安装的大小进行大小估计。列出所有挂载的逻辑卷,并确保有足够的空间用于每个卷。
  • 您已安装了 leappleapp-upgrade-el9toel10 软件包。

流程

  1. 使用引导和恢复引导条目,创建系统卷的命名的快照集。例如,如果您的系统由单独的 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
    Copy to Clipboard Toggle word wrap

    其中:

    • create 创建快照集。
    • --boot 允许创建快照引导条目。
    • --revert 允许创建恢复引导条目。
    • before-upgrade 指定快照集的名称。
    • /var 是快照集中包括的空格分开的挂载点的列表。

    如果不存在,这个命令会为正在运行的系统自动创建一个 boom 操作系统配置文件。要对配置的操作系统配置文件有更多的控制(例如,要设置正在运行的系统还没有使用的自定义引导选项),请参阅您系统上的 boom (8) 手册页和 boom profile create 子命令。

  2. 使用 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.
    Copy to Clipboard Toggle word wrap

    检查并解决 leapp upgrade 命令报告所指示的任何阻碍。

  3. 重启到 upgrade 引导条目:

    # leapp upgrade --reboot
    ==> Processing phase `configuration_phase`
    ====> * ipu_workflow_config
            IPU workflow config actor
    ==> Processing phase `FactsCollection`
    ...
    Copy to Clipboard Toggle word wrap

    Red Hat Enterprise Linux Upgrade Initramfs 被标记为默认值,并将自动引导。

验证

  • 完成升级后,系统会自动重启。GRUB 屏幕显示可用操作系统的升级的(Red Hat Enterprise Linux 10)和较早的版本。升级的系统版本是默认选择。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat