AIX NIM でのマイグレーション・リストアの実行(OS アップグレード 7.1TL2 -> 7.2TL4)

##### はじめに

AIX のOSアップグレードの手法の一つとして、NIM(Network Installation Manager) を使用したmksysb(AIX システムバックアップ) のマイグレーション・リストアがあります。

久しぶりにNIMのマイグレーション・リストアを実施したのでログを記載します。


参考情報：

https://www.ibm.com/docs/ja/aix/7.1?topic=migration-performing-mksysb-nim-installation




---
#### 環境

・NIMサーバー:     AIX 7.3TL0SP1
・NIMクライアント:  AIX 7.1TL2  =>  AIX 7.2TL4SP4 にアップグレード (ホスト名 p8129a)


HW : PowerSystems S824


---
#### NIMサーバーでの定義

① lpp_source 
AIX 7.2TTL4SP0 のレベルのlpp_sourceを使用(事前定義済み)


https://www.ibm.com/docs/ja/aix/7.3?topic=resource-defining-lpp-source


```
# lsnim -l AIX720-04-00
AIX720-04-00:
   class       = resources
   type        = lpp_source
   arch        = power
   Rstate      = ready for use
   prev_state  = unavailable for use
   location    = /work/AIX720_04_00_lpp_source
   simages     = yes
   alloc_count = 1
   server      = master
#
```

---

② SPOT

AIX 7.2TL4SP0のSPOTを使用(事前定義済み)

https://www.ibm.com/docs/ja/aix/7.3?topic=resource-defining-spot


```
# lsnim -l AIX720400spot
AIX720400spot:
   class         = resources
   type          = spot
   plat_defined  = chrp
   arch          = power
   Rstate        = ready for use
   prev_state    = verification is being performed
   location      = /work/spot/AIX720400spot/usr
   version       = 7
   release       = 2
   mod           = 4
   oslevel_r     = 7200-04
   oslevel_s     = 7200-04-00-0000
   alloc_count   = 0
   server        = master
   if_supported  = chrp.64 ent
   Rstate_result = success
#
```

---


③ 対象サーバーのmksysb （事前にmksysbリソース定義済み)

https://www.ibm.com/docs/ja/aix/7.3?topic=resource-defining-mksysb


```
# lsnim -l p8129a_mksysb
p8129a_mksysb:
   class          = resources
   type           = mksysb
   creation_date  = Mon Dec 5 21:33:48 2022
   source_image   = p8129a
   arch           = power
   Rstate         = ready for use
   prev_state     = unavailable for use
   location       = /work/mksysb/p8129a_mksysb
   version        = 7
   release        = 1
   mod            = 2
   oslevel_r      = 7100-02            
   oslevel_s      = 7100-02
   alloc_count    = 1
   server         = master
   extracted_spot = p8129a_spot
```

-> 元のmksysbは AIX7.1TL2 レベルです。


---

④ NIMマイグレーションの際に必要となるbosinst_data定義 (事前定義済み)

https://www.ibm.com/docs/ja/aix/7.3?topic=resource-defining-bosinst-data


```
# lsnim -l p8129a_bosinstdata
p8129a_bosinstdata:
   class       = resources
   type        = bosinst_data
   Rstate      = ready for use
   prev_state  = unavailable for use
   location    = /work/bosist_data/p8129a2_bosinst_data
   alloc_count = 1
   server      = master
#
```

定義した bosinst_data の内容

```p8129a2_bosinst_data
# cat /work/bosist_data/p8129a2_bosinst_data
control_flow:
    CONSOLE = Default
    INSTALL_METHOD = migrate                  ###<= migrationで必須
    PROMPT = no　　　　　　　　　　　　　　　      ###<= migrationで必須
    EXISTING_SYSTEM_OVERWRITE = yes           ###<= migrationで必須
    ACCEPT_LICENSES = yes    
    INSTALL_DEVICES_AND_UPDATES = yes         ###<= migrationで必須
    MKSYSB_MIGRATION_DEVICE = network         ###<= migrationで必須
    RECOVER_DEVICES = no　　　　　　　　　　　 　 ###<= migrationで必須

target_disk_data:
    LOCATION =
    SIZE_MB =
    HDISKNAME =

locale:
    BOSINST_LANG =
    CULTURAL_CONVENTION =
    MESSAGES =
    KEYBOARD =
#
```

参考情報：

https://www.ibm.com/docs/ja/aix/7.3?topic=migration-requirements-using-customized-bosinstdata-file-mksysb

抜粋：
> ファイルに、新しい変数 MKSYSB_MIGRATION_DEVICE が含まれている。 この変数は、mksysb が入っているデバイスの名前を指定します。 この変数でサポートされる値については、 bosinst.data control_flow スタンザの説明を参照してください。
CONTROL_FLOW スタンザの変数が、次のように設定されている。
> ・ PROMPT は no に設定する。
> ・ INSTALL_METHOD は migrate に設定する。
> ・ EXISTING_SYSTEM_OVERWRITE は はいに設定する必要があります。
> ・ RECOVER_DEVICES は no に設定する。 mksysb マイグレーションでは、mksysb ODM で指定されているソース・システムに起因する sys0 のリカバリーが試みられますが、他のデバイス固有のデータはソース・システムからはリカバリーされません。



---

#### NIMクライアントへの定義


参考情報：　[ステップ 1. インストールのためのシステムの準備](https://www.ibm.com/docs/ja/aix/7.1?topic=migration-performing-mksysb-nim-installation)

NIMサーバーでp8129aに対して bos_inst操作を実行します。

```
# nim -o bos_inst -a source=rte -a spot=AIX720400spot -a lpp_source=AIX720-04-00 -a bosinst_data=p8129a_bosinstdata -a mksysb=p8129a_mksysb -a boot_client=no p8129a
```

```
# lsnim -l p8129a
p8129a:
   class          = machines
   type           = standalone
   connect        = nimsh
   platform       = chrp
   netboot_kernel = 64
   if1            = network1 p8129a 0
   cable_type1    = N/A
   Cstate         = BOS installation has been enabled
   prev_state     = ready for a NIM operation
   Mstate         = currently running
   boot           = boot
   bosinst_data   = p8129a_bosinstdata
   lpp_source     = AIX720-04-00
   mksysb         = p8129a_mksysb
   nim_script     = nim_script
   spot           = AIX720400spot
   cpuid          = 00F98DB54C00
   control        = master
```



---

#### NIM マイグレーション・リストアの実行

NIMクライアントのネットワークブートを行い、mksysbリストア、OSアップグレードを実行します。


* HMC GUI から SMS 起動を実行します
![スクリーンショット 2022-12-06 18.18.19.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/517421/cafdf91a-b103-35eb-399b-0211e90c1ded.png)

---

* HMC のCLI にログインしvtmenu で p8129a の仮想端末を起動しSMSに入ります

初回実行時は "Setup Remote IPL (Initial Program Load)" の定義が必要ですがすでに実施済みの環境のためRemote IPL設定手順は省略します。


```
$ vtmenu

 ----------------------------------------------------------
  Partitions On Managed System:  p8-S824-No1-xxxxxxx
  OS/400 Partitions not listed
 ----------------------------------------------------------
   ~ 省略 ~ 

      22)   p8129a2-748b64c9-00000095            Open Firmware

   ~ 省略 ~ 

 Enter Number of Running Partition (q to quit): 22

    Opening Virtual Terminal On Partition p8129a2-748b64c9-00000095 . . .


 Open in progress
```


```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Main Menu
 1.   Select Language
 2.   Setup Remote IPL (Initial Program Load)
 3.   I/O Device Information
 4.   Select Console
 5.   Select Boot Options

 -------------------------------------------------------------------------------
 Navigation Keys:

                                             X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key: 5
 Open Completed.
```


```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Multiboot
 1.   Select Install/Boot Device
 2.   Configure Boot Device Order
 3.   Multiboot Startup <OFF>
 4.   SAN Zoning Support

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Select Device Type
 1.   Tape
 2.   CD/DVD
 3.   Hard Drive
 4.   Network
 5.   List all Devices

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:4
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Select Network Service.
 1.   BOOTP
 2.   ISCSI

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Select Device
 Device  Current  Device
 Number  Position  Name
 1.        -      Interpartition Logical LAN
        ( loc=U8286.42A.xxxxxx-V29-C32-T1 )

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Select Task

Interpartition Logical LAN
    ( loc=U8286.42A.xxxxxxx-V29-C32-T1 )

 1.   Information
 2.   Normal Mode Boot
 3.   Service Mode Boot

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Device Information
IBM,FW-ADAPTER-NAME: Interpartition Logical LAN
    /vdevice/l-lan@30000020
                   :  (Bootable)
DEVICE             : Interpartition Logical LAN
    ( loc=U8286.42A.xxxxxxx-V29-C32-T1 )
NAME               : l-lan
DEVICE-TYPE        : network
SUPPORTED-NETWORK-TYPES:
                   : ethernet,auto,none,auto   <==  chosen
MAC-ADDRESS        : fa1db45c7120
SPEED,DUPLEX       : auto,auto
CLIENT IP ADDRESS  : 172.16.81.xx　　　　　　　　　 #<= NIM クライアント
SERVER IP ADDRESS  : 172.16.3.xxx                #<= NIM サーバー
GATEWAY IP ADDRESS : 000.000.000.000
SUBNET MASK        : 255.255.0.0
 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu      N = Next page of list
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:<esc>
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Select Task

Interpartition Logical LAN
    ( loc=U8286.42A.xxxxxxx-V29-C32-T1 )

 1.   Information
 2.   Normal Mode Boot
 3.   Service Mode Boot

 -------------------------------------------------------------------------------
 Navigation keys:
 M = return to Main Menu
 ESC key = return to previous screen         X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:2
```

```
 PowerPC Firmware
 Version FW860.70 (SV860_205)
 SMS (c) Copyright IBM Corp. 2000,2016 All rights reserved.
-------------------------------------------------------------------------------
 Are you sure you want to exit System Management Services?
 1.   Yes
 2.   No

 -------------------------------------------------------------------------------
 Navigation Keys:

                                             X = eXit System Management Services
 -------------------------------------------------------------------------------
 Type menu item number and press Enter or select Navigation key:1
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM                         IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM    STARTING SOFTWARE    IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM       PLEASE WAIT...    IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM                         IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM


TFTP BOOT ---------------------------------------------------
Server IP.....................172.16.3.xxx
Client IP.....................172.16.81.xx
Subnet Mask...................255.255.0.0
( 1  ) Filename................./tftpboot/p8129a
TFTP Retries..................5
Block Size....................512
FINAL PACKET COUNT = 61441
FINAL FILE SIZE = 31457280  BYTES
```

tftp ブート実行中....



```
-------------------------------------------------------------------------------
                                Welcome to AIX.
                   boot image timestamp: 01:50:26 12/06/2022
                 The current time and date: 07:59:58 12/06/2022
        processor count: 1;  memory size: 2048MB;  kernel size: 45422219
boot device: /vdevice/l-lan@30000020:speed=auto,duplex=auto,172.16.3.xxx,,172.16.81.xx,000.000.000.000,5,5,255.255.0.0,512
-------------------------------------------------------------------------------
```

boot してきました。


```
*************************************************************
                Mksysb\Migration Enabled
*************************************************************

Running: Init_Target_Disks...
Running: Other_Initialization...
Running: Fill_Target_Stanzas...
Running: Check_Other_Stanzas...
Could not load program ls:
Cannot run a 64-bit program until the 64-bit
        environment has been configured. See the system administrator.
```

OSアップグレード・ファイルセットのインストールが始まりました。

```
                      Installing Base Operating System

        Please wait...


        Approximate     Elapsed time
     % tasks complete   (in minutes)


          21               13      Merging.


Filesystem size changed to 6029312

installp: APPLYING software for:
        xlC.aix61.rte 16.1.0.2

. . . . . << Copyright notice for xlC.aix61 >> . . . . . . .
 Licensed Materials - Property of IBM

 5725C7201
   Copyright IBM Corp. 1991, 2019.
   Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989.
   Copyright Unix System Labs, Inc., a subsidiary of Novell, Inc. 1993.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
. . . . . << End of copyright notice for xlC.aix61 >>. . . .

Filesets processed:  1 of 740
System Installation Time: 14 minutes       Tasks Complete: 23%

installp: APPLYING software for:
        wio.vscsi 7.2.0.0


~ 長いので省略 ~ 


Licensed Materials - Property of IBM

 5765CD200
   Copyright International Business Machines Corp. 1985, 2019.
   Copyright AT&T 1984, 1985, 1986, 1987, 1988, 1989.
   Copyright Regents of the University of California 1980, 1982, 1983, 1985, 1986, 1987, 1988, 1989.
   Copyright BULL 1993, 2019.
   Copyright Digi International Inc. 1988-1993.
   Copyright Interactive Systems Corporation 1985, 1991.
   Copyright ISQUARE, Inc. 1990.
   Copyright Innovative Security Systems, Inc. 2001-2006.
   Copyright Mentat Inc. 1990, 1991.
   Copyright Open Software Foundation, Inc. 1989, 1994.
   Copyright Sun Microsystems, Inc. 1984, 1985, 1986, 1987, 1988, 1991.

 All rights reserved.
 US Government Users Restricted Rights - Use, duplication or disclosure
 restricted by GSA ADP Schedule Contract with IBM Corp.
```
インストールが完了し、リブート中...

```
Rebooting . . .

IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM                         IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM    STARTING SOFTWARE    IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM       PLEASE WAIT...    IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM                         IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
\
Elapsed time since release of system processors: 380184 mins 30 secs

-------------------------------------------------------------------------------
                                Welcome to AIX.
                   boot image timestamp: 08:39:08 12/06/2022
                 The current time and date: 08:39:50 12/06/2022
        processor count: 1;  memory size: 2048MB;  kernel size: 45422219
       boot device: /vdevice/vfc-client@30000003/disk@500507680220a4ca:2
-------------------------------------------------------------------------------

Saving Base Customize Data to boot disk
Starting the sync daemon
Starting the error daemon
System initialization completed.
TE=OFF
CHKEXEC=OFF
CHKSHLIB=OFF
CHKSCRIPT=OFF
CHKKERNEXT=OFF
STOP_UNTRUSTD=OFF
STOP_ON_CHKFAIL=OFF
LOCK_KERN_POLICIES=OFF
TSD_FILES_LOCK=OFF
TSD_LOCK=OFF
TEP=OFF
TLP=OFF
Successfully updated the Kernel Authorization Table.
Successfully updated the Kernel Role Table.
Successfully updated the Kernel Command Table.
Successfully updated the Kernel Device Table.
Successfully updated the Kernel Object Domain Table.
Successfully updated the Kernel  Domains Table.
Successfully updated the Kernel RBAC log level.
Successfully updated the Kernel RBAC log level.
OPERATIONAL MODE Security Flags
ROOT                      :    ENABLED
TRACEAUTH                 :   DISABLED
System runtime mode is now OPERATIONAL MODE.
Setting tunable parameters...complete
Starting Multi-user Initialization
 Performing auto-varyon of Volume Groups
 Activating all paging spaces
swapon: Paging device /dev/hd6 is already active.

The current volume is: /dev/hd1
Primary superblock is valid.

The current volume is: /dev/hd10opt
Primary superblock is valid.
 Performing all automatic mounts
Multi-user initialization completed
Checking for srcmstr active...complete
Starting tcpip daemons:
0513-059 The syslogd Subsystem has been started. Subsystem PID is 3342702.
0513-059 The sendmail Subsystem has been started. Subsystem PID is 3801468.
0513-059 The portmap Subsystem has been started. Subsystem PID is 4915610.
0513-059 The snmpd Subsystem has been started. Subsystem PID is 3473784.
0513-059 The hostmibd Subsystem has been started. Subsystem PID is 3408246.
0513-059 The inetd Subsystem has been started. Subsystem PID is 4784424.
0513-059 The aixmibd Subsystem has been started. Subsystem PID is 3539332.
0513-059 The snmpmibd Subsystem has been started. Subsystem PID is 4063626.
Finished starting tcpip daemons.
Starting NFS services:
0513-059 The biod Subsystem has been started. Subsystem PID is 5243300.
0513-059 The rpc.lockd Subsystem has been started. Subsystem PID is 5308850.
Completed NFS services.
Device ipsec_v4 not found.
Filter activation for IPv4 not performed.
Device ipsec_v6 not found.
Filter activation for IPv6 not performed.
System reconfiguration in progress.  Please wait.
/ filesystem not converted.
        Small inode extents are already enabled.
0513-077 Subsystem has been changed.
testushi1206: Can't assign requested address
0042-001 nimclient: processing error encountered on "master":
   0042-006 nimclient: (To_Master) rcmd Can't assign requested address

en0
p8129a
inet0 changed
en0 changed
inet0 changed

Rebuild of Scriptinfo file is complete

0513-059 The nimsh Subsystem has been started. Subsystem PID is 5374402.

AIX Version 7
Copyright IBM Corporation, 1982, 2019.
Console login: root
```

OSが起動しました。

root でログインします。

```
*******************************************************************************
*                                                                             *
*                                                                             *
*  Welcome to AIX Version 7.2!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
Last login: Mon Dec  5 21:05:27 2022 on /dev/vty0

# oslevel -s
7200-04-00-0000
```

無事OSレベルがアップグレードされています。


```
# errpt | head
IDENTIFIER TIMESTAMP  T C RESOURCE_NAME  DESCRIPTION
DE84C4DB   1206024222 I O ConfigRM       IBM.ConfigRM daemon has started.
A6DF45AA   1206024222 I O RMCdaemon      The daemon is started.
3CACA614   1206024022 I O sys0           Partition boot reason.
69350832   1206023922 T S SYSPROC        SYSTEM SHUTDOWN BY USER
9DBCFDEE   1206024022 T O errdemon       ERROR LOGGING TURNED ON
BC3BE5A3   1205203922 P S SRC            SOFTWARE PROGRAM ERROR
A6DF45AA   1205203822 I O RMCdaemon      The daemon is started.
2BFA76F6   1205204722 N U SYSPROC
9DBCFDEE   1205204722 T O errdemon       ERROR LOGGING TURNED ON
```


気になるエラーも特にはありません。
NIM マイグレーション・リストアによるOSマイグレーションが成功しました。



---

##### 参考情報

NIM学習の参考情報について以下でも記載しています。

https://qiita.com/c_u/items/471ffcfe5046e0465a2a

以上です。