Tanti Technology

My photo
Bangalore, karnataka, India
Sandeep Kumar | Founder, Tanti Technologies At Tanti Technologies, I share practical knowledge, hands-on tutorials, and real-world solutions across Python, SQL, Docker, Kubernetes, CI/CD, AWS, Azure, Machine Learning, Generative AI, and Agentic AI. My mission is to simplify complex technologies and provide actionable insights that help developers, engineers, and businesses learn faster, build better, automate smarter, and innovate with confidence. 🚀 Learn • Build • Automate • Innovate Follow Tanti Technologies for practical technology insights and next-generation AI solutions.

Wednesday, 11 December 2013

Migrating your Virtual IO server to VIO 2.1

1.      Prepare for migration:

The key prerequisites to perform the migration are:
-        The system must be managed by HMC version 7 or later
-        The virtual IO server must be at least at version 1.3.
-        The physical volume for rootvg must be assigned to the VIO
-        Double check that you have the Migration DVD for VIOS and not the Installation DVD for VIOS. (The media for Migration and Installation are different and using the install media will overwrite your current VIOS configuration.)
Prior to any update or migration process, it is strongly recommended to backup the VIO server and check your disaster/recovery process.
Note: It may be useful to record the precise location of the rootvg disks of the VIOS you want to migrate. Before stopping your Virtual I/O Server for migration, you can run the following commands from padmin:
$ lsvg -pv rootvg
rootvg:
PV_NAME    PV STATE    TOTAL PPs   FREE PPs    FREE DISTRIBUTION
hdisk0     active            319         11          00..00..00..00..11
hdisk1     active            319         27          00..00..00..00..27
$ lsdev -dev hdisk0 -vpd
  hdisk0           U787B.001.DNW025F-P1-C5-T1-W500507630E0009E2-L4010400000000000  MPIO Other FC SCSI Disk Drive
$ lsdev -dev hdisk1 -vpd
  hdisk1           U787B.001.DNW025F-P1-C5-T1-W500507630E0009E2-L4010400100000000  MPIO Other FC SCSI Disk Drive
 
In our example both disks are Fiber Attached disks, that’s why we have the slot number, worldwide name of the fiber channel adapter and the LUN id of the disks. From the migration menu you should be able to have some of this information.
This step is not required for the migration to succeed, the migration menu should be able to find the good VIOS rootvg disk to migrate, but in certain configurations it may be needed to check we are about to migrate the right disk or manually select it.
1.      What happens during migration?
The purpose of migration is to change the VIOS software to the most recent and attempt to preserve your configuration files.
The migration process saves configuration files, install the new software on your system and then restore your configuration files. At the end of the migration process, you should be able to find most of your configuration files.
In a single VIO server configuration, during the migration, the client partition needs to be shutdown. Once the  migration  is complete and the VIO has been restarted, the client partition can be brought up without any further configuration. In a dual VIO server environment, you can update one VIO server at a time as to avoid any interruption of service to the clients. The client partition can be up and running through the migration process of each of the VIO servers.
1.      How to migrate?
Before you start double-check that the following statements are true: 
  •  The managed system’s HMC is attached to the system, and both the managed system and HMC are working properly. 
  •  A DVD optical device is allocated to the VIOS partition, if not, perform a DLPAR operation or modify the partition profile, to do so. 
  •  The VIOS Migration media is inserted in your optical device. 
  •  If you don’t have a recent backup, run backupios command and keep the output file in a safe location
  •  Note the location of the rootvg disks
Before shutting down the VIO server you want to migrate, we would recommend to check the following: 
  •  In a dual VIOS environment, check that the alternate VIOS is up and running, and is serving I/O to client. (SEA failover, virtual SCSI mapping, and so on…) 
  • In case of LVM mirroring on clients, check that both disks of any mirrored volume group are available in the system and the mirroring is properly synchronized.
If any of the following steps in the process of migration fails, please contact your Support Service Representative for further help and debugging.
1.      Activate the VIOS partition in SMS mode :
a.       Insert the Virtual I/O Server migration DVD in the optical device allocated to VIOS
b.      From the HMC GUI, select your VIOS partition.
c.       Click on Tasks à Operations à Activate.
d.      Select the proper profile from the popup window that appears. (Profile with rootvg disk from the VIOS and DVD optical device allocated.)
e.       Select “Open a terminal window or console session” to have the console during the boot and migration process.
f.        Click on Advance button, and select “SMS” as boot mode.
g.       Click OK twice (one to validate the SMS boot and the other boot the partition).
At this step a Java window is opened and gives you the console. The partition will go through all standard hardware checking and continue its boot process until reaching the SMS menu.
1.      Select the boot device from SMS menu
a.       Type the “Select Boot Option” number and press enter.
b.      Type the “Select the Install/Boot device” number and press enter.
c.       Type the number of the DVD device and press enter.  You can also use the “List all devices” function, but in case you have many devices attached (such as Ethernet adapter, fiber channel adapter and/or disks…) this function might take long time to scan all those devices.
d.      Select the “Normal mode boot”, press enter and validate all your choices by selecting “Yes” and press enter.
 
Top left figure 4: Root of the SMS menu. (step a.)
         Middle figure 5: Root of the boot/install menu from the SMS. (step b)
                     Low right figure 6: Boot type selection menu (step d)
The boot process on the DVD will start, and you should be able to follow the different stages of boot by observing the LED code on the operator panel of the partition from the HMC GUI, until the system prompts you for the next migration step:
1.      Migrate the VIO server
a.       Select the desired console.
b.      Select the language you want during the installation.
c.       Double check that you are facing the “Migration menu” and NOT the “Install menu”. (See the screen copy below)
Note: Be aware that if you install the VIOS instead of migrating it, you will be unable to recover your configuration and you’ll have to restore or reconfigure your entire environment.
d.      Select “Continue with Install” to start the install process.
    Figure 7:  Installation Menu
From the first menu of the installation there’s no indication of the installation type. We can not confirm if we are migrating our VIO server or just installing it. But at this step our current VIO installation is still safe.
     Figure 8: Installation Menu after selecting option 2 in Figure 7
On this screen, we can see that we have booted our system from the VIOS Migration Media. If you selected the option 2 on the previous screen, and you don’t have a menu similar to the one above, you should stop the migration process at once. Check you have inserted the appropriate media into the Optical Device, and also you have allocated the correct slot to your VIO server partition.
Figures 9 and 10: Installation Menu to choose the disks and confirm Migration respectively
This is the last screen before the migration really starts, so this is our last chance to avoid the currently installed VIOS to be overwritten.
From this menu you can check what will be changed and/or removed from your configuration.
All your SCSI mappings and network configuration should be available after migration, but if you installed third party application or made special configuration to your VIO you should probably check here if those modifications will be preserved or not.
Figure 11.After validating the previous screen, you will see the migration starting and initializing saving your configuration.
1.      Checking Migration and some debug help:
At the end of the Migration you will be prompted to accept the license, and eventually install other software. Then you can exit and connect to the system using “padmin” user.
Check that your previous configuration has been properly restored by the migration process.
$ ioslevel
2.1.0.0
$ lsmap -all
SVSA            Physloc                                      Client Partition ID
--------------- -------------------------------------------- ------------------
vhost0          U9113.550.10BE8DD-V1-C11                     0x00000003
VTD                   lpar1vg0
Status                Available
LUN                   0x8100000000000000
Backing device        lpar1_rootvg
Physloc
…
$ lstcpip
Name  Mtu   Network     Address     ZoneID      Ipkts Ierrs Opkts Oerrs Coll
en2   1500  link#2              a6.24.d0.0.10.3 27642       0     8402  0     0
en2   1500  9.3.131     zlab081     27642       0     8402  0     0
lo0   16896 link#1                        1197        0     1201  0     0
lo0   16896 127         localhost   1197        0     1201  0     0
lo0   16896 ::1                     0           1197 0     1201  0     0
 
If this is not the case, and you’re back to another configuration or a fresh install configuration, check your VIOS is booted on the correct hdisk, check the media used was the one for migration.
 1.      Migrate your VIO Server using NIM:
First of all we need to create the appropriate resources for migration.
There are two methods to create the appropriate resources and start NIM migration:  5.1. Method one:
The installios command is the preferred method for creating NIM resources for VIOS migration.
If you wish to manually create an lpp_source without using the installios command, you must use the procedure provided below. The following steps will create a valid VIOS Migration lpp_source + spot and initiate a VIOS migration:
a. Use the gencopy command to copy ALL of the install images from the VIOS Migration DVD to the desired filesystem location on the NIM master. This operation will require approximately 3GB of free space on the target filesystem and will take several minutes to complete:
# gencopy -d /dev/cd0 -t /export/lpp_source/vios_migration_lpp all
b. When the gencopy command completes successfully use NIM to define an lpp_source, specifying the above directory as the 'location' attribute. The following command uses the NIM master to serve the lpp_source:
# nim -o define -t lpp_source -a location=/export/lpp_source/vios_migration_lpp -a server=master vios_migration_lpp
c. At this point you will have defined a valid NIM VIOS Migration lpp_source named 'vios_migration_lpp'. When creating a NIM SPOT resource to be used for the VIOS migration operation you can choose to specify either this lpp_source or the VIOS Migration DVD as a source:
# nim -o define -t spot -a location=/export/spot -a server=master -a source=vios_migration_lpp vios_migration_spot
or
# nim -o define -t spot -a location=/export/spot -a server=master -a source=/dev/cd0 vios_migration_spot
d. The VIOS migration can now be initiated by issuing a 'bos_inst' operation from NIM, specifying the lpp_source and spot created in steps 2 and 3:
# nim -o bos_inst -a spot=vios_migration_spot -a lpp_source=vios_migration_lpp ...
The bos_inst operation will default to migration, provided that the existing rootvg on the target system contains VIOS from a prior release. Keep in mind that the VIOS migration will fail if VIOS is already at the version that you are attemping to migrate to.
5.2. Method two:
To create the lpp_source, insert the VIO 2.1 Migration media in the optical device allocated to your NIM master
Using smitty :
# smitty nim_mkres
  •  Select resource type : lpp_source
  •  Enter the name you want for your resource.
  •  Enter the resource name for Server of Resource (usually “master”)
  •  Enter the fully qualified path to your lpp_source in “Location of Resource”
  •  Select cdX as “Source of Install Images”
  •  Enter “all” for “Names of Option Packages”
Note: . Using the VIOS Migration DVD as a source will not produce a valid lpp_source that can be used for migrating a VIOS system, if you do not enter “all” for“Names of Option Packages”
When your lpp_source is created you can check the simages attribute is “yes” with “lsnim –l yourlpp” command.
a.       Create the spot.        Using smitty :
# smitty nim_mkres
  • Select resource type: spot
  • Enter the name you want for your spot resource
  • Enter the resource for Server of Resource (usually “master”)
  • Enter the fully qualified path to your spot in “Location of Resource”
  • Select the lpp_source you previously created as “Source of Install Images”
b.      Create the resource for your VIO.
  •       Check the name resolution and routing are good to access your VIOS from the NIM master. (Use ‘host’, ‘traceroute’… command)
  •          Using smitty :
# smitty nim_mkmac
  • Enter the hostname of the VIOS, if network is properly configured, this should fill up the other required information (related to network configuration, such as NIM network and Host Name) with appropriate value. 
  • Machine Type is Standalone 
  • Hardware Platform Type is chrp 
  • Kernel to use for Network Boot is “64” (due to AIX 6.1 only support 64bits kernel 
  • Cable Type: usually tp
c.       Prepare the NIM master for installation.
            Now, all the required NIM resources are ready to use, we can process to  installation itself.
Using smitty :
# smitty nim_bosinst
  • Select the client we previously defined. (Our VIOS)
  • Select Installation Type: “rte - Install from installation images”
  • Select the lpp_source we previously created
  • Select the spot we previously created.
  • Set “ACCEPT new license agreements?” to yes
  • Set “Initiate reboot and installation now?” to no
d.      Migrate the VIOS
                 Follow the procedure described under section 3.1 to restart your VIOS partition in SMS mode.
From the SMS menu on the console, follow this procedure:
Note that depending on your hardware platform and the firmware release of your system the menu can be slightly different.
-         Select “Setup Remote IPL (Initial Program Load)”
-         Select the appropriate adapter to boot on. (For VIO it should be a physical adapter unless your nim master is in the same CEC and on dedicated virtual network)
-         Select “IP parameters” and check the configuration is good to access the nim master.
-         Select “Adapter Configuration” and check speed/duplex and protocol used. (If you encounter some problem to ping or boot on network, set speed/duplex to auto/auto, sometimes fixed negotiation does not work.)
-         Check that “Advanced Setup”  is set to “BOOTP”
-         Perform a “Ping Test”, if it fails double check above network setting, network hardware, switch and firewall configuration…
-         If all the above works fine, go back to the root sms menu, and select “Select Boot Options”.
-         Choose “Select Install/Boot Device”
-         Select “Network”
-         Choose the adapter we configured above.
-         Select “Normal Mode Boot”
-         And validate all the above by selecting “Yes”.
The boot process will start and you should see bootp request and tftp packet count appear soon, and lead you to the Migration menu seen in Figure 14.
The firsts install menu is the same than migration process from DVD, but if you select the option “Change/Show installation Setting and Install”.
This migration menu is very different than the one we saw during the migration from DVD. This one is the same as during an AIX standard installation. You should check that the “Method of Installation” is Migration and the “Disk where you want to install” is set to the disk on which the  VIOS was installed. (You can use the location code we collect in section 
1)
You can check from your NIM master that the lpp_source allocated to your VIOS is in fact the lpp_source for migration purpose :
$ nim –o showres   | grep “ios\.”
  ios.cli.rte                 6.1.2.0                    I  N usr,root
  ios.cli.smit                6.1.2.0                    I  N usr,root
  ios.cli.man.ca_ES           6.1.2.0                    I  N usr
  ios.cli.man.en_US           6.1.2.0                    I  N usr
  ios.cli.man.es_ES           6.1.2.0                    I  N usr
  ios.cli.man.fr_FR           6.1.2.0                    I  N usr
  ios.cli.man.it_IT           6.1.2.0                    I  N usr
  ios.cli.man.ja_JP           6.1.2.0                    I  N usr
  ios.cli.man.pt_BR           6.1.1.0                    I  N usr
  ios.cli.man.pt_PT           6.1.1.0                    I  N usr
  ios.ldw.gui                 1.1.0.0                    I  N usr
  ios.ldw.rte                 6.1.2.0                    I  N usr
  ios.lparmgr.cim.rte         6.1.2.0                    I  N usr
  ios.lparmgr.cli.rte         6.1.2.0                    I  N usr,root
  ios.lparmgr.gui.base.rte    6.1.2.0                    I  N usr
  ios.lparmgr.gui.httpd.rte   6.1.2.0                    I  N usr
  ios.lparmgr.gui.nlv         6.1.2.0                    I  N usr
  ios.migration.rte           6.1.2.0                    I  N usr,root
  ios.paging.rte              1.2.0.0                    I  N usr,root
  ios.sea                     6.1.2.0                    I  b usr,root
  itm.vios.agent              6.1.1.1                    I  N usr,root
$ lsnim –l
à you should see a line “lpp_source = lpp_migration_vio”.
If all of that is correct you can pursue the migration process and validate your migration. This will give you the following screen:
1.      Migrating an IVM:
This procedure was tested on a JS22 hardware platform, but it should be very close to any other system P platform, only hardware related command/operation should be different.
As to avoid any sudden stop/crash, you should properly shutdown all the client lpars before starting the migration process.
Also check that the “Media Tray” is allocated to the appropriate blade. You can check this from the management module GUI. On the “System status” panel, an X should indicate the blade that owns the “Media Tray”. If your blade does not own DVD device, you can allocate it from the “Remote control” panel on management module GUI, set the Media Tray owner to the blade you want to migrate.
If you are on a standalone system P (e.g.: no hmc connected) the DVD device should be allocated to VIO partition when you reboot on, and so you should be able to boot on DVD from SMS.
Open a terminal console on your blade to follow the whole boot process:
From an AIX telnet session (or DOS command line), telnet to the management module and enter the current username and password. When connected you can open a console by running:
# console –T blade[X]
Where X is the bay number in which your blade stands.
To exit the console opened type [esc] and [(] (escape key and open bracket key)
Perform a shutdown of the VIO server, and power it on from the management module “Power/Restart” Panel. As soon as the blade is powered on, check on the console already opened until you see the following screen:
Figure 12. When the “keyboard” word appears press button 1 on your keyboard to access the SMS menu.
1.      Select the boot device from SMS menu
a.       Type the “Select Boot Option” number and press enter.
b.      Type the “Select the Install/Boot device” number and press enter.
c.       Type the number of the DVD device and press enter.  You can also use the “List all devices” function, but in case you have many devices attached (such as Ethernet adapter, fiber channel adapter and/or disks…) this function might take long time to scan all those devices.
d.      Select the “Normal mode boot”, press enter and validate all your choices by selecting “Yes” and press enter.
Figure 13. Note: On JS22 system, the Optical device is USB. Please be aware that boot process and migration from DVD on a JS22 can take a long time to complete.
Note: On JS22 the number to type may not be the “1” as usually seen on vterm from standard managed system.
The installation process is exactly the same as described in 3.3 to migrate a VIO server.
Here are some screenshots of the different files which can be provided by the “Migration confirmation” menu:
Figure 15. Files saved during the migration process, these files are saved in /tmp/bos directory during the migration  
The list of directories that will have their content removed during the migration. This directory contains only obsolete data (e.g. /tmp) or information used during update and so not required because we are changing the system release during the migration.
1.      Collecting debugging information on failed migration:
If the install process does not start correctly, the problem determination might require the following elements:
If your 1.X VIO server is still up and running, please collect the “snap” output run with padmin user authority.
If you are unable to reboot the VIOS partition in SMS mode, please note the latest reference code that appeared on the operator panel, your system firmware version, and HMC version and contact HW support representative.
If no boot image is found on the media when you try to boot from the DVD, please check you correctly inserted the VIO Server Migration DVD into the drive.
If the boot and/or installation starts but fails at any point we need to collect a debug boot output and the content of the install.
To collect the debug boot output, follow the following procedure :
-         connect as a standard user on an AIX system
-         from this AIX session start logging the output from your session with the following command :
>         script debug_boot.out
-   from this session connect to the VIO’s managed system’s HMC using ssh:
>         ssh hscroot@hmc
-   from the command line interface on HMC, open a terminal window to your VIOS server
>         vtmenu
or
>         mkvterm –m --id
if a console is already open you can close it with the following command before opening a new one:
>         rmvterm –m --id
-   from the HMC GUI, reboot your VIOS partition to "Open Firmware - OK Prompt"
-   from the opened console, when “(OK)> “ appears type the following :
>         boot –s verbose –s debug
-   pursue the installation as usual until it fails
-   close your terminal session using key sequence “~.” and [enter] (sometimes it is required to type this sequence twice.), this should cause your ssh session to HMC to be closed also.
-   End your script operation by typing the “exit” command.
Provide the snap and debug_boot.out file to your Support for further investigation.

Migrating OS in AIX 5.2, 5.3 and 6.1

This document covers migration preparation information relating to AIX 5.2, 5.3, and 6.1. 

  • Information regarding version 5 and version 6 installation
  • Recommendations directly prior to migration
  • Making sure your system is ready to migrate
  • Walk-thru of the Base System Install menus for version 5
  • Walk-thru of the Base System Install menus for version 6
  • What migration will do to your system
  • Post migration checks
  • FAQ

Information regarding version 5 and version 6 installation

  • Version 5 incorporates electronic license acceptance. At the first reboot, after an install, you will be prompted to view/accept your licenses before you cancontinue to use your system.
  • In AIX Version 6.1, a separate Software Maintenance Agreement (SWMA) acceptance window displays during installation immediately after the license acceptance window. The response to the SWMA acceptance (accept or decline) is stored on the system, and either response allows the installation to proceed, unlike license acceptance which requires an accept to proceed.
  • NIM masters/servers which are to serve version 5 or version 6 resources should be upgraded first. A NIM master/server must be at the same level or later than the software in any resources being served
  • Any migration will require more space. If you have no free partitions in the root volume group, or all file systems are near full, it would be a good idea to add another disk to the rootvg. Alternatively you can install a mksysb of the system to a larger disk before running the migration. Generally, if you have 600 MB or more available, that should be sufficient for the majority of migrations within 5.x.
  • AIX Version 6.1 requires a minimum total of 2.2 GB of physical disk space for the same set of installed filesets due to increased library sizes and additional function.
  • Be sure any additional applications you are currently running are supported in the version of AIX you are migrating to, and if they need to be upgraded before, or after the migration. Obtain the latest versions required for running at your new level.
For more complete information on your release, it is highly recommended you review the Release Notes.

5.2 Release Notes :-http://publib16.boulder.ibm.com/pseries/en_US/infocenter/base/52relnotes.htm 
5.3 Release Notes :- http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.resources/53relnotes.htm 
6.1 Release Notes :- http://publib.boulder.ibm.com/infocenter/systems/scope/aix/index.jsp?topic=/com.ibm.aix.resources/RELNOTES/610_base_relnotes.htm 

 NOTE: -The latest version of the media should be used to do the migration. The latest version will always be shipped when you order the media. If you have an older version of the media and would like to obtain the latest version, you can order it at the following web site: 
https://www-05.ibm.com/servers/eserver/ess/OpenServlet.wss  

 If assistance is required registering for the site, call Software Delivery (1-800-879-2755 opt2 then opt2 again for the U.S.). They will requirethe machine model and serial number of a machine licensed to run theAIX version you are ordering. Outside the U.S., contact your local support center.

Recommendations directly prior to migration


There are things that you can do to speed your migration along and avoid potential problems. While some may and some may not be official requirements to migrate your system, they are recommended and can prevent situations that may cause the system to hang and a restore to be necessary.


Break mirroring on the root volume group before the migration begins. To determine if the system is mirrored, run:

# lsvg -l rootvg
LV NAMETYPELPsPPsPVsLV STATEMOUNT POINT
hd5boot242closed/syncdn/a
hd6paging961922open/syncdn/a
hd8jfslog122open/syncdn/a
hd4jfs362open/syncd/
hd2jfs1563122open/syncd/usr
hd9varjfs362open/syncd/var
hd3jfs38762open/syncd/tmp
hd1jfs122open/syncd/home
hd10optjfs11222open/syncd/opt

*NOTE: If the pp's are twice the number of lp's, then that lv is mirrored.  

Update the system FW to the latest level available on the download site.

Firmware can be found here,  i have updated a separate procedure in blog for firmware update/upgrade
http://www14.software.ibm.com/webapp/set2/firmware/gjsn   


You can check the firmware level on CHRP architecture systems at AIX 5.1 and above with the ‘lsmcode’ command.
If you have older microcode, the system can fail to boot from the media, or could hang on reboot after the migration. If your FW level does not support the level of AIX, you could find that attempting to boot from the CD could corrupt your nvram, which could prevent the system from booting until the nvram battery has been drained. It is highly recommended to be at the latest FW before any migration.


To reduce the time needed to boot the system into maintenance mode you may wish to disconnect any external storage, if possible. The non-root volume groups can be imported and varied on after the migration 


Backup the system

Create a mksysb or sysback backup of the system so that you can restore to the previous AIX level if there were to be a problem with the migration. If you have an available drive, you may also want to consider doing an alt_disk_install clone of rootvg as an additional precaution. Refer to the AIX documentation on mksysb and alt_disk_install for your version if you need assistance.

If upgrading from AIX 5.1 or 5.2 use the
http://publib16.boulder.ibm.com/pseries/en_US/infocenter/base/ 

If upgrading from AIX 5.3 use the
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp 

Making sure your system is ready to migrate 


Make sure your system does not have existing installation issues before migrating. There is a pre_migration script that can be run from the Install CD to check out the system. All output from the pre_migration script is saved in the /home/pre_migration. directory. To run the pre_migration script, mount the Install CD:

# mount -v cdrfs -o ro /dev/cd0 /mnt 


Either copy the script to your system or run it from the CD. The location of the script is /mnt/usr/lpp/bos/pre_migration. The pre_migration script can be run multiple times. If you have questions on the output of the pre_migration script, check with your IBM Support Center. Here are some of the checks the script runs


  1. System platform check.
    Only CHRP systems are supported in AIX 5.2 and above. Run the following command on lower level systems to check the platform type.
    # lscfg | grep Architecture
  2. Required hardware if migrating to AIX 6.1
    Only 64-bit Common Hardware Reference Platform (CHRP) machines running selected PowerPC 970, POWER4, POWER5, and POWER6 processors that implement the POWER architecture Platform Requirements (PAPR) are supported.
    To see if you have a supported machine, log into the machine as the root user, and run the following command:
    # prtconf | grep 'Processor Type'
     
  3. Verify the major number for /dev/rootvg and /dev/hd5 is 10.
     
    # ls -al /dev/rootvg
    The output should be similar to:
    crw-rw----   1 root     system       10,  0 Jan 29 09:44 /dev/rootvg
     
    # ls -al /dev/hd5
    The output should be similar to:
    brw-rw----   1 root     system       10,  1 Feb 22 16:00 /dev/hd5
     
  4. *If the major number is not 10 on your system, contact your support personnel for assistance.
  5. Check boot logical volume size.
    The hd5 logical volume holds your boot image. There are a few checks to make against the boot lv before starting your update_all process. First, find out which disk contains your hd5 logical volume.
     
    # lslv -m hd5
    hd5:N/A
    LP   PP1  PV1
    0001 0001 hdisk0
     
  6. The listing under the “PV1” column indicates which disk hd5 is located. Any other entries under “PV2”...etc, simply represent mirrored copies.
    Next, verify your boot image can be successfully recreated using the hdisk# from above and by using /dev/ipldevice.
    # bosboot -ad /dev/hdisk0
    bosboot: Boot image is 35795 512 byte blocks.
    
    # bosboot -ad /dev/ipldevice
    bosboot: Boot image is 35795 512 byte blocks.

    If either of these two commands fail for any reason, please call the support center for resolution before proceeding.
    Finally, with the continual introduction of new devices and hardware the boot images are growing larger. You will want to make sure your hd5 logical volume has enough free and contiguous space to hold the boot image. Currently the recommended allocated space to have for hd5 is 32MB. This is of concern in environments with smaller disk sizes, and should be checked before running an update.
    # lsvg -l rootvg |grep hd5
    hd5 boot 1 1 1 closed/syncd N/A
    # lsvg rootvg |grep SIZE
    VG STATE: active PP SIZE: 32 megabyte(s)

    This information tells us that hd5 is 1 partition, and that the partition size is 32meg. This should be enough to contain the boot image. Smaller partition sizes will require more partitions to be allocated.

    Your hd5 partitions also do need to be contiguous partitions. Check this by running the following command :
    # lspv -M hdisk0 |grep hd5
    hdisk0:1 hd5:1
    hdisk0:2 hd5:2
    hdisk0:3 hd5:3

    You can see in this example that the hd5 logical volume covers the first 3 partitions on the disk and they are all contiguous. If your partitions are not contiguous, or are not covered on the first partitions of the disk please call the software support center for assistance with correcting this.
    Again, you may only have 1 partition that is large enough to handle the boot image, or you may have multiple smaller partitions. Either is fine.
  7. Check if Kerberos is being used. This is particular to 5.2 and above, because the libraries needed for Kerberos are now shared, and need to be installed separately from the Expansion pack. The BOS install process will check if Kerberos is enabled, and will set the default for installing the Kerberos software bundle to yes, and prompt you for the Expansion Pack (if doing a CD install).
  8. Memory check Verify you have the minimum required memory for your target operating system level by running the following command :
     
    # bootinfo -r
    AIX 5.2 : 128mbAIX 5.3 : 256mbAIX 6.1 : 512m
  9. A list of system configuration files that will not be merged to the latest level, but will rather, be saved in /tmp/bos, will be created by the pre_migration script, and can be viewed in the Migration Confirmation Menu.
  10. The pre_migration script will generate a list of system configuration files being merged, and will save these files in /home/pre_migration./saved_configuration_files. 
  11. ‘lppchk’ commands should be run to check system consistency:
    # lppchk -v
    # lppchk -c
    # lppchk -f
    # lppchk -l

    (If executed, the pre_migration script will run these commands for you).
  12. TCB
    If Trusted Computing Base (TCB) is enabled, the ‘tcbck -n tree’ command is run and the output saved for comparison purposes after the migration.
  13. bos.net.ipsec.keymgt

    If bos.net.ipsec.keymgt is installed, a check is made for the /etc/ipsec/inet/DB directory, and if it does not exist, it is recommended you do a force install of bos.net.ipsec.keymgt at the same level as currently installed on the system. This fileset will fail to migrate successfully if this directory is missing.
  14. No migration option
    It has been reported that on some systems, migration is not offered as an installation option as expected. To help ensure migration will be an option, the system will verify that you are currently at a previous version or release of AIX. To use the same method the BOS installation code uses enter the following:
    # lslv -m hd5
    hd5:N/A
    LP   PP1  PV1
    0001 0001 hdisk0
    # /usr/lpp/bosinst/blvset -d /dev/hdisk0 -g level

    (The output from the command above needs to match your current version and release.)

    Another cause of not receiving a migration option could be due to the number of disks your system is presented during the bootup process. The system will only scan the first 50 disks it encounters before presenting the BOS menu selection screens. If it does not encounter your rootvg disk(s) during that scan your installation option may be set to "New and Complete Overwrite". If this is the case select the option, "55 More Disk Options". Taking this option will allow you to scan through all disks on the system. Once you've gone through all of the disks your system should recognize your rootvg drive(s). The option for "Migration" should be selected for you at this time.
  15. Required users and groups

    Verify that these user and groups are unchanged. The /etc/passwd file should have the following entries. It is also important that the User IDs (UIDs), which is the third colon-separated field, are not duplicated for other users.
    root:!:0:0::/:/bin/ksh
       daemon:!:1:1::/etc:
       bin:!:2:2::/bin:
       sys:!:3:3::/usr/sys:
       adm:!:4:4::/var/adm:
       uucp:!:5:5::/usr/lib/uucp:
       guest:!:100:100::/home/guest:
       nobody:!:4294967294:4294967294::/:
       lpd:!:9:4294967294::/:

    The /etc/group file should have these entries. It is acceptable to have more users added to a group (comma separated additions to the last field as seen with group "sys" in this example). As with users, the Group IDs (GID's), which is the third colon-separated field, should not be duplicated for other groups.
    system:!:0:root
       staff:!:1:
       bin:!:2:root,bin
       sys:!:3:root,bin,sys
       adm:!:4:bin,adm
       uucp:!:5:uucp
       mail:!:6:
       security:!:7:root
       cron:!:8:root
       printq:!:9:
       audit:!:10:root
       ecs:!:28:
       nobody:!:4294967294:nobody,lpd
       usr:!:100:guest
       perf:!:20:
       shutdown:!:21:

    (Additional users and groups are fine.)
  16. Scheduled Jobs

    Jobs that are scheduled during the migration time should be removed or rescheduled until after migration time. It is recommended that all at jobs be removed by saving off the /var/spool/cron/atjobs file, and then removing /var/spool/cron/atjobs. You can verify that no jobs are scheduled by running the following command:
    # at -l

    Save the following files if you have edited them:
    /usr/adm/cron/at.allow
       /usr/adm/cron/at.deny
       /usr/adm/cron/cron.allow
       /usr/adm/cron/cron.deny
  17. Logical volume mapping
    Verify that your system-created file systems and logical volumes in the rootvg are as follows:


    # lsvg -l rootvg

    LV NAMETYPELPsPPsPVsLV STATEMOUNT POINT
    hd5boot222closed/syncdn/a
    hd6paging96962open/syncdn/a
    hd8jfslog112open/syncdn/a
    hd4jfs332open/syncd/
    hd2jfs1561562open/syncd/usr
    hd9varjfs332open/syncd/var
    hd3jfs38382open/syncd/tmp
    hd1jfs112open/syncd/home
    hd10optjfs11112open/syncd/opt



    What we are verifying here is that your "LV NAME" entries and "MOUNT POINT" entries match the entries listed above. A missing filesystem, or a filesystem not mounted over the proper logical volume could cause you to not receive a migration option.

    *NOTE: The numbers for LPs, PPs and PVs will vary and are of no importance to this check.
  18. Location code verification
    You may want to record the location codes of your rootvg disks before the migration, as sometimes in maintenance mode the hdisk numbers can be different than what they are in normal mode. The location code will always remain the same.
    # lsdev -Cc disk

Walk-thru of the Base System Install menus for version 5

Welcome to Base Operating System
Installation and Maintenance
Type the number of your choice and press Enter.  Choice is indicated by >>>.
>>> 1 Start Install Now with Default Settings
 2 Change/Show Installation Settings and Install
 3 Start Maintenance Mode for System Recovery
 88  Help ?
 99  Previous Menu
>>> Choice [1]: 2

It is recommended you always choose Option 2 to confirm the type of install that will occur.
Installation and Settings
Either type 0 and press Enter to install with current settings, or type the number of the setting you want to change and press Enter.
 1  System Settings:
      Method of Installation.............Migration              
      Disk Where You Want to Install.....hdisk0
 2  Primary Language Environment Settings (AFTER Install):
      Cultural Convention................English (United States)
      Language ..........................English (United States)
      Keyboard ..........................English (United States)
      Keyboard Type......................Default
 3  More Options  (Desktop, Security, Kernel, Software, ...)
>>> 0  Install with the current settings listed above.
                    +-----------------------------------------------------
 88  Help ?         |    WARNING: Base Operating System Installation will
 99  Previous Menu  |    destroy or impair recovery of SOME data on the
                    |    destination disk hdisk0.
>>> Choice [0]:

From here, you confirm that the method of installation is migration, and the proper disks are selected. It is possible that disks could get renumbered during the boot into Maintenance Mode. You can confirm that the correct disk is selected using the location code information obtained from item #16 listed in the checks above.

If everything looks correct, you will select 0 to continue.


You can look at option number 3, 'More options', if you want to review these choices.
Install Options
1.  Enable Trusted Computing Base.................................... No
2.  Import User Volume Groups........................................ Yes
3.  Enable System Backups to install any system...................... Yes
  (Installs all devices and kernels)
4.  Remove Java 1.1.8 Software....................................... No

>>> 0  Install with the current settings listed above.
 88  Help ?
 99  Previous Menu
>>> Choice [0]:

Set TCB to Yes, if it is enabled on the system before the migration.

You now maintain the desktop previously on the system and migrate it to the latest level. Since file systems are not recreated during a migration, the JFS2 and 64-bit kernel selections have been removed in this case, and the code determines which kernel to link based on the system type, and if JFS or JFS2 file systems are in use.

Walk-thru of the Base System Install menus for version 6

Type the number of your choice and press Enter.  Choice is indicated by >>>.
>>> 1 Start Install Now with Default Settings
 2 Change/Show Installation Settings and Install
 3 Start Maintenance Mode for System Recovery
 4 Configure Network Disks (iSCSI)
 88  Help ?
 99  Previous Menu
>>> Choice [1]:

With AIX6, you can install the Base Operating System to an iSCSI disk.
To configure an iSCSI disk for Base Operating System use, you must supply several parameters before beginning the installation. Gather the following parameters:

Adapter Name
Name of network adapter used for iSCSI. For iSCSI TOE adapters, this field is formatted ics#, where # is a number. For the iSCSI SW Initiator, this field is the Ethernet interface name and is formatted en#, where # is a number.
IP Address of Adapter
IP address that is assigned to the adapter specified by Adapter Name.
IP Address of Gateway
IP address of the gateway that is used by the adapter specified by Adapter Name.
Subnet Mask
Subnet mask that is assigned to the adapter specified by Adapter Name.
iSCSI Target Name
Name that is configured for the iSCSI Target.
iSCSI Initiator Name
Initiator name that is configured for the iSCSI Target.
Port Number
Port Number that is configured for the iSCSI Target.
IP Address of Target
IP Address that is configured for the iSCSI Target.

*Note: Consult your iSCSI vendor's documentation for more information.


It is recommended you always choose Option 2 to confirm the type of install that will occur.
Installation and Settings
Either type 0 and press Enter to install with current settings, or type the number of the setting you want to change and press Enter.
 1  System Settings:
      Method of Installation.............Migration
      Disk Where You Want to Install.....hdisk0
 2  Primary Language Environment Settings (AFTER Install):
      Cultural Convention................  English (United States)
     Language ..........................  English (United States)
     Keyboard ..........................  English (United States)
 3  Security Model.......................Default
 4  More Options  (Software install options)
>>> 0  Install with the current settings listed above.
                    +-----------------------------------------------------
 88  Help ?         |    WARNING: Base Operating System Installation will
 99  Previous Menu  |    destroy or impair recovery of SOME data on the
                    |    destination disk hdisk0.
>>> Choice [0]:

If everything looks correct, you will select 0 to continue. You can look at option number 4, 'More options', if you want to review these choices.
Install Options
1.  Enable System Backups to install any system...................... Yes
 (Installs all devices)
2.  Import User Volume Groups........................................ Yes
3.  Remove Java 1.1.8 Software....................................... No

What migration will do to your system

If the boot logical volume (hd5) is too small, and there is not sufficient space to increase it, then the migration will halt with no changes to the system. If the boot logical volume is too small, but there is space to increase it, the migration will do so and continue. Remember that you must have free contiguous partitions for the boot logical volume to be created properly.

The Migration Confirmation Menu comes next. You will be offered choices to:
  1. See which base system configuration files will be stored in /tmp/bos and not automatically merged into the system.
  2. See which filesets will be removed from the system and will not be replaced with new filesets.
  3. See which directories will have the current contents removed during the migration installation.
An option to cancel the migration is also available from this Menu. If you are doing a non-prompted migration, this Menu will not be shown.

The contents of /tmp are removed to make room for migration processes and for rebuilding the boot image at the end of the migration. Migration first saves system configuration files and then restores the files from the bos image (bos.rte.* subsystems or filesets).

After the files are restored, migration performs the operations on the system configuration files, whether it be merging the new data into the old file, using the new file and saving the old file or vice versa. The filesets listed for removal are then removed.

Afterwards, the remaining filesets on the system are migrated up to the latest level available on the media. Special file merge situations are handled after this, a new boot image is built and the system reboots.

Post migration checks

After the migration, you will want to check that your migration was successful. There will be a post_migration script in the directory /usr/lpp/bos. The post_migration script will provide data on the success of the migration. All output will be saved in /home/post_migration. directory.

Here are some of the commands in the post_migration script that you can run to determine the success of your migration.

* The lppchk -v command will check the consistency of the software. If some dependency is missing it will be reported here. If you do get any output, then run lppchk -m3 -v to get more details on the condition.

* Other flags can be used with lppchk, but the -v flag gives the most important post migration data. The other flags are:

lppchk -l
lppchk -f
lppchk -c

In all cases no output is best.

* If you migrated a TCB enabled system with TCB turned on, then run tcbck -n tree to check for TCB errors. If you ran this before the migration you can compare the output from before and after. If not, check your errors against some known conditions documented in the Release Notes for the release to which you just migrated. There are documented steps to clean up the error conditions.

* Check the output of the installs during the migration. The log of the migration is saved in /var/adm/ras/devinst.log. This log is concatenated to during the migration, so the initial output is from the previous install. Find where the installation of the version you migrated to begins, and search the summaries for failed or canceled installations. If you find one, search backwards in the log until you find the source of the error. Canceled installations usually are due to missing requisites not being on the media. If you migrated using CD media, continue searching the log for the fileset, as it may have successfully installed later in the migration process. If you migrated using NIM, there may have been filesets you needed that were missing in the lpp_source.

* Filesets that did not migrate can now be migrated using a software source containing the software and running a smitty update_all.

Read the migration sections in the Release Notes. There are special instructions for some situations that might occur after the migration, and methods to correct them.


FAQ


This FAQ will be updated with the most common questions we receive concerning migration upgrades. If you have any suggestions/questions feel free to submit them and we may add them in. This section is not intended for problem resolution questions - simply common short answer issues that hopefully will save you some time by not having to open a PMR for a quick question.
  1. How long will the migration take ?
    That all depends on the size of the rootvg. A conservative average to recommend blocking off time would be this :
    |normal reboot time| + |2-3 hours| + |normal reboot time|
    You may also want to take into account the possibility that you may have to recover from a system backup. You never know when the extreme (such as a power outage during the upgrade) can happen. It is much better to block off too much time and be finished early than to not reserve enough time for the upgrade.
  2. Will I need to reboot the system when the migration is complete ?
    No, the migration process will reboot on its own and set the boot device to the rootvg disk containing hd5. No interaction from you is required to do this.
  3. What about my non-rootvg volume groups ?
    Non-rootvg volume groups are not affected by the migration.
  4. My current rootvg filesystems are JFS filesystems but I’d like to change these to JFS2 during the migration. Is there an option for this ?
    At this time there is not a way to do this by any means (supported or unsupported).
  5. Will product X at level Y.Z work with my new operating system level ?
    Some products may only be certified up to a certain operating system level while other products may require an update. The best thing to do would be to contact product X's support center. If it is an IBM product feel free to contact our support center and open a PMR requesting to speak to the product X team. Any 3rd party products should be cleared by their support before upgrading.
  6. I have 8 volumes in my CD set. What are they for, and will I need them all ?
    You will likely not need all 8 volumes of media. The install process will prompt you for the volumes it requires as the installation proceeds. Below is a brief description of each volume :
    Volume 1

    Contains the minimal Base Operating System (BOS) software installed on every system, as well as all devices and both kernels, and the English message catalogs. To install a system with only "Volume 1" from the BOS menu, set Desktop to NONE, change the default for Graphics bundle to No, and change the default for System Management Client bundle to No.

    Volume 2

    Contains software to install the Graphics bundle, and to set the Desktop to CDE. System management software, X11 software and Java software are on this CD and on Volume 3.

    Volume 3

    Contains system management software, printer software, as well as additional CSM, RSCT, Fortran, and Java software.

    Volume 4

    Contains pieces of Open_GL, PEX_PHIGS, LDAP, and DB2® software that comes with AIX.

    Volume 5

    Contains software for installing AIX in other languages. Messages, help text, and locales for German, French, Italian and Japanese are included.
    Volume 6

    Contains software for installing AIX in other languages. Messages, help text, and locales for Catalan, Czech, Spanish, Hungarian, Polish, Brazilian Portuguese, Russian, and Slovakian are included.
    Volume 7

    Contains software for installing AIX in other languages. Messages, help text, and locales for Korean, Simplified Chinese, and Traditional Chinese are included.
    Volume 8

    Contains software to support bidirectional and complex text languages, including Arabic, Hebrew, Thai, Vietnamese, Hindi, Tamil, Telugu, Gujarati, Marathi, Kannada, Malayalam, Welch, Maltese, Azerbaijani-Latin, Urdu (India), and Urdu (Pakistan). Chinese language support for Hong Kong and Singapore is also included