ã¯ããã«
ã¯ã©ãŠãã€ã³ãã°ã¬ãŒã·ã§ã³äºæ¥éšã®å¶ïšã§ãã
Red Hat Enterprise Linux7ã®EOL察å¿ã§RHEL7ããRHEL8ãRHEL8ããRHEL9ã®ã€ã³ãã¬ãŒã¹ã¢ããã°ã¬ãŒã察å¿ã宿œããã®ã§æµãããŸãšããŠã¿ãŸããã
1. ã¢ããã°ã¬ãŒãã«å¿ èŠãªèŠä»¶
RHEL 7ãã8ããããŠ9ãžã®ã¢ããã°ã¬ãŒãã«ã¯ãããã€ãã®æäœèŠä»¶ãæºããå¿ èŠããããŸãããŸãã¯ãã·ã¹ãã ã®ããŒããŠã§ã¢èŠä»¶ã確èªããŸãããã
ã¡ã¢ãªèŠä»¶
RHEL 8: ããŒã«ã«ã¡ãã£ã¢ãŸã㯠NFS ãããã¯ãŒã¯ã€ã³ã¹ããŒã«ã®å Žå㯠1.5 GiBãHTTP(S) ããã³ FTP ãããã¯ãŒã¯ã€ã³ã¹ããŒã«ã®å Žå㯠3 GiB
RHEL 9: åæ§ã«ãããŒã«ã«ã¡ãã£ã¢ãŸã㯠NFS ãããã¯ãŒã¯ã€ã³ã¹ããŒã«ã®å Žå㯠1.5 GiBãHTTP(S) ããã³ FTP ãããã¯ãŒã¯ã€ã³ã¹ããŒã«ã®å Žå㯠3 GiB
ãã£ã¹ã¯å®¹é
RHEL 8: æäœ 10 GBãæšå¥š 20 GB
RHEL 9: æäœ 10 GBãæšå¥š 20 GBå€ãã®ã·ã¹ãã ã§ã¯åé¡ãªãèŠä»¶ã¯æºããããšæããŸããã詳ããã¯ä»¥äžã®ããã¥ã¡ã³ãã«èšèŒãããŠãããŸãã®ã§ãç®ãéããŠããããšãããããããŸãã
https://access.redhat.com/articles/rhel-limits
2. RHEL7ç³»ã®æçµãã€ããŒããŒãžã§ã³ãžã¢ããã°ã¬ãŒã
æ¬æ€èšŒã§äœ¿çšããç°å¢ã¯ RHEL 7.4ã§ãã®ã§ããŸã㯠æçµãã€ããŒããŒãžã§ã³ã®7.9 ãŸã§æŽæ°ããå¿ èŠããããŸãã
RHEL 7ãææ°åããŸã
# yum -y update
以äžã®ãªããžããªãæå¹åããŸã
# yum-config-manager --enable rhui-client-config-server-7 # yum-config-manager --enable rhel-7-server-rhui-extras-rpms
3. RHEL 7 â 8 ãžã®ã¢ããã°ã¬ãŒã
leappããŒã«ã䜿ã£ãŠã¢ããã°ã¬ãŒããé²ããŠãããŸãã
leappããŒã«ã¯ãRed Hat ãæäŸããã€ã³ãã¬ãŒã¹ã¢ããã°ã¬ãŒãçšã®ããŒã«ã§ã
äºåã®ç¢ºèªãšä¿®æ£äœæ¥ãæ¯æŽããŠãããŸãã
https://www.redhat.com/ja/resources/leapp-explained-detail
ãŸããã¿ãŒã²ããOSããŒãžã§ã³ãšããŠã¯ãRHEL 8.8ãããã©ã«ãã§ã®æå®ãšãªããŸãã
å¿ èŠãªããã±ãŒãžãã€ã³ã¹ããŒã«ããŸã
# yum -y install rh-amazon-rhui-client leapp-rhui-aws # yum install leapp-upgrade
次ã«ãLeapp ããŒã«ã§ã¢ããã°ã¬ãŒãã®äºå確èªãè¡ããŸãã
ããã«ãããã¢ããã°ã¬ãŒãã劚ããé»å®³èŠå ãããå Žåããããäºåã«ææ¡ã§ããŸãã
# leapp preupgrade --no-rhsm --target 8.8
äºå確èªå®äºåŸã/var/log/leapp/leapp-report.txtã«ã¬ããŒããåºåãããŸãã
============================================================
REPORT OVERVIEW
============================================================
Upgrade has been inhibited due to the following problems:
1. Possible problems with remote login using root account
2. Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed.
3. Newest installed kernel not in use
4. Missing required answers in the answer file
(äžç¥)
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
============================================================
ãã¡ãã確èªãé»å®³èŠå ãšãªãéšåãè§£æ¶ãããŠãããŸãã
䜿çšããŠããç°å¢ã«ãã£ãŠé»å®³èŠå ã¯æ§ã
ããããŸãããããã€ãæç²ããŠèšèŒããŸãã
â»Risk Factor: high (inhibitor)ãšèšèŒã®ãããã®ã«é¢ããŠã¯ãè§£æ¶ãããªããšã¢ããã°ã¬ãŒããã§ããŸããã
Risk Factor: high (inhibitor)
Title: Newest installed kernel not in use
Summary: To ensure a stable upgrade, the machine needs to be booted into the latest installed kernel.
Related links:
- Leapp upgrade fail with error "Inhibitor:Newest installed kernel not in use" Upgrade cannot proceed: https://access.redhat.com/solutions/7014134
Remediation: [hint] Boot into the most up-to-date kernel installed on the machine before running Leapp again.
Key: ebb478cfa5443f83a8c9a78ba510eb40e6e9d117
------------------------------------------------------------------------------------------------------------------------
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:
- 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
é»å®³èŠå ãžã®å¯Ÿå¿â Title: Newest installed kernel not in use
ã·ã¹ãã ãææ°ã®ã«ãŒãã«ã§èµ·åããŠããªããããã¢ããã°ã¬ãŒããé²è¡ã§ããªããšãã£ãå 容ã«ãªããŸãã
âŸïžå¯ŸåŠæ¹æ³
grub2-set-default ã³ãã³ãã§ææ°ã®ã«ãŒãã«ãéžæããŸãã
以äžã®ã³ãã³ãã䜿çšããŠãèµ·åããã«ãŒãã«ã®ããŒãžã§ã³ãæå®ã§ããŸãã
grub2-set-default [ã«ãŒãã«çªå·]
ãŸãã¯ã«ãŒãã«çªå·ã®ç¢ºèªãããŸãã
# cat /boot/grub2/grub.cfg | grep -P 'menuentry.*x86_64.*Maipo'
menuentry 'Red Hat Enterprise Linux Server (3.10.0-957.1.3.el7.x86_64) 7.4 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.11.6.el7.x86_64-advanced-3e11801e-5277-4d87-be4c-0a9a61fbc3da' {
menuentry 'Red Hat Enterprise Linux Server (3.10.0-862.3.2.el7.x86_64) 7.4 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.11.6.el7.x86_64-advanced-3e11801e-5277-4d87-be4c-0a9a61fbc3da' {
menuentry 'Red Hat Enterprise Linux Server (3.10.0-693.21.1.el7.x86_64) 7.4 (Maipo)' --class red --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.11.6.el7.x86_64-advanced-3e11801e-5277-4d87-be4c-0a9a61fbc3da' {
ãã®å Žåã®çªå·ä»ãã¯ä»¥äžã«ãªããŸãã
0çªç®: Red Hat Enterprise Linux Server (3.10.0-957.1.3.el7.x86_64)
1çªç®: Red Hat Enterprise Linux Server (3.10.0-862.3.2.el7.x86_64)
2çªç®: Red Hat Enterprise Linux Server (3.10.0-693.21.1.el7.x86_64)
0çªç®ã®ãšã³ããªïŒææ°ã®ã«ãŒãã«ïŒãæå®ããããã«ã以äžã®ã³ãã³ãã䜿çšããŸãã
# grub2-set-default 0
ã·ã¹ãã ã®åèµ·åãè¡ã
# reboot
é»å®³èŠå ãžã®å¯Ÿå¿â¡Title: Leapp detected loaded kernel drivers which have been removed in RHEL 8. Upgrade cannot proceed.
RHEL 8ã§ã¯ãç¹å®ã®ã«ãŒãã«ãã©ã€ããŒïŒäŸãã°pata_acpiãªã©ïŒãåé€ãããŠããããããããŒããããŠãããšã¢ããã°ã¬ãŒããé²è¡ããªããšãã£ãå 容ã«ãªããŸãã
âŸïžå¯ŸåŠæ¹æ³
察象ã®ã«ãŒãã«ã¢ãžã¥ãŒã«ãã¢ã³ããŒãããŸãã
â»ã¢ã³ããŒãåŸãrebootãããšã«ãŒãã«ã¢ãžã¥ãŒã«ã埩掻ããŠããŸãã®ã§ããã®ä»ã®rebootãå¿
èŠãªé»å®³èŠå ã®å¯Ÿå¿åŸã«æ¬å¯Ÿå¿ã宿œ
pata_acpiãã¢ã³ããŒã
# rmmod pata_acpi
é»å®³èŠå ã®å¯Ÿå¿ãå®äºããŸããããå床leapp ããŒã«ã䜿çšããŠã¢ããã°ã¬ãŒãåã®äºå確èªãè¡ããå ã»ã©ã®é»å®³èŠå ãæ¶ããããšã確èªããŸãã
å床ã¢ããã°ã¬ãŒãåã®äºå確èª
# leapp preupgrade --no-rhsm --target 8.8
RHEL 8 ãžã®ã¢ããã°ã¬ãŒãã宿œ
# leapp upgrade --no-rhsm --target 8.8
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.
ã¢ããã°ã¬ãŒããç¶è¡ããã«ã¯ãã·ã¹ãã ãåèµ·åããŠãã ãããšã®ããšãªã®ã§ãã³ãã³ãã§rebootã宿œãããšãããSSH æ¥ç¶ã詊ã¿ãŠãã¿ã€ã ã¢ãŠãã§æ¥ç¶ããããšãã§ããªããªã£ãŠããŸããŸããã
EC2ã€ã³ã¹ã¿ã³ã¹ã®STOR/STARTã宿œããããšã§ãå床SSHæ¥ç¶ãã§ããããã«ãªããŸããã
ããŒãžã§ã³ç¢ºèª
$ cat /etc/redhat-release Red Hat Enterprise Linux release 8.8 (Ootpa)
RHEL 8ã«ã¢ããã°ã¬ãŒãã§ããŸããïŒïŒ
ç¶ããŠRHEL 9ã«ã¢ããã°ã¬ãŒãããŠãããŸãã
4. RHEL 8 â 9 ãžã®ã¢ããã°ã¬ãŒã
ãŸãã¯ãææ°ã®ç¶æ ã«ä¿ã€ããã«ããã±ãŒãžãæŽæ°ããŸãã
RHEL 8ãææ°å
# dnf -y update
rhui-client-config-server-8ãªããžããªã®æå¹å
# dnf config-manager --set-enabled rhui-client-config-server-8
次ã«ãRHEL 8 ãã 9 ã«ã¢ããã°ã¬ãŒãããéã«äœ¿çšãã leapp-upgrade-el8toel9 ãã€ã³ã¹ããŒã«ãããã®ã§ããã7ãã8ã«ããéã«äœ¿çšããleapp-upgrade-el7toel8ãæ®ã£ãŠããŠç«¶åããŠãšã©ãŒãšãªãã®ã§åé€ããŸãã
# grep -n leapp-upgrade-el7toel8 /etc/yum.conf # sed -i '7d' /etc/yum.conf
# grep -n leapp-upgrade-el7toel8 /etc/dnf/dnf.conf # sed -i '7d' /etc/dnf/dnf.conf
RHEL 8 ãã 9çšã®leapp-upgrade ããã±ãŒãžãã€ã³ã¹ããŒã«ããŸãã
# dnf -y install leapp-rhui-aws
python2-leapp(Leapp ããŒã«ã® Python 2 çããã±ãŒãž) ãš python3-leapp(Leapp ããŒã«ã® Python 3 çããã±ãŒãž) ãç«¶åããŠããããã«ãšã©ãŒãšãªããŸãã
python2-leapp ãåé€
# dnf remove python2-leapp
leapp-upgrade ã®ã€ã³ã¹ããŒã«
# dnf install leapp-upgrade
ã¢ããã°ã¬ãŒãåã®äºå確èªã³ãã³ãã宿œããŸãã
# leapp preupgrade --no-rhsm --target 9.2
ããã§ãŸãé»å®³èŠå ããããšã®è¡šç€ºãâŠ
============================================================
UPGRADE INHIBITED
============================================================
Upgrade has been inhibited due to the following problems:
1. Inhibitor: Detected RPMs with RSA/SHA1 signature
Consult the pre-upgrade report for details and possible remediation.
============================================================
UPGRADE INHIBITED
============================================================
é»å®³èŠå ãžã®å¯Ÿå¿ã¯ã7ãã8ãžã®ã¢ããã°ã¬ãŒãã§è¡ã£ãã®ã§ãããªããããšæããŸããã
æ°ããªé»å®³èŠå ãçºçããŸããã
å床ã¬ããŒãïŒ/var/log/leapp/leapp-report.txtïŒã確èªããé»å®³èŠå ãšãªãéšåãè§£æ¶ãããŠãããŸãã
---------------------------------------- Risk Factor: high (inhibitor) Title: Detected RPMs with RSA/SHA1 signature Summary: Digital signatures using SHA-1 hash algorithm are no longer considered secure and are not allowed to be used on RHEL 9 systems by default. This causes issues when using DNF/RPM to handle packages with RSA/SHA1 signatures as the signature cannot be checked with the default cryptographic policy. Any such packages cannot be installed, removed, or replaced unless the signature check is disabled in dnf/rpm or SHA-1 is enabled using non-default crypto-policies. For more information see the following documents: - (ããã±ãŒãžåäžèЧãèšèŒãããŠããŸããçç¥ããŸã) ----------------------------------------
SHA-1 ããã·ã¥ ã¢ã«ãŽãªãºã ã䜿çšããããžã¿ã«çœ²åã¯å®å šãšã¯ã¿ãªãããªããªããããã©ã«ãã§ã¯ RHEL 9 ã·ã¹ãã ã§ã®äœ¿çšã¯èš±å¯ãããŠããŸãããããã«ãããDNF/RPM ã䜿çšã㊠RSA/SHA1 眲åä»ãããã±ãŒãžãåŠçãããšãã«åé¡ãçºçããŸããããã¯ã眲åãããã©ã«ãã®æå·åããªã·ãŒã§ãã§ãã¯ã§ããªãããã§ãããã®ãããªããã±ãŒãžã¯ãdnf/rpm ã§çœ²åãã§ãã¯ãç¡å¹ã«ããããããã©ã«ã以å€ã®æå·åããªã·ãŒã䜿çšã㊠SHA-1 ãæå¹ã«ããªãéããã€ã³ã¹ããŒã«ãåé€ããŸãã¯çœ®æã§ããŸããã
察çãšããŠã¯ãããã©ã«ã以å€ã®æå·åããªã·ãŒã䜿çšã㊠SHA-1 ãæå¹ã«ããã
ãããã¯å¯Ÿå¿æžã¿ã®æ°ããã±ãŒãžãå
¥æããããäºææ§ã®ãªãããã±ãŒãžãåé€ããå¿
èŠããããŸãã
é»å®³èŠå ãžã®å¯Ÿå¿â¢Title: Detected RPMs with RSA/SHA1 signature
æå·åããªã·ãŒã®èšå®ã¯ãããã©ã«ãã§crypto-policiesã«ããSHA-1ãç¡å¹åããŠããŸãã
以äžã®ã³ãã³ãã宿œããããšã§ãéããã©ã«ãèšå®ãžå€æŽãå¯èœã§ãã
çŸåšã® crypto-policies ã®ç¢ºèª
# update-crypto-policies --show DEFAULT
LEGACYãžå€æŽ
# update-crypto-policies --set LEGACY Setting system policy to LEGACY Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place.
ããªã·ãŒã®å€æŽãå®å šã«åæ ããã«ã¯ãã·ã¹ãã ãåèµ·åããããšããå§ãããŸããšãããŸãã®ã§ãåèµ·åããŸãã
# reboot
LEGACYã«ãªã£ãããšã確èªããŸãã
# update-crypto-policies --show LEGACY
â»ã¢ããã°ã¬ãŒãåŸã«crypto-policies ãå ã®èšå®ã«æ»ãæ¹æ³
以äžã®ã³ãã³ãã§ããã©ã«ããžæ»ããŸãã
# update-crypto-policies --set DEFAULT Setting system policy to DEFAULT Note: System-wide crypto policies are applied on application start-up. It is recommended to restart the system for the change of policies to fully take place.
Risk Factor: high (inhibitor)ã®é
ç®ã®å¯Ÿå¿ã¯å®äºããŸãããã
ã¬ããŒãïŒ/var/log/leapp/leapp-report.txtïŒã®äžã«æ°ã«ãªãé
ç®ããã£ãã®ã§ç¢ºèªããŸããã
---------------------------------------- Risk Factor: high Title: Packages not signed by Red Hat found on the system Summary: The following packages have not been signed by Red Hat and may be removed during the upgrade process in case Red Hat-signed packages to be removed during the upgrade depend on them: - (ããã±ãŒãžåäžèЧãèšèŒãããŠããŸããçç¥ããŸã) ----------------------------------------
äžèЧã«èšèŒãããŠããããã±ãŒãžã¯ Red Hat ã«ãã£ãŠçœ²åãããŠããªããããã¢ããã°ã¬ãŒãäžã«åé€ããã Red Hat çœ²åæžã¿ããã±ãŒãžããããã«äŸåããŠããå Žåã¯ãã¢ããã°ã¬ãŒã ããã»ã¹äžã«åé€ãããå¯èœæ§ããããŸãã
Risk Factor: highã®é
ç®ã¯ã察å¿ããªããŠãã¢ããã°ã¬ãŒãèªäœã¯å¯èœã§ãããRed Hat瀟ã«çœ²åãããŠããªãããã±ãŒãžã«ã€ããŠã¯ãã¢ããã°ã¬ãŒãäžã«åé€ãããå¯èœæ§ãããããã§ãã
ã¢ããã°ã¬ãŒãåŸã«åé€ãããŠããªãã確èªããåé€ãããŠãããåã€ã³ã¹ããŒã«ãå¿
èŠã§ãã
å床ã¢ããã°ã¬ãŒãåã®äºå確èªã宿œããŸãã
# leapp preupgrade --no-rhsm --target 9.2
Check completed.
==> Processing phase `Reports`
====> * verify_check_results
Check all dialogs and notify that user needs to make some choices.
====> * verify_check_results
Check all generated results messages and notify user about them.
Debug output written to /var/log/leapp/leapp-preupgrade.log
============================================================
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
============================================================
é»å®³èŠå ãæ¶ããããšã確èªã§ããã®ã§ããããã9ãžã®ã¢ããã°ã¬ãŒãã宿œããŸãã
# leapp upgrade --no-rhsm --target 9.2
åé¡ãªã9.2ãžã¢ããã°ã¬ãŒãããããšãã§ããŸããïŒïŒ
# cat /etc/redhat-release
ãŸãšã
æ°ãããµãŒããŒãç«ãŠãã«ã³ãã³ãå®è¡ã®ã¿ã§ã¢ããã°ã¬ãŒãã§ããLeappã¯éåžžã«é
åçã§ãããé»å®³èŠå ãžã®å¯Ÿå¿ãããã±ãŒãžåé€ãåã€ã³ã¹ããŒã«ãªã©ããªããªãç°¡åã«ã¯ãããªããªãšããå°è±¡ã§ããã
å¯èœã§ããã°ãå®éã®ã客æ§ç°å¢ã®AMIãååŸããæ€èšŒãããŠããæ¬çªã§å®æœããããšãããããããããŸãã
ãã®èšäºãã圹ã«ç«ãŠãã°å¹žãã§ãã
æåŸãŸã§ã芧é ããŸããŠèª ã«ããããšãããããŸããã