검색

15.2. Boom Boot Manager를 사용하여 다른 버전으로 업그레이드

download PDF

Boom Boot Manager를 사용하여 Red Hat Enterprise Linux 운영 체제 업그레이드를 수행합니다.

사전 요구 사항

  • Red Hat Enterprise Linux 7.9를 실행하고 있습니다.
  • 현재 버전의 lvm2-python-boom 패키지를 설치했습니다(버전 lvm2-python-boom-1.2-2.el7_9.5 이상).
  • 스냅샷에 사용할 수 있는 충분한 공간이 있습니다. 원래 설치 크기에 따라 크기를 추정합니다. 마운트된 논리 볼륨을 모두 나열합니다.
  • leapp 패키지를 설치했습니다.
  • 소프트웨어 리포지토리를 활성화했습니다.
참고

추가 파일 시스템에는 /usr 또는 /var 이 포함될 수 있습니다.

절차

  1. 루트 논리 볼륨의 스냅샷을 생성합니다.

    • 루트 파일 시스템에서 씬 프로비저닝을 사용하는 경우 씬 스냅샷을 생성합니다.

      # lvcreate -s rhel/root -kn -n root_snapshot_before_changes
       Logical volume "root_snapshot_before_changes" created.

      여기:

      • -s 는 스냅샷을 생성합니다.
      • RHEL/root 는 파일 시스템을 논리 볼륨에 복사합니다.
      • -KN 은 부팅 시 LV를 자동으로 활성화합니다.
      • -n root_snapshot_before_changes 에는 스냅샷 이름이 표시됩니다.

        씬 스냅샷을 만드는 동안 스냅샷 크기를 정의하지 마십시오. 스냅샷은 thin 풀에서 할당됩니다.

    • 루트 파일 시스템이 씩 프로비저닝을 사용하는 경우 씩 스냅샷을 생성합니다.

      # lvcreate -s rhel/root -n root_snapshot_before_changes -L 25g
       Logical volume "root_snapshot_before_changes" created.

      이 명령에서는 다음을 수행합니다.

      • -s 는 스냅샷을 생성합니다.
      • RHEL/root 는 파일 시스템을 논리 볼륨에 복사합니다.
      • -n root_snapshot_before_changes 에는 스냅샷 이름이 표시됩니다.
      • -L 25g 는 스냅샷 크기입니다. 원래 설치 크기에 따라 크기를 추정합니다.

        두꺼운 스냅샷을 생성하는 동안 업그레이드 중에 모든 변경 사항을 저장할 수 있는 스냅샷 크기를 정의합니다.

        중요

        생성된 스냅샷에는 추가 시스템 변경 사항이 포함되지 않습니다.

  2. GRUB 2 부트로더를 사용하여 boom 활성화

    # grub2-mkconfig > /boot/grub2/grub.cfg
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-3.10.0-1160.118.1.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-1160.118.1.el7.x86_64.img
    Found linux image: /boot/vmlinuz-3.10.0-1160.el7.x86_64
    Found initrd image: /boot/initramfs-3.10.0-1160.el7.x86_64.img
    Found linux image: /boot/vmlinuz-0-rescue-f9f6209866c743739757658d1a4850b2
    Found initrd image: /boot/initramfs-0-rescue-f9f6209866c743739757658d1a4850b2.img
    done
  3. 프로필을 생성합니다.

    # boom profile create --from-host --uname-pattern el7
    Created profile with os_id f150f3d:
      OS ID: "f150f3d6693495254255d46e20ecf5c690ec3262",
      Name: "Red Hat Enterprise Linux Server", Short name: "rhel",
      Version: "7.9 (Maipo)", Version ID: "7.9",
      Kernel pattern: "/vmlinuz-%{version}", Initramfs pattern: "/initramfs-%{version}.img",
      Root options (LVM2): "rd.lvm.lv=%{lvm_root_lv}",
      Root options (BTRFS): "rootflags=%{btrfs_subvolume}",
      Options: "root=%{root_device} ro %{root_opts}",
      Title: "%{os_name} %{os_version_id} (%{version})",
      Optional keys: "grub_users grub_arg grub_class id", UTS release pattern: "el7"
  4. 원래 부팅 이미지의 백업 사본을 사용하여 원래 시스템의 스냅샷 부팅 항목을 생성합니다.

    # boom create --backup --title "Root LV snapshot before changes" --rootlv rhel/root_snapshot_before_changes
    Created entry with boot_id bfef767:
      title Root LV snapshot before changes
      machine-id 7d70d7fcc6884be19987956d0897da31
      version 3.10.0-1160.114.2.el7.x86_64
      linux /vmlinuz-3.10.0-1160.114.2.el7.x86_64.boom0
      initrd /initramfs-3.10.0-1160.114.2.el7.x86_64.img.boom0
      options root=/dev/rhel/root_snapshot_before_changes ro rd.lvm.lv=rhel/root_snapshot_before_changes
      grub_users $grub_users
      grub_arg --unrestricted
      grub_class kernel

    여기:

    • --title "Root LV snapshot before changes" 는 시스템을 시작하는 동안 부팅 항목 목록에 표시되는 부팅 항목의 이름입니다.
    • --rootlv 는 새 부팅 항목에 해당하는 루트 논리 볼륨입니다.

      이전 단계를 완료한 후 업그레이드하기 전에 원래 시스템에 액세스할 수 있는 부팅 항목이 있습니다.

  5. Leapp 유틸리티를 사용하여 Red Hat Enterprise Linux 8로 업그레이드:

    # leapp upgrade
    ==> Processing phase `configuration_phase`
    ====> * ipu_workflow_config
            IPU workflow config actor
    ==> Processing phase `FactsCollection`
    ...
    ============================================================
                          REPORT OVERVIEW
    ============================================================
    
    Upgrade has been inhibited due to the following problems:
        1. Btrfs has been removed from RHEL8
        2. Missing required answers in the answer file
    
    HIGH and MEDIUM severity reports:
        1. Packages available in excluded repositories will not be installed
        2. GRUB2 core will be automatically updated during the upgrade
        3. Difference in Python versions and support in RHEL 8
        4. chrony using default configuration
    
    Reports summary:
        Errors:                      0
        Inhibitors:                  2
        HIGH severity reports:       3
        MEDIUM severity reports:     1
        LOW severity reports:        3
        INFO severity reports:       4
    
    Before continuing consult the full report:
        A report has been generated at /var/log/leapp/leapp-report.json
        A report has been generated at /var/log/leapp/leapp-report.txt
    
    ============================================================
                       END OF REPORT OVERVIEW
    ============================================================

    leapp upgrade 명령 보고서에 표시된 모든 차단자를 검토하고 해결합니다. 보고서에 대한 자세한 지침 은 명령줄에서 업그레이드 가능성 평가를 참조하십시오.

  6. 업그레이드 부팅 항목으로 재부팅합니다.

    # leapp upgrade --reboot
    ==> Processing phase `configuration_phase`
    ====> * ipu_workflow_config
            IPU workflow config actor
    ==> Processing phase `FactsCollection`
    ...

    GRUB 부팅 화면에서 Red Hat Enterprise Linux Upgrade Initramfs 항목을 선택합니다.

    참고

    Red Hat Enterprise Linux 8에서는 GRUB 부팅 화면의 Snapshots 하위 메뉴를 사용할 수 없습니다.

검증

  • 업그레이드가 완료되면 시스템이 자동으로 재부팅됩니다. GRUB 화면에 업그레이드된 (Red Hat Enterprise Linux 8) 및 사용 가능한 운영 체제의 이전 버전이 표시됩니다. 업그레이드된 시스템 버전이 기본 선택 사항입니다.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.