SUMA (Service Update Management Assistant) を使用した AIX fix ダウンロード
IBM Cloud 上の PowerVirtual Server で public ネットワークを付与したインターネット接続のAIX を使って、SUMA (Service Update Management Assistant) の fix ダウンロードを 試してみました。
インターネット接続のAIXを使用する環境がなかなかなかったので、SUMA は初めて使用しています。
[参考]
・IBM cloud docs : IBM Power Systems Virtual Server : フィックスおよび更新のダウンロード
https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-downloading-fixes-updates&locale=ja
SUMA とは:
https://www.ibm.com/support/knowledgecenter/ja/ssw_aix_72/install/serv_update_mgt.html
SUMA は、フィックス配布 Web サイトからフィックスをシステムにダウンロードするための自動インターフェースをセットアップします。 特定の新規フィックスおよびテクノロジー・レベルの可用性を定期的に検査するよう、SUMA を構成することができます。 そのため、システム管理者が保守更新を手動で Web から取得する必要はありません。
SUMA を AIX 論理区画 (LPAR) で、または NIM マスターとして構成すると、SUMA はフィックス配信 Web サイトへの接続を確立し、使用可能なサービス更新をダウンロードします。
環境
・IBM Cloud Power Systems Virtual Server : AIX7.2TL04SP01
# oslevel -s
7200-04-01-1939
マニュアルに記載の通り、構成確認から行います。
https://cloud.ibm.com/docs/power-iaas?topic=power-iaas-downloading-fixes-updates&locale=ja#configuring-aix-proxy
# suma -x -a Action=Preview -a RqType=LatestCopy
0500-019 The -a flag entry RqType=LatestCopy is not valid.
・・・??
どうやら、RqType=LatestCopy ではなく、RqType=Latest のようです。
コマンド・リファレンスに RqType=LatestCopy は見当たりませんでした。
RqType=Latest で実行
# suma -x -a Action=Preview -a RqType=Latest
****************************************
Performing preview download.
****************************************
Platform Extension: information for proxy SAS not found in repository
Partition id was unassigned; will attempt to assign it.
Partition id assigned value 21
Storing auth proxy creds for SAS
successfully stored auth proxy creds for SAS
Storing auth proxy creds for PROFILE_URIS_LENGTH
successfully stored auth proxy creds for PROFILE_URIS_LENGTH
Storing auth proxy creds for PROFILE_URI_0
successfully stored auth proxy creds for PROFILE_URI_0
Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/7200-04-02.bff
Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/U886886.bff
〜 長いため省略 〜
Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/U883955.bff
Download SUCCEEDED: /usr/sys/inst.images/installp/ppc/U883947.bff
Total bytes of updates downloaded: 1991890432
Summary:
192 downloaded
0 failed
0 skipped
#
結果が返ってきたのでこの環境で SUMA が使用可能であることがわかりました。
Latest として、 AIX7.2TL04SP02 がダウンロードできるようです。
デフォルトの構成を確認します。
# suma -c
FIXSERVER_PROTOCOL=https
DOWNLOAD_PROTOCOL=http
DL_TIMEOUT_SEC=180
DL_RETRY=1
HTTP_PROXY=
HTTPS_PROXY=
SCREEN_VERBOSE=LVL_INFO
NOTIFY_VERBOSE=LVL_INFO
LOGFILE_VERBOSE=LVL_VERBOSE
MAXLOGSIZE_MB=1
REMOVE_CONFLICTING_UPDATES=yes
REMOVE_DUP_BASE_LEVELS=yes
REMOVE_SUPERSEDE=yes
TMPDIR=/var/suma/tmp
WEB_IDENTITY_FILE=
# suma -D
DisplayName=
Action=Download
RqType=Latest
RqName=
Repeats=y
DLTarget=/usr/sys/inst.images
NotifyEmail=root
FilterDir=/usr/sys/inst.images
FilterML=
MaxDLSize=-1
Extend=y
MaxFSSize=-1
ダウンロード・ディレクトリ変更
ダウンロードディレクトリが、「/usr/sys/inst.images」となっているので、
AIX7.2TL04SP02用のディレクトリを作成して変更します。
# mkdir /tmp/AIX720402
# ls -l /tmp/AIX720402
total 0
smit で以下を辿ります。
View/Change SUMA Task Defaults
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Action [Download] +
Directory for item storage [/tmp/AIX720402 ] #<- ここを変更
Type of item to request [Service Pack] +
Name of item to request []
Repository to filter against [/tmp/AIX720402 ] #<- ここを変更
Maintenance or Technology Level to filter against [] +
Maximum total download size (MB) [-1] +#
EXTEND file systems if space needed? yes +
Maximum file system size (MB) [-1] +#
Notify email address [root] +
変更を確認します。
# suma -D
DisplayName=
Action=Download
RqType=SP
RqName=
Repeats=y
DLTarget=/tmp/AIX720402 <-変更されていることを確認
NotifyEmail=root
FilterDir=/tmp/AIX720402 <-変更されていることを確認
FilterML=
MaxDLSize=-1
Extend=y
MaxFSSize=-1
タスク作成
suma で AIX7.2TL04SP02 の Download タスクを作成します。
この環境では、Latest で AIX7.2TL04SP02 が対象になりますが、レベルを指定したダウンロードを行うことにしました。
また、-s オプションで実行日時を指定します。
# suma -s "0 5 * * *" -a Action=Download -a RqType=SP -a RqName=7200-04-02 -a DisplayName=AIX720402
Task ID 1 created.
#
SUMA のタスクを確認します。
# suma -l
1:
DisplayName=AIX720402
Action=Download
RqType=SP
RqName=7200-04-02
Repeats=y
DLTarget=/tmp/AIX720402
NotifyEmail=root
FilterDir=/tmp/AIX720402
FilterML=7200-04
MaxDLSize=-1
Extend=y
MaxFSSize=-1
cron にも登録されています。
# crontab -l | grep suma
0 5 * * * _SUMA=cron /usr/suma/bin/suma -x 1
5:00 が経過した後、ダウンロードできているかを確認しました。
# ls -lR /tmp/AIX720402
total 0
drwxr-xr-x 3 root system 256 Jul 09 05:19 installp
/tmp/AIX720402/installp:
total 24
drwxr-xr-x 2 root system 12288 Jul 09 05:56 ppc
/tmp/AIX720402/installp/ppc:
total 3898912
-rw-r--r-- 1 root system 552899 Jul 09 05:56 .toc
-rw-r--r-- 1 root system 512 Jul 09 05:19 7200-04-02.bff
-rw-r--r-- 1 root system 168688640 Jul 09 05:21 U883098.bff
-rw-r--r-- 1 root system 15226880 Jul 09 05:21 U883099.bff
-rw-r--r-- 1 root system 10793984 Jul 09 05:21 U883100.bff
〜 長いため省略 〜
-rw-r--r-- 1 root system 98979840 Jul 09 05:20 U887120.bff
-rw-r--r-- 1 root system 15762432 Jul 09 05:20 U887121.bff
-rw-r--r-- 1 root system 358400 Jul 09 05:20 U887222.bff
#
# ls -l /tmp/AIX720402/installp/ppc | grep bff | wc -l
192
192個の bff ファイルがダウンロードされていました。
cron実行による自動ダウンロードになるので便利です。
また、ダウンロード先の/tmp ファイルシステムは自動で拡張されていました。
タスクが実行されたため、SUMA タスク、cron の登録は無くなっています。
# suma -l
#
# crontab -l | grep suma
#
AIX update
せっかくなので、ダウンロードしたSPを適用してAIXをアップデートします。
smit install を実行:
- Install and Update Software
- Update Installed Software to Latest Level (Update All)
- INPUT device / directory for software [ /tmp/AIX720402/]
Update Installed Software to Latest Level (Update All)
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[TOP] [Entry Fields]
* INPUT device / directory for software /tmp/AIX720402/
* SOFTWARE to update _update_all
PREVIEW only? (update operation will NOT occur) no +
COMMIT software updates? yes +
SAVE replaced files? no +
AUTOMATICALLY install requisite software? yes +
EXTEND file systems if space needed? yes +
VERIFY install and check file sizes? no +
DETAILED output? no +
Process multiple volumes? yes +
ACCEPT new license agreements? yes +
PREVIEW new LICENSE agreements? no +
実行後、無事アップデートされていました。
# oslevel -s
7200-04-02-2016
参考:
・suma コマンド
https://www.ibm.com/support/knowledgecenter/ja/ssw_aix_72/s_commands/suma.html
以上です。