LoginSignup
2
1

Linux on Power : RHEL8.4 (ppc64le)から RHEL8.6(ppc64le) へアップデート

Posted at

はじめに

Power Systems 上の RHEL サーバーのバージョン 8.4 から 8.6 にアップデートしたログです。

参考:


環境

OS: RHEL 8.4 ppc64le

# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.4 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.4"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.4 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8.4:GA"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.4
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.4"

# uname -a
Linux rheltest 4.18.0-305.el8.ppc64le #1 SMP Thu Apr 29 08:53:15 EDT 2021 ppc64le ppc64le ppc64le GNU/Linux

HW: Power Systems S824


前提

RHEL 8.6 のベース・イメージ iso ファイルを使用してアップデートを実行します。

isoをマウントするディレクトリの作成

# mkdir -p /media/rhel86dvd/

iso ファイル "rhel-8.6-ppc64le-dvd.iso " をマウント

# mount -t iso9660 -o loop /work/iso/rhel-8.6-ppc64le-dvd.iso  /media/rhel86dvd/
mount: /media/rhel86dvd: WARNING: device write-protected, mounted read-only.
  • dnf.conf の設定
# cat /etc/dnf/dnf.conf

[RHEL-BaseOS]
name=RHEL86_BaseOS
baseurl=file:///media/rhel86dvd/BaseOS/
enabled=1
gpgcheck=0
gpgkey=file:///media/rhel86dvd/RPM-GPG-KEY-redhat-release

[RHEL-AppStream]
name=RHEL86_AppStream
baseurl=file:///media/rhel86dvd/AppStream/
enabled=1
gpgcheck=0
gpgkey=file:///media/rhel86dvd/RPM-GPG-KEY-redhat-release
# dnf repolist
repo id                                repo name
RHEL-AppStream                         RHEL86_AppStream
RHEL-BaseOS                            RHEL86_BaseOS

アップデートの実行

# dnf updateinfo list redhat-release
RHEL86_BaseOS                                    92 MB/s | 2.0 MB     00:00
RHEL86_AppStream                                133 MB/s | 6.5 MB     00:00
# time dnf upgrade
Last metadata expiration check: 0:02:26 ago on Fri 08 Mar 2024 01:17:34 AM EST.
Dependencies resolved.
=======================================================================================================================
 Package                                       Arch     Version                                   Repository       Size
=======================================================================================================================
Installing:
 kernel                                        ppc64le  4.18.0-372.9.1.el8                        RHEL-BaseOS     8.0 M
Upgrading:
 ModemManager                                  ppc64le  1.18.2-1.el8                              RHEL-BaseOS     1.1 M
 ModemManager-glib                             ppc64le  1.18.2-1.el8                              RHEL-BaseOS     310 k
 NetworkManager                                ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     2.4 M
 NetworkManager-adsl                           ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     149 k
 NetworkManager-bluetooth                      ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     179 k
 NetworkManager-config-server                  noarch   1:1.36.0-4.el8                            RHEL-BaseOS     136 k
 NetworkManager-libnm                          ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     1.8 M
 NetworkManager-team                           ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     152 k
 NetworkManager-tui                            ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     364 k
 NetworkManager-wifi                           ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     199 k
 NetworkManager-wwan                           ppc64le  1:1.36.0-4.el8                            RHEL-BaseOS     183 k
 accountsservice                               ppc64le  0.6.55-4.el8                              RHEL-AppStream  140 k
 accountsservice-libs                          ppc64le  0.6.55-4.el8                              RHEL-AppStream   96 k
 adcli                                         ppc64le  0.8.2-12.el8                              RHEL-BaseOS     124 k
 adwaita-cursor-theme                          noarch   3.28.0-3.el8                              RHEL-AppStream  647 k
 adwaita-icon-theme                            noarch   3.28.0-3.el8                              RHEL-AppStream   11 M
 alsa-lib                                      ppc64le  1.2.6.1-3.el8                             RHEL-AppStream  548 k
 alsa-ucm                                      noarch   1.2.6.1-3.el8                             RHEL-AppStream   94 k
 alsa-utils                                    ppc64le  1.2.6-1.el8                               RHEL-AppStream  1.1 M
 anaconda-core                                 ppc64le  33.16.6.7-1.el8                           RHEL-AppStream  2.4 M
 anaconda-gui                                  ppc64le  33.16.6.7-1.el8                           RHEL-AppStream  574 k
 anaconda-tui                                  ppc64le  33.16.6.7-1.el8                           RHEL-AppStream  289 k
 anaconda-widgets                              ppc64le  33.16.6.7-1.el8                           RHEL-AppStream  225 k
 aspell                                        ppc64le  12:0.60.6.1-22.el8                        RHEL-AppStream  695 k
 audit                                         ppc64le  3.0.7-2.el8.2                             RHEL-BaseOS     279 k


~ 省略 ~ 


 nss                                           ppc64le  3.67.0-7.el8_5                            RHEL-AppStream  796 k
 nss-softokn                                   ppc64le  3.67.0-7.el8_5                            RHEL-AppStream  518 k
 nss-softokn-freebl                            ppc64le  3.67.0-7.el8_5                            RHEL-AppStream  376 k
 nss-sysinit                                   ppc64le  3.67.0-7.el8_5                            RHEL-AppStream   73 k
 nss-util                                      ppc64le  3.67.0-7.el8_5                            RHEL-AppStream  144 k
 numactl-libs                                  ppc64le  2.0.12-13.el8                             RHEL-BaseOS      39 k
 nvme-cli                                      ppc64le  1.16-3.el8                                RHEL-BaseOS     527 k
 opal-prd                                      ppc64le  6.7.1-1.el8                               RHEL-BaseOS      64 k
 openjpeg2                                     ppc64le  2.4.0-4.el8                               RHEL-AppStream  181 k
 openldap                                      ppc64le  2.4.46-18.el8                             RHEL-BaseOS     380 k
 openssh                                       ppc64le  8.0p1-13.el8                              RHEL-BaseOS     520 k
 openssh-clients                               ppc64le  8.0p1-13.el8                              RHEL-BaseOS     687 k
 openssh-server                                ppc64le  8.0p1-13.el8                              RHEL-BaseOS     527 k
 openssl                                       ppc64le  1:1.1.1k-6.el8_5                          RHEL-BaseOS     712 k
 openssl-libs                                  ppc64le  1:1.1.1k-6.el8_5                          RHEL-BaseOS     1.5 M
 os-prober                                     ppc64le  1.74-9.el8                                RHEL-BaseOS      56 k
 osinfo-db                                     noarch   20211216-1.el8                            RHEL-AppStream  258 k
 ostree                                        ppc64le  2022.1-2.el8                              RHEL-AppStream  249 k
 ostree-libs                                   ppc64le  2022.1-2.el8                              RHEL-AppStream  422 k
 pam                                           ppc64le  1.3.1-16.el8                              RHEL-BaseOS     782 k
 pango                                         ppc64le  1.42.4-8.el8                              RHEL-AppStream  314 k
 parted                                        ppc64le  3.2-39.el8                                RHEL-BaseOS     579 k

 
~ 省略 ~ 

 
 webkit2gtk3-jsc                               ppc64le  2.34.6-1.el8                              RHEL-AppStream  3.5 M
 webrtc-audio-processing                       ppc64le  0.3-10.el8                                RHEL-AppStream  305 k
 which                                         ppc64le  2.21-17.el8                               RHEL-BaseOS      50 k
 wpa_supplicant                                ppc64le  1:2.10-1.el8                              RHEL-BaseOS     2.3 M
 xdg-desktop-portal                            ppc64le  1.6.0-6.el8                               RHEL-AppStream  407 k
 xfsdump                                       ppc64le  3.1.8-4.el8                               RHEL-BaseOS     345 k
 xfsprogs                                      ppc64le  5.0.0-10.el8                              RHEL-BaseOS     1.1 M
 xmlrpc-c                                      ppc64le  1.51.0-6.el8                              RHEL-BaseOS     222 k
 xmlrpc-c-client                               ppc64le  1.51.0-6.el8                              RHEL-BaseOS      40 k
 xorg-x11-font-utils                           ppc64le  1:7.5-41.el8                              RHEL-AppStream  113 k
 xorg-x11-server-Xorg                          ppc64le  1.20.11-5.el8                             RHEL-AppStream  1.6 M
 xorg-x11-server-Xwayland                      ppc64le  21.1.3-2.el8                              RHEL-AppStream  1.0 M
 xorg-x11-server-common                        ppc64le  1.20.11-5.el8                             RHEL-AppStream   43 k
 yum                                           noarch   4.7.0-8.el8                               RHEL-BaseOS     202 k
 zlib                                          ppc64le  1.2.11-18.el8_5                           RHEL-BaseOS     112 k
Installing dependencies:
 NetworkManager-initscripts-updown             noarch   1:1.36.0-4.el8                            RHEL-BaseOS     137 k
 kernel-core                                   ppc64le  4.18.0-372.9.1.el8                        RHEL-BaseOS      37 M
 kernel-modules                                ppc64le  4.18.0-372.9.1.el8                        RHEL-BaseOS      27 M
 libbpf                                        ppc64le  0.4.0-3.el8                               RHEL-BaseOS     145 k
 libglvnd-opengl                               ppc64le  1:1.3.4-1.el8                             RHEL-AppStream   50 k
 lmdb-libs                                     ppc64le  0.9.24-1.el8                              RHEL-BaseOS      66 k
 python3-cloud-what                            ppc64le  1.28.29-3.el8                             RHEL-BaseOS     310 k
 shadow-utils-subid                            ppc64le  2:4.6-16.el8                              RHEL-BaseOS     123 k
Installing weak dependencies:
 glibc-gconv-extra                             ppc64le  2.28-189.1.el8                            RHEL-AppStream  1.8 M
 keyutils                                      ppc64le  1.5.10-9.el8                              RHEL-BaseOS      68 k

Transaction Summary
=======================================================================================================================
Install   11 Packages
Upgrade  564 Packages

Total size: 906 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.8-6.el8.ppc64le                           1/1
  Running scriptlet: kmod-kvdo-6.2.6.14-84.el8.ppc64le                      1/1
  Preparing        :                                                        1/1
  Running scriptlet: libgcc-8.5.0-10.el8.ppc64le                            1/1
  Upgrading        : libgcc-8.5.0-10.el8.ppc64le                         1/1140
  Running scriptlet: libgcc-8.5.0-10.el8.ppc64le                         1/1140
  Upgrading        : hwdata-0.314-8.12.el8.noarch                        2/1140
  Upgrading        : gnome-control-center-filesystem-3.28.2-33.el8_      3/1140
  Upgrading        : bind-license-32:9.11.36-3.el8.noarch                4/1140
  Upgrading        : filesystem-3.8-6.el8.ppc64le                        5/1140
  Upgrading        : cups-filesystem-1:2.2.6-44.el8.noarch               6/1140

  ~ 省略 ~


  Installed:
  NetworkManager-initscripts-updown-1:1.36.0-4.el8.noarch
  glibc-gconv-extra-2.28-189.1.el8.ppc64le
  kernel-4.18.0-372.9.1.el8.ppc64le
  kernel-core-4.18.0-372.9.1.el8.ppc64le
  kernel-modules-4.18.0-372.9.1.el8.ppc64le
  keyutils-1.5.10-9.el8.ppc64le
  libbpf-0.4.0-3.el8.ppc64le
  libglvnd-opengl-1:1.3.4-1.el8.ppc64le
  lmdb-libs-0.9.24-1.el8.ppc64le
  python3-cloud-what-1.28.29-3.el8.ppc64le
  shadow-utils-subid-2:4.6-16.el8.ppc64le

Complete!

real	13m21.355s
user	11m24.665s
sys	0m38.608s
#

所要時間 13 分程度でした。
11 パッケージがインストールされ、564 パッケージがアップデートされました。

確認

・バージョンは8.6に更新されています。

# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"

Linux rheltest 4.18.0-305.el8.ppc64le #1 SMP Thu Apr 29 08:53:15 EDT 2021 ppc64le ppc64le ppc64le GNU/Linux

ファイルの更新を確認します。

もっと良い確認方法はいろいろあると思いますが...

・/boot ディレクトリ内で 30分以内に更新されたファイルの確認

]# find /boot -type f -mmin -30 -ls
  1572994      8 -rw-r--r--   1  root     root         6479 Mar  8 01:30 /boot/grub2/grub.cfg
  1572995      4 -rw-r--r--   1  root     root         1024 Mar  8 01:29 /boot/grub2/grubenv
   524422      4 -rw-r--r--   1  root     root          361 Mar  8 01:30 /boot/loader/entries/1c64b143fc9549868928e8e46a4bacd6-4.18.0-372.9.1.el8.ppc64le.conf
   446444  55192 -rw-------   1  root     root     56515759 Mar  8 01:28 /boot/initramfs-4.18.0-305.el8.ppc64le.img
   446443  30272 -rw-------   1  root     root     30996992 Mar  8 01:28 /boot/initramfs-4.18.0-305.el8.ppc64lekdump.img
   446449  55272 -rw-------   1  root     root     56597565 Mar  8 01:30 /boot/initramfs-4.18.0-372.9.1.el8.ppc64le.img

・/etc ディレクトリ内で 30分以内に更新されたファイルの確認

# find /etc -type f -mmin -30 -ls
  2790046      4 -rw-r--r--   1  root     root          480 Mar  8 01:16 /etc/dnf/dnf.conf
 67781948    144 -r--r--r--   1  root     root       145596 Mar  8 01:29 /etc/pki/ca-trust/extracted/edk2/cacerts.bin
101434214    144 -r--r--r--   1  root     root       146170 Mar  8 01:29 /etc/pki/ca-trust/extracted/java/cacerts
   841154    240 -r--r--r--   1  root     root       243169 Mar  8 01:29 /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt
 34635142    196 -r--r--r--   1  root     root       200578 Mar  8 01:29 /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
 34635151    152 -r--r--r--   1  root     root       153694 Mar  8 01:29 /etc/pki/ca-trust/extracted/pem/email-ca-bundle.pem
 34635157      0 -r--r--r--   1  root     root            0 Mar  8 01:29 /etc/pki/ca-trust/extracted/pem/objsign-ca-bundle.pem
 68655747      4 -rw-r--r--   1  root     root          360 Mar  8 01:26 /etc/default/grub
 35573551      4 -rw-r-----   1  root     lp           3000 Mar  8 01:25 /etc/cups/cups-files.conf
 33671261     40 -rw-r--r--   1  root     root        40711 Mar  8 01:33 /etc/ld.so.cache
   936011      4 -rw-r--r--   1  root     root         2931 Mar  8 01:31 /etc/dconf/db/ibus
   936013      4 -rw-r--r--   1  root     root          731 Mar  8 01:31 /etc/dconf/db/distro
 35149433      4 -rw-r--r--   1  root     root          262 Mar  8 01:25 /etc/selinux/targeted/contexts/customizable_types
 68329046    400 -rw-r--r--   1  root     root       408301 Mar  8 01:25 /etc/selinux/targeted/contexts/files/file_contexts
 68329048     16 -rw-r--r--   1  root     root        14594 Mar  8 01:25 /etc/selinux/targeted/contexts/files/file_contexts.homedirs
 68329047    564 -rw-r--r--   1  root     root       575297 Mar  8 01:25 /etc/selinux/targeted/contexts/files/file_contexts.bin
 68329049     20 -rw-r--r--   1  root     root        19983 Mar  8 01:25 /etc/selinux/targeted/contexts/files/file_contexts.homedirs.bin
 35471763   8720 -rw-r--r--   1  root     root      8928355 Mar  8 01:25 /etc/selinux/targeted/policy/policy.31
  1271243      4 -rw-r--r--   1  root     root           73 Mar  8 01:25 /etc/selinux/targeted/seusers
100901568  11100 -r--r--r--   1  root     root     11365229 Mar  8 01:33 /etc/udev/hwdb.bin
101396046      4 -rw-r--r--   1  root     root          452 Mar  8 01:31 /etc/crypto-policies/back-ends/nss.config
101396082      4 -rw-r--r--   1  root     root            8 Mar  8 01:31 /etc/crypto-policies/state/current
101396083      4 -rw-r--r--   1  root     root         1825 Mar  8 01:31 /etc/crypto-policies/state/CURRENT.pol
101781669      4 -rw-r--r--   1  root     root         1959 Mar  8 01:31 /etc/authselect/system-auth
101781718      4 -rw-r--r--   1  root     root         1887 Mar  8 01:31 /etc/authselect/password-auth
101781719      4 -rw-r--r--   1  root     root         1201 Mar  8 01:31 /etc/authselect/fingerprint-auth
101768083      4 -rw-r--r--   1  root     root           91 Mar  8 01:31 /etc/authselect/smartcard-auth
101768084      4 -rw-r--r--   1  root     root          393 Mar  8 01:31 /etc/authselect/postlogin
101768087      4 -rw-r--r--   1  root     root         3069 Mar  8 01:31 /etc/authselect/nsswitch.conf
101768088      4 -rw-r--r--   1  root     root          230 Mar  8 01:31 /etc/authselect/dconf-db
101768089      4 -rw-r--r--   1  root     root          260 Mar  8 01:31 /etc/authselect/dconf-locks
101781706      4 -rw-r--r--   1  root     root           42 Mar  8 01:31 /etc/authselect/authselect.conf
 35527893     12 -rw-r--r--   1  root     root         8550 Mar  8 01:26 /etc/kdump.conf
 68952509      4 -rw-r--r--   1  root     root           14 Mar  8 01:28 /etc/tuned/active_profile
 68655614      0 -rw-r--r--   1  root     root            0 Mar  8 01:28 /etc/tuned/post_loaded_profile
 68655615      4 -rw-r--r--   1  root     root            5 Mar  8 01:28 /etc/tuned/profile_mode

ご参考まで。

以上です。

2
1
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1