← 목록으로

CentOS 7 에서 AlmaLinux 로 업그레이드하기

2026-12-01_11-05-38_046699.png

ELevate(Leapp)는 한 번에 한 메이저 릴리스만 업그레이드하므로 CentOS 7.9.2009 → AlmaLinux 8 → AlmaLinux 9 → AlmaLinux 10 순서로 진행한다.
※ 실제 업그레이드되는 서버의 환경에 따라 추가 과정이 필요할 수 있다.

CentOS 7 에서 AlmaLinux 8 로 업그레이드

1. 업그레이드 전 커널, 배포판과 버전을 확인한다.

3줄Shell
uname -a
cat /etc/os-release
cat /etc/redhat-release

2. 지원이 끝난 CentOS 7의 기존 미러 대신 AlmaLinux가 제공하는 CentOS 7 저장소 설정을 내려받는다.

1줄Shell
curl -o /etc/yum.repos.d/CentOS-Base.repo https://el7.repo.almalinux.org/centos/CentOS-Base.repo

3. CentOS 7 패키지를 최신 상태로 맞춘다.

1줄Shell
yum update -y

※ kernel 등이 업그레이드되어 재부팅이 필요하면 진행한다.

4. ELevate 저장소와 GPG 키를 제공하는 elevate-release를 설치한다.

1줄Shell
yum install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm

5. CentOS 7에서 AlmaLinux 8로 올리는 Leapp 패키지와 AlmaLinux 데이터를 설치한다.

1줄Shell
yum install -y leapp-upgrade leapp-data-almalinux

6. 사전 검사를 실행한다.

1줄Shell
leapp preupgrade

Inhibitors: 2 가 발생했다.

7. 사전 검사 보고서를 읽고 중단 원인을 확인한다.

1줄Shell
cat /var/log/leapp/leapp-report.txt
출력20줄
20줄일반 텍스트
Risk Factor: high (inhibitor)
Title: Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed.
Summary: Support for the following RHEL 7 device drivers has been removed in RHEL 8:
     - floppy
     - pata_acpi

Related links:
    - Leapp preupgrade getting "Inhibitor: Detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed." : https://access.redhat.com/solutions/6971716
    - Leapp upgrade fail with error "Inhibitor: Detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed.": https://access.redhat.com/solutions/5436131
Key: f08a07da902958defa4f5c2699fae9ec2eb67c5b
----------------------------------------
Risk Factor: high (inhibitor)
Title: Missing required answers in the answer file
Summary: One or more sections in answerfile are missing user choices: remove_pam_pkcs11_module_check.confirm
For more information consult https://red.ht/leapp-dialogs.
Related links:
    - Leapp upgrade fail with error "Inhibitor: Missing required answers in the answer file.": https://access.redhat.com/solutions/7035321
Remediation: [hint] Please register user choices with leapp answer cli command or by manually editing the answerfile.
[command] leapp answer --section remove_pam_pkcs11_module_check.confirm=True
Key: d35f6c6b1b1fa6924ef442e3670d90fa92f0d54b

floppy, pata_acpi와 remove_pam_pkcs11_module_check.confirm 응답이 중단 원인이다.

8. AlmaLinux 8에서 제거된 모듈을 언로드한다.

2줄Shell
rmmod floppy
rmmod pata_acpi

9. PAM의 pam_pkcs11 모듈을 업그레이드 중 제거하도록 승인한다.

1줄Shell
leapp answer --section remove_pam_pkcs11_module_check.confirm=True

응답이 /var/log/leapp/answerfile에 기록된다.

10. 사전 검사를 다시 실행한다.

1줄Shell
leapp preupgrade

11. AlmaLinux 8 업그레이드 트랜잭션을 준비하고 ELevate 부팅 항목을 만든다.

1줄Shell
leapp upgrade

12. ELevate-Upgrade-Initramfs로 재부팅해 AlmaLinux 8로 전환한다.

1줄Shell
reboot

13. AlmaLinux 8의 커널과 배포판을 확인한다.

3줄Shell
uname -a
cat /etc/os-release
cat /etc/redhat-release

14. AlmaLinux 8 전환 결과 확인

1줄Shell
cat /var/log/leapp/leapp-report.txt

GRUB core successfully updated를 확인하고, 보고서에 남은 예전 패키지 목록을 처리한다.

15. EL7용 Leapp 패키지 제거

1줄Shell
dnf remove -y leapp-upgrade-el7toel8 leapp-upgrade-el7toel8-deps python2-leapp --disableexcludes=all

AlmaLinux 8 에서 AlmaLinux 9 로 업그레이드

1. AlmaLinux 8에 맞는 ELevate 저장소 패키지를 설치하거나 갱신한다.

1줄Shell
dnf install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm

2. AlmaLinux 9로 올리는 Leapp 패키지를 설치한다.

1줄Shell
dnf install -y leapp-upgrade leapp-data-almalinux --disableexcludes=all

leapp-upgrade-el8toel9가 설치되는지 확인한다.

3. AlmaLinux 8 패키지를 최신 상태로 맞춘다.

1줄Shell
dnf update -y

※ kernel 등이 업그레이드되어 재부팅이 필요하면 진행한다.

4. 사전 검사를 실행한다.

1줄Shell
leapp preupgrade

Inhibitors: 3 가 발생했다.

5. 사전 검사 보고서를 읽고 중단 원인을 확인한다.

1줄Shell
cat /var/log/leapp/leapp-report.txt
출력27줄
27줄일반 텍스트
Risk Factor: high (inhibitor)
Title: Firewalld Configuration AllowZoneDrifting Is Unsupported
Summary: Firewalld has enabled configuration option "AllowZoneDrifting" which has been removed in AlmaLinux 9. New behavior is as if "AllowZoneDrifting" was set to "no".
Related links:
    - Changes in firewalld related to Zone Drifting: https://access.redhat.com/articles/4855631
    - Leapp Preupgrade check fails with error - "Inhibitor: Firewalld Configuration AllowZoneDrifting Is Unsupported".: https://access.redhat.com/solutions/6969130
Remediation: [hint] Set AllowZoneDrifting=no in /etc/firewalld/firewalld.conf
[command] sed -i 's/^AllowZoneDrifting=.*/AllowZoneDrifting=no/' /etc/firewalld/firewalld.conf
Key: 5b1cf050e1a877b0358b6e8c612277c591d40c13
----------------------------------------
Risk Factor: high (inhibitor)
Title: Cannot perform the VDO check of block devices
Summary: The check of block devices could not be performed as the 'vdo' package is not installed. All VDO devices must be converted to LVM management prior to the upgrade to prevent the loss of data.
Related links:
    - Importing existing VDO volumes to LVM: https://red.ht/import-existing-vdo-volumes-to-lvm
Remediation: [hint] Install the 'vdo' package and re-run upgrade to check for VDO devices requiring conversion or confirm that all VDO devices, if any, are managed by LVM.
Key: 429a99e13b19a7eebadbb8cb35233d8119bcf255
----------------------------------------
Risk Factor: high (inhibitor)
Title: Missing required answers in the answer file
Summary: One or more sections in answerfile are missing user choices: check_vdo.confirm
For more information consult https://red.ht/leapp-dialogs.
Related links:
    - Leapp upgrade fail with error "Inhibitor: Missing required answers in the answer file.": https://access.redhat.com/solutions/7035321
Remediation: [hint] Please register user choices with leapp answer cli command or by manually editing the answerfile.
[command] leapp answer --section check_vdo.confirm=True
Key: 2f9802dc91315806c7cdc3c18d7b74f2a2383285

AllowZoneDrifting=no 설정과 check_vdo.confirm 응답이 중단 원인이다.

6. AlmaLinux 9에서 지원하지 않는 firewalld의 AllowZoneDrifting을 비활성화한다.

1줄Shell
sed -i "s/^AllowZoneDrifting=.*/AllowZoneDrifting=no/" /etc/firewalld/firewalld.conf

7. VDO 장치가 없거나 모두 LVM 관리로 전환됐음을 확인하고 응답을 등록한다.

1줄Shell
leapp answer --section check_vdo.confirm=True

VDO 확인 질문에 대한 응답이 기록된다. 실제 VDO가 있는 시스템에서는 먼저 LVM 전환을 완료해야 한다.

8. 수정 후 AlmaLinux 9 사전 검사를 다시 실행한다.

1줄Shell
leapp preupgrade

9. AlmaLinux 9 업그레이드 트랜잭션을 준비한다.

1줄Shell
leapp upgrade

10. 재부팅해 AlmaLinux 9 업그레이드를 적용한다.

1줄Shell
reboot

11. AlmaLinux 9의 커널과 배포판을 확인한다.

3줄Shell
uname -a
cat /etc/os-release
cat /etc/redhat-release

12. AlmaLinux 9 전환 결과 확인

1줄Shell
cat /var/log/leapp/leapp-report.txt

GRUB core successfully updated를 확인하고, 보고서에 남은 예전 패키지 목록을 처리한다.

13. EL8용 Leapp 패키지를 제거한다.

1줄Shell
dnf remove -y leapp-upgrade-el8toel9 leapp-upgrade-el8toel9-deps --disableexcludes=all

leapp-upgrade-el8toel9과 예전 Leapp 의존 패키지가 제거된다.

AlmaLinux 9 에서 AlmaLinux 10 으로 업그레이드

1. AlmaLinux 9에 맞는 ELevate 저장소 패키지를 설치하거나 갱신한다.

1줄Shell
dnf install -y http://repo.almalinux.org/elevate/elevate-release-latest-el$(rpm --eval %rhel).noarch.rpm

2. AlmaLinux 10으로 올리는 Leapp 패키지를 설치한다.

1줄Shell
dnf install -y leapp-upgrade leapp-data-almalinux --disableexcludes=all

leapp-upgrade-el9toel10과 EL9용 leapp-data-almalinux를 확인한다.

3. AlmaLinux 9 패키지를 최신 상태로 맞춘다.

1줄Shell
dnf update -y

※ kernel 등이 업그레이드되어 재부팅이 필요하면 진행한다.

4. AlmaLinux 10 사전 검사를 실행한다.

1줄Shell
leapp preupgrade

5. 사전 검사 보고서를 읽고 중단 원인을 확인한다.

1줄Shell
cat /var/log/leapp/leapp-report.txt
출력18줄
18줄일반 텍스트
Risk Factor: high (inhibitor)
Title: Deprecated DHCP plugin configured
Summary: NetworkManager is configured to use the "dhclient" DHCP module. In AlmaLinux 10, this setting will be ignored along with any dhcp-client specific configuration.
Remediation: [hint] Remove "dhcp=dhclient" line from "[main]" section from all configuration files in "/etc/NetworkManager". Review configuration in "/etc/dhcp", which will be ignored.
Key: 0703d41b920d210513a8fb69ac982b8af7efc00f
----------------------------------------
Risk Factor: high (inhibitor)
Title: Legacy network configuration found
Summary: Network configuration files in legacy "ifcfg" format are present.In AlmaLinux 10, support for these files is no longer enabled and the configuration will be ignored. The following files were found:
    - /etc/sysconfig/network-scripts/ifcfg-eth0
Related links:
    - How to migrate the connection from ifcfg to NetworkManager keyfile plugin?: https://access.redhat.com/solutions/7083803
    - nmcli(1) manual, describes "connection migrate" sub-command.: https://networkmanager.dev/docs/api/latest/nmcli.html
    - nm-settings-ifcfg-rh(5), description of the "ifcfg" format: https://networkmanager.dev/docs/api/latest/nm-settings-ifcfg-rh.html
    - nm-settings-keyfile(5), description of the "keyfile" format: https://networkmanager.dev/docs/api/latest/nm-settings-keyfile.html
Remediation: [hint] Convert the configuration into NetworkManager native "keyfile" format.
[command] nmcli connection migrate /etc/sysconfig/network-scripts/ifcfg-eth0
Key: 7de70b43c3c9d20075e30894ac24a4c4e2d70837

Deprecated DHCP plugin configured와 Legacy network configuration found 두 가지 중단 원인이 확인됐다. AlmaLinux 10에서는 dhclient 설정과 ifcfg 형식을 사용하지 않으므로 internal DHCP와 NetworkManager keyfile로 전환한다.

6. NetworkManager가 internal DHCP 클라이언트를 사용하도록 설정한다.

1줄Shell
echo -e "[main]\ndhcp=internal" | tee /etc/NetworkManager/conf.d/10-dhcp.conf

7. ifcfg-eth0 연결을 NetworkManager의 기본 keyfile 형식으로 변환한다.

1줄Shell
nmcli connection migrate

ifcfg-eth0이 keyfile 연결로 마이그레이션된다. 기존 IP와 게이트웨이는 유지한다.

8. 사전 검사를 다시 실행한다.

1줄Shell
leapp preupgrade

9. AlmaLinux 10 업그레이드 트랜잭션을 준비한다.

1줄Shell
leapp upgrade

10. 재부팅해 AlmaLinux 10 업그레이드를 적용한다.

1줄Shell
reboot

11. 최종 AlmaLinux 10 커널과 배포판을 확인한다.

3줄Shell
uname -a
cat /etc/os-release
cat /etc/redhat-release

12. AlmaLinux 10 전환 보고서를 검토한다.

1줄Shell
cat /var/log/leapp/leapp-report.txt

13. 마이그레이션에 사용한 Leapp과 ELevate 패키지를 정리한다.

1줄Shell
dnf remove -y leapp leapp-deps-el9 leapp-deps-el10 leapp-repository-deps-el8 leapp-repository-deps-el9 leapp-repository-deps-el10 leapp-upgrade-el9toel10 leapp-data-almalinux elevate-release python3-leapp --disableexcludes=all

첨부 파일 1개

글을 불러오고 있습니다.