4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

[PowerVS] [AIX] PowerVSにAIX7.3TL2環境を構築

Last updated at Posted at 2023-12-19

はじめに

記事を作成時点(2023年12月15日)で、残念ながらPowerVSでは AIX 7.3 TL2 のイメージは提供されていませんでした。AIX 7.3 TL2 と同じ日にリリースされた AIX7.2 TL5 の SP7 も提供されていないことから、出荷後すぐには使用できないのかもしれません。

VM の作成時に現在使用可能な AIX ストック・イメージは以下のとおりです。

AIX 7.3 TL1 SP2
AIX 7.2 TL5 SP6
AIX 7.1 TL5 SP9

引用: IBM Cloud 資料 Power Systems Virtual Server FAQ

PowerVS環境にて最新のAIXのバージョンを利用するための方法として、AIX 7.3 TL1 SP2 をデプロイ後、SUMAを利用してAIX 7.3 TL2のフィックスをダウンロードし、AIX 7.3 TL2の適用をしてみましたので、AIX区画の作成からfix適用までの手順を記載します。

下記のドキュメントを参考にしました。

参考:
PowerSystemsVirtualServer_Hint&Tips.pdf
SUMAを利用したインターネット接続 AIX の fix ダウンロード
IBM Cloud 資料 Power Systems Virtual Server フィックスおよび更新のダウンロード
AIX SUMA and PowerVS - "0500-059 Entitlement is required to download. The system's serial number is not entitled"

ワークスペース作成

ログイン後、Dashboardから、"リソースの作成"を選択しました。

image.png

カタログで"Workspace for Power Systems Virtual Server"を選択しました。
(多数表示されるので、PowerVSと検索をかけると良さそうです)
image.png

"ワークスペースの作成" を選択しました。
image.png

ロケーション、詳細などを選び、使用条件に同意するのチェックボックスを付けて、作成を押しました。
image.png

ワークスペースの作成ボタンを押した後、"プロビジョニング" と表示されますが、数十秒程度でアクティブに変わりました。
image.png

image.png

ワークスペースを選びました。
image.png

左側のメニューが表示されました。
image.png

AIX区画作成

ワークスペースを選択した状態で、左側のメニューから"仮想サーバー・インスタンス"を選択し、表示された画面で、インスタンスの作成を選択しました。
image.png

それぞれ選択をして、使用条件に同意して、作成を選択しました。
(今回は、プライベートネットワークを作成していないため、パブリックネットワークの使用を選択しました)
image.png

仮想サーバー・インスタンスの画面で、更新用のボタンを押すと、区画の作成が開始されていました。
image.png

数分経過後、画面遷移して、仮想サーバー・インスタンスの画面に戻るとアクティブになっていました。
image.png

パブリックネットワーク(外部IPアドレス)は、上記画面の仮想サーバー・インスタンスの名前をクリックして表示される詳細画面の、ネットワーク・インタフェースの項目で、外部IPを参照すれば良いようです。
image.png

外部IPでssh接続をしてみますが、パスワードが不明のため、ログインできませんでした。

# ssh -l root XX.XX.XX.XX
The authenticity of host 'XX.XX.XX.XX (XX.XX.XX.XX)' can't be established.
RSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxxxxxx.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'XX.XX.XX.XX' (RSA) to the list of known hosts.
root@XX.XX.XX.XX's password:

そのため、コンソールのオープンから、コンソールを開いてみました。
image.png

パスワード設定が促されますので、パスワードを設定しました。
image.png

再度、外部IPでssh接続し、上記で設定したパスワードにてログインができることを確認しました。

# ssh -l root XX.XX.XX.XX
root@XX.XX.XX.XX's password:
Last unsuccessful login: Sun Dec 17 04:08:25 CST 2023 on ssh from YY.YY.YY.YY
Last login: Sun Dec 17 04:43:49 CST 2023 on ssh from ZZZ.ZZZ.ZZZ.ZZZ
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 7.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
#

SUMAによりTL2をダウンロード

下記マニュアルを参考に、IBMフィックス・サーバーにアクセスできるかを確認しました。エラーはないようでした。

SUMA が IBM フィックス・サーバーにアクセスできることを確認するには、(フィックスをダウンロードする AIX システムから) コマンド /usr/esa/bin/verifyConnectivity -tw を実行します。

フィックスおよび更新のダウンロード

# /usr/esa/bin/verifyConnectivity -tw
Performing Connectivity Verification Test
success  Edge_Bulk_Data_1      esupport.ibm.com              129.42.56.189    443
success  Edge_Bulk_Data_2      esupport.ibm.com              129.42.54.189    443
success  Edge_Bulk_Data_3      esupport.ibm.com              129.42.60.189    443
success  Edge_Bulk_Data_4      esupport.ibm.com              2620:0:6c2:200:129:42:60:189  443
success  Edge_Bulk_Data_5      esupport.ibm.com              2620:0:6c4:200:129:42:54:189  443
success  Edge_Bulk_Data_6      esupport.ibm.com              2620:0:6c0:200:129:42:56:189  443
success  Edge_Fix_Repository_1  esupport.ibm.com              129.42.56.189     80
success  Edge_Fix_Repository_2  esupport.ibm.com              129.42.54.189     80
success  Edge_Fix_Repository_3  esupport.ibm.com              129.42.60.189     80
success  Edge_Fix_Repository_4  esupport.ibm.com              2620:0:6c2:200:129:42:60:189   80
success  Edge_Fix_Repository_5  esupport.ibm.com              2620:0:6c4:200:129:42:54:189   80
success  Edge_Fix_Repository_6  esupport.ibm.com              2620:0:6c0:200:129:42:56:189   80
12 successes
0 failures
Connectivity Verification Test Results: succeeded

sumaが利用できるか、-a Action=Preview として確認をしましたが、こちらもエラーはありませんでした。

# 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 18
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
0500-059 Entitlement is required to download.
The system's serial number is not entitled.
Please go to the Fix Central website to download fixes.

/usr/sys/inst.imagesにはAIX7.3TL1SP1のインストールイメージが既にあるため、ダウンロードディレクトリーを変更しました。(今回は事前に/AIX73TL2というファイルシステムを5GBで作成しておき、DLTargetやFilterDirを/AIX73TL2に変更しておきました)

# 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
# suma -D -a DLTarget=/AIX73TL2
# suma -D -a FilterDir=/AIX73TL2
# suma -D
        DisplayName=
        Action=Download
        RqType=Latest
        RqName=
        Repeats=y
        DLTarget=/AIX73TL2
        NotifyEmail=root
        FilterDir=/AIX73TL2
        FilterML=
        MaxDLSize=-1
        Extend=y
        MaxFSSize=-1

実際にダウンロードをしていくため、smitty SUMAを実行しました。

                        Service Update Management Assistant (SUMA)

Move cursor to desired item and press Enter.

  Download Updates Now (Easy)
  Custom/Automated Downloads (Advanced)
  Configure SUMA

Download Updates Now (Easy)を選択しました。

  Download Updates Now (Easy)

Move cursor to desired item and press Enter.

 Download Maintenance Level or Technology Level
 Download Service Pack
 Download All Latest Fixes

"Download Maintenance Level or Technology Level" を選択しました。

Download Maintenance Level or Technology Level                                    

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* Maintenance Level or Technology Level to download  []                                                                           
+--------------------------------------------------------------------------+
|            Maintenance Level or Technology Level to download             |
|                                                                          |
| Move cursor to desired item and press Enter.                             |
|                                                                          |
|   # Known Recommended Maintenance Levels                                 |
|   # ------------------------------------                                 |
|   7300-01 <--                                                            |
|   7300-00                                                                |
|                                                                          |
+--------------------------------------------------------------------------+

AIX7.3TL2が表示されませんでしたが、手動で、"Maintenance Level or Technology Level to download" の個所に"7300-02"を入力してみました。

                                                            COMMAND STATUS

Command: failed        stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

Partition id was unassigned; will attempt to assign it.
Partition id assigned value 18
0500-059 Entitlement is required to download.
The system's serial number is not entitled.
Please go to the Fix Central website to download fixes.

エンタイトル情報に関するエラーが出力されましたが、検索をしたところ、
AIX SUMA and PowerVS - "0500-059 Entitlement is required to download. The system's serial number is not entitled" がみつかったため、下記の様に設定を行い、ダウンロードが開始されました。

# echo "COUNTRY_CODE = JP" >> /var/suma/data/config.suma
# export SUMA_COUNTRY_CODE=JP

無事にダウンロードが終わりました。

                                          COMMAND STATUS
                                          
Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

[TOP]
Partition id was unassigned; will attempt to assign it.
Partition id assigned value 18
Download SUCCEEDED: /AIX73TL2/installp/ppc/7300-02.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892643.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892642.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892640.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892639.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892638.bff
Download SUCCEEDED: /AIX73TL2/installp/ppc/U892637.bff
...
(略)

AIX7.3 TL2の適用

ダウンロードされたbffファイルがあることを確認しました。

# ls /AIX73TL2/installp/ppc
.toc         U890782.bff  U892071.bff  U892633.bff  U892689.bff  U892743.bff  U892984.bff  U893038.bff  U893831.bff  U893885.bff  U893939.bff  U893995.bff  U894133.bff  U900029.bff  U900089.bff  U900143.bff
7300-02.bff  U890783.bff  U892073.bff  U892634.bff  U892690.bff  U892744.bff  U892985.bff  U893039.bff  U893832.bff  U893886.bff  U893940.bff  U893996.bff  U894134.bff  U900030.bff  U900090.bff  U900144.bff
...
(略)

smitty update_allにて必要オプションを選択してTL2の適用を行いました。

# smitty update_all

本来は、【TF】【IBMPower】【AIX】AIX TL/SP 適用時の注意点で事前に確認してからアップグレードするべきかと思いますが、今回はテスト環境ですので、プレビューなども行わず、"ACCEPT new license agreements? "を"yes"に変更してアップデートを開始しました。

                   Update Installed Software to Latest Level (Update All)

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

                                                        [Entry Fields]
* INPUT device / directory for software               /AIX73TL2/installp/ppc
* 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                                 +

  WPAR Management
      Perform Operation in Global Environment         yes                                +
      Perform Operation on Detached WPARs             no                                 +
          Detached WPAR Names                        [_all_wpars]                        +
      Remount Installation Device in WPARs            yes                                +
      Alternate WPAR Installation Device             []

確認画面ではEnterにて先に進み、アップグレードが開始されました。

|                              ARE YOU SURE?                               |
|                                                                          |
| Continuing may delete information you may want                           |
| to keep.  This is your last chance to stop                               |
| before continuing.                                                       |
|     Press Enter to continue.                                             |
|     Press Cancel to return to the application.                           |
|                                                                          |
+--------------------------------------------------------------------------+

無事に成功しました。

                                                      COMMAND STATUS

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.
...

# oslevel -s
7300-02-01-2346

再起動します。
再起動後も正常にAIX7.3TL2と表示されます。

# oslevel -s
7300-02-01-2346
4
0
0

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
4
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?