RHEL8.4(ppc64le) に IBM Power Systems service and productivity tools の ibm-power-managed パッケージをオフラインで導入

##### はじめに

Power Systems の RMC 通信 (HMC が管理用通信)では、Linux では [IBM Power Systems service and productivity tools](https://www.ibm.com/support/pages/service-and-productivity-tools) の ibm-power-managed パッケージの導入が必要になります。
RMC通信は、リソースの動的変更(Dynamic Logical Partition (DLPAR))、稼働中 VM の筐体間移動(Live Partition Mobility(LPM))などに必要です。

ibm-power-managed が導入されていない場合では、HMC が VM に管理のための通信ができないため、以下のように、VM の Health で接続されていないことを示す Warning 状態となります。

![zu2.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/517421/d9b0bdc2-41ac-2626-3d1d-12f1e1e382df.png)


なお、AIX では最初から導入されているので別途導入の必要はありません。


当記事は RHEL 8.4 に ibm-power-managed パッケージを導入したログです。

---
##### 環境

HW : PowerSystems S824
OS : RHEL 8.4 (ppc64le)　　（オフライン = インターネット非接続) 

---
##### 準備

以下のリポジトリにあるファイルを対象のサーバーに転送します。(repodata の情報も配置)

http://public.dhe.ibm.com/software/server/POWER/Linux/yum/OSS/RHEL/8/ppc64le/

```
# cd /work/RPM_linux_tools/
# pwd
/work/RPM_linux_tools
# ls -lR
.:
total 156108
-rw-r--r--. 1 root root   243260 Nov 15 02:29 devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le.rpm
-rw-r--r--. 1 root root    46760 Nov 15 02:29 DynamicRM-2.0.7-7.ppc64le.rpm
-rw-r--r--. 1 root root 72730189 Nov 15 02:29 esagent.pLinux-4.5.4-1.noarch.rpm
-rw-r--r--. 1 root root    52928 Nov 15 02:29 IBMinvscout-3.1.2-1.el8.ppc64le.rpm
-rw-r--r--. 1 root root   225828 Nov 15 02:30 ibm-power-baremetal-rhel8-8.0-2.ppc64le.rpm
-rw-r--r--. 1 root root   226172 Nov 15 02:30 ibm-power-managed-rhel8-8.0-5.ppc64le.rpm
-rw-r--r--. 1 root root   233700 Nov 15 02:30 ibm-power-repo-3.0.0-19.noarch.rpm
-rw-r--r--. 1 root root    79792 Nov 15 02:30 nmon-16m-1.el8.ppc64le.rpm
-rw-r--r--. 1 root root  2059173 Nov 15 02:30 pipestat-1.0-1.ppc64le.rpm
-rw-r--r--. 1 root root   260088 Nov 15 02:30 powerpc-utils-1.3.6-11.108.el8.ppc64le.rpm
-rw-r--r--. 1 root root   106892 Nov 15 02:30 powerpc-utils-core-1.3.6-11.108.el8.ppc64le.rpm
-rw-r--r--. 1 root root    24216 Nov 15 02:30 pseries-energy-1.4.1-1.ppc64le.rpm
drwxr-xr-x. 2 root root     4096 Nov 15 03:04 repodata
-rw-r--r--. 1 root root  5193232 Nov 15 02:30 rsct.basic-3.2.6.3-21280.ppc64le.rpm
-rw-r--r--. 1 root root 11597792 Nov 15 02:30 rsct.core-3.2.6.3-21280.ppc64le.rpm
-rw-r--r--. 1 root root  1167784 Nov 15 02:30 rsct.core.utils-3.2.6.3-21280.ppc64le.rpm
-rw-r--r--. 1 root root  1849568 Nov 15 02:30 rsct.opt.storagerm-3.2.6.3-21280.ppc64le.rpm
-rw-r--r--. 1 root root    65196 Nov 15 02:29 ServiceReport-2.2.2-1.ppc64le.rpm
-rw-r--r--. 1 root root 32032000 Nov 15 02:30 sim_ppc-power10-1.0-3597.ppc64le.rpm
-rw-r--r--. 1 root root 31304044 Nov 15 02:30 sim_ppc-power9-1.0-3597.ppc64le.rpm
-rw-r--r--. 1 root root   307900 Nov 15 02:30 src-3.2.6.3-21280.ppc64le.rpm

./repodata:
total 104
-rw-r--r--. 1 root root 18770 Nov 15 03:03 08f6aebb11c385e01b7a5134ce281846ce58eee5400a67c62e21c88a8a00d7d6-filelists.sqlite.bz2
-rw-r--r--. 1 root root  2898 Nov 15 03:03 0aa20c1f0a6f7b1ac2906f79d40d46acfaabf9fac905dd6f27512392ea07e705-other.xml.gz
-rw-r--r--. 1 root root  4273 Nov 15 03:03 0bcf84dc1c24ba06aec33b0fcc323126e18e7c1117dcf9dbad6d516ff1996336-other.sqlite.bz2
-rw-r--r--. 1 root root 13684 Nov 15 03:03 399cdfa5be55eaf6c6d83feb979d41d11b1cd55aa700b3df149749dbd4b9ab38-filelists.xml.gz
-rw-r--r--. 1 root root 10105 Nov 15 03:04 a3f8adf7f8c7e93d6bb3ef1b642b75b176b5f66450eeeb283c7842ed4d2e4d20-primary.xml.gz
-rw-r--r--. 1 root root 29342 Nov 15 03:04 ce751cef12ebb16f956907ed08215255b97fe20c6f8f28ed2403991a41bd5507-primary.sqlite.bz2
-rw-r--r--. 1 root root  3084 Nov 15  2021 repomd.xml
-rw-r--r--. 1 root root   236 Nov 15 03:04 repomd.xml.asc
-rw-r--r--. 1 root root  1700 Nov 15 03:04 repomd.xml.key
```


・ファイルを配置したディレクトリを(/work/RPM_linux_tools) yum repository に設定します。

```
# cat ibm-power-managed.repo
[ibm-power-managed]
name=IBM-Power-Managed
baseurl=file:///work/RPM_linux_tools/
enabled=1
gpgcheck=0
```

リポジトリーが設定されたか確認します。

```
# yum repolist
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

repo id                                                          repo name
dvd-AppStream                                                    RHEL84_AppStream
dvd-BaseOS                                                       RHEL84_BaseOS
ibm-power-managed                                                IBM-Power-Managed
```

インストール・メディアのBaseOS、AppStream も設定しています。


---
##### 導入


・yum で ibm-power-managed を探します。


```
# yum search ibm-power-managed
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 0:01:06 ago on Mon 15 Nov 2021 03:04:55 AM EST.
================================================ Name Matched: ibm-power-managed =================================================
ibm-power-managed-rhel8.ppc64le : IBM POWER Serviceability Tools for RHEL 8 Managed Systems
```

-> ibm-power-managed-rhel8.ppc64le で発見


・ibm-power-managed-rhel8.ppc64le を導入します。

```
# yum install ibm-power-managed-rhel8.ppc64le
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

RHEL84_BaseOS                                                                                     202 kB/s | 2.8 kB     00:00
RHEL84_AppStream                                                                                  172 kB/s | 3.2 kB     00:00
Dependencies resolved.
==================================================================================================================================
 Package                                  Architecture         Version                       Repository                      Size
==================================================================================================================================
Installing:
 ibm-power-managed-rhel8                  ppc64le              8.0-5                         ibm-power-managed              221 k
Installing dependencies:
 DynamicRM                                ppc64le              2.0.7-7                       ibm-power-managed               46 k
 IBMinvscout                              ppc64le              3.1.2-1.el8                   ibm-power-managed               52 k
 ServiceReport                            ppc64le              2.2.2-1                       ibm-power-managed               64 k
 devices.chrp.base.ServiceRM              ppc64le              3.2.6.3-21280                 ibm-power-managed              238 k
 mksh                                     ppc64le              56c-5.el8                     dvd-BaseOS                     280 k
 rsct.basic                               ppc64le              3.2.6.3-21280                 ibm-power-managed              5.0 M
 rsct.core                                ppc64le              3.2.6.3-21280                 ibm-power-managed               11 M
 rsct.core.utils                          ppc64le              3.2.6.3-21280                 ibm-power-managed              1.1 M
 rsct.opt.storagerm                       ppc64le              3.2.6.3-21280                 ibm-power-managed              1.8 M
 src                                      ppc64le              3.2.6.3-21280                 ibm-power-managed              301 k

Transaction Summary
==================================================================================================================================
Install  11 Packages

Total size: 20 M
Installed size: 108 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: rsct.core.utils-3.2.6.3-21280.ppc64le                                                                    1/1
  Running scriptlet: rsct.basic-3.2.6.3-21280.ppc64le                                                                         1/1
  Preparing        :                                                                                                          1/1
  Installing       : mksh-56c-5.el8.ppc64le                                                                                  1/11
  Running scriptlet: mksh-56c-5.el8.ppc64le                                                                                  1/11
  Installing       : src-3.2.6.3-21280.ppc64le                                                                               2/11
  Running scriptlet: src-3.2.6.3-21280.ppc64le                                                                               2/11
Enabling srcmstr.service for systemctl...
Created symlink /etc/systemd/system/multi-user.target.wants/srcmstr.service → /usr/lib/systemd/system/srcmstr.service.
Created symlink /etc/systemd/system/graphical.target.wants/srcmstr.service → /usr/lib/systemd/system/srcmstr.service.

  Running scriptlet: rsct.core.utils-3.2.6.3-21280.ppc64le                                                                   3/11
  Installing       : rsct.core.utils-3.2.6.3-21280.ppc64le                                                                   3/11
  Running scriptlet: rsct.core.utils-3.2.6.3-21280.ppc64le                                                                   3/11
Linking /usr/sbin/rsct -> /opt/rsct ...

  Running scriptlet: rsct.core-3.2.6.3-21280.ppc64le                                                                         4/11
  Installing       : rsct.core-3.2.6.3-21280.ppc64le                                                                         4/11
  Running scriptlet: rsct.core-3.2.6.3-21280.ppc64le                                                                         4/11
0513-071 The ctcas Subsystem has been added.
0513-071 The ctrmc Subsystem has been added.
Enabling ctrmc.service for systemctl ...
Created symlink /etc/systemd/system/multi-user.target.wants/ctrmc.service → /usr/lib/systemd/system/ctrmc.service.
Created symlink /etc/systemd/system/graphical.target.wants/ctrmc.service → /usr/lib/systemd/system/ctrmc.service.
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 222365.

  Running scriptlet: rsct.basic-3.2.6.3-21280.ppc64le                                                                        5/11
  Installing       : rsct.basic-3.2.6.3-21280.ppc64le                                                                        5/11
  Running scriptlet: rsct.basic-3.2.6.3-21280.ppc64le                                                                        5/11
0513-071 The ctrmc Subsystem has been added.
Enabling ctrmc.service for systemctl ...
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 223225.

  Running scriptlet: rsct.opt.storagerm-3.2.6.3-21280.ppc64le                                                                6/11
Installing IBM StorageRM ....

  Installing       : rsct.opt.storagerm-3.2.6.3-21280.ppc64le                                                                6/11
  Running scriptlet: rsct.opt.storagerm-3.2.6.3-21280.ppc64le                                                                6/11
0513-071 The ctrmc Subsystem has been added.
Enabling ctrmc.service for systemctl ...
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 223635.
Installation completed.

  Running scriptlet: DynamicRM-2.0.7-7.ppc64le                                                                               7/11
  Installing       : DynamicRM-2.0.7-7.ppc64le                                                                               7/11
  Running scriptlet: DynamicRM-2.0.7-7.ppc64le                                                                               7/11
success
0513-071 The ctrmc Subsystem has been added.
Enabling ctrmc.service for systemctl ...
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 223916.

  Running scriptlet: devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le                                                       8/11
  Installing       : devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le                                                       8/11
  Running scriptlet: devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le                                                       8/11
0513-071 The ctrmc Subsystem has been added.
Enabling ctrmc.service for systemctl ...
0513-059 The ctrmc Subsystem has been started. Subsystem PID is 224284.

  Installing       : ServiceReport-2.2.2-1.ppc64le                                                                           9/11
  Running scriptlet: ServiceReport-2.2.2-1.ppc64le                                                                           9/11
  Running scriptlet: IBMinvscout-3.1.2-1.el8.ppc64le                                                                        10/11
  Installing       : IBMinvscout-3.1.2-1.el8.ppc64le                                                                        10/11
  Installing       : ibm-power-managed-rhel8-8.0-5.ppc64le                                                                  11/11
  Running scriptlet: src-3.2.6.3-21280.ppc64le                                                                              11/11
  Running scriptlet: rsct.core.utils-3.2.6.3-21280.ppc64le                                                                  11/11
  Running scriptlet: rsct.core-3.2.6.3-21280.ppc64le                                                                        11/11
  Running scriptlet: rsct.basic-3.2.6.3-21280.ppc64le                                                                       11/11
  Running scriptlet: ibm-power-managed-rhel8-8.0-5.ppc64le                                                                  11/11
  Verifying        : DynamicRM-2.0.7-7.ppc64le                                                                               1/11
  Verifying        : IBMinvscout-3.1.2-1.el8.ppc64le                                                                         2/11
  Verifying        : ServiceReport-2.2.2-1.ppc64le                                                                           3/11
  Verifying        : devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le                                                       4/11
  Verifying        : ibm-power-managed-rhel8-8.0-5.ppc64le                                                                   5/11
  Verifying        : rsct.basic-3.2.6.3-21280.ppc64le                                                                        6/11
  Verifying        : rsct.core-3.2.6.3-21280.ppc64le                                                                         7/11
  Verifying        : rsct.core.utils-3.2.6.3-21280.ppc64le                                                                   8/11
  Verifying        : rsct.opt.storagerm-3.2.6.3-21280.ppc64le                                                                9/11
  Verifying        : src-3.2.6.3-21280.ppc64le                                                                              10/11
  Verifying        : mksh-56c-5.el8.ppc64le                                                                                 11/11
Installed products updated.

Installed:
  DynamicRM-2.0.7-7.ppc64le                          IBMinvscout-3.1.2-1.el8.ppc64le        ServiceReport-2.2.2-1.ppc64le
  devices.chrp.base.ServiceRM-3.2.6.3-21280.ppc64le  ibm-power-managed-rhel8-8.0-5.ppc64le  mksh-56c-5.el8.ppc64le
  rsct.basic-3.2.6.3-21280.ppc64le                   rsct.core-3.2.6.3-21280.ppc64le        rsct.core.utils-3.2.6.3-21280.ppc64le
  rsct.opt.storagerm-3.2.6.3-21280.ppc64le           src-3.2.6.3-21280.ppc64le

Complete!
#
```

-> 11 の rpm が導入されました。ibm-power-managed のリポジトリ内モジュールの他、BaseOS から mksh が導入されています。


---

##### 確認

導入から数分後、PowerVC 上で 対象サーバーの Health が OK となっていることを確認しました。


![図1.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/517421/e5d12b87-93ec-1047-5c16-cc74446cecfc.png)





---

これで RHEL サーバーも RMC 通信がつながり、DLPAR や LPM 操作が可能な状態になりました。




以上です。