Académique Documents
Professionnel Documents
Culture Documents
pSeries system to
A IX 5 L
Peter H Nutt
July 2002
Abstract
AIX 5L is the most recently released operating system for the IBM eServer pSeries and
RS/6000 hardware platforms and contains many enhancements to enable these platforms to
continue to provide industry leading performance and capabilities. This document discusses
some of the new features, the major benefits of upgrading and the planning and migration
process when moving to AIX 5L. Most importantly, this document also provides practical
advice and guidance to help ensure a smooth and risk free transition.
1 Benefits of AIX 5L ________________________________________________3
1.1 Why move? ___________________________________________________3
1.1.1 Tried and tested _____________________________________________________ 3
1.1.2 On-going development and support ______________________________________ 3
1.1.3 New hardware and Power4 based systems _________________________________ 4
1.1.4 Performance________________________________________________________ 4
1.2 AIX 5L and total cost of ownership _________________________________4
1.2.1 Workload manager___________________________________________________ 4
1.2.2 Resource monitoring and control (RMC)___________________________________ 5
1.2.3 Logical partitioning (hardware dependent) _________________________________ 5
2 Preparing for the migration _________________________________________5
2.1 Hardware requirements of AIX 5.1 _________________________________6
2.1.1 Microcode updates ___________________________________________________ 6
2.1.2 32-bit and 64-bit kernel hardware support__________________________________ 6
2.2 Important: Read the release notes __________________________________7
2.3 AIX versions supported for a migration install_________________________7
2.4 Linux applications ______________________________________________7
2.4.1 New and complete overwrite install ______________________________________ 7
2.5 Backups ______________________________________________________7
2.5.1 mksysb ___________________________________________________________ 7
2.5.2 backup ____________________________________________________________ 8
2.5.3 Alternate disk install__________________________________________________ 8
2.6 NIM considerations _____________________________________________8
2.7 Applications and binary compatibility _______________________________8
2.7.1 Non-certified AIX 5L applications _______________________________________ 9
2.8 Verify and prepare your existing installation __________________________9
2.9 Boot logical volume size check _____________________________________9
3 Performing the migration __________________________________________11
3.1 First steps ____________________________________________________12
4 After the migration _______________________________________________17
4.1 Verifying the migration _________________________________________17
4.2 AIX maintenance levels and fixes __________________________________18
5 Migrating a control workstation (CWS)_______________________________19
6 ISV specific support options ________________________________________19
7 References ______________________________________________________19
8 Appendix –common applications supported on AIX 5L __________________20
1 Benefits of AIX 5L
Every AIX operating system (OS) release brings enhanced functionality and performance
to the market and effectively satisfies the constantly increasing business requirement for
improved performance, reliability, security and all whilst reducing the total cost of
ownership. An overview of the benefits of AIX 5L is shown below.
AIX 5L contains many more features and benefits that can not be listed in this short
document. For further information, please refer to the IBM AIX 5L web site
www.ibm.com/servers/aix/ or AIX 5L differences guide Redbook www.redbooks.ibm.com
Note: The term AIX 5L refers to all of the AIX version 5 releases and at the time of
writing, AIX 5.1 is the current operating system. Although this document directly relates
to AIX 5.1, it is anticipated that the procedures and recommendations discussed will be
equally applicable to future releases.
1.1.4 Performance
AIX 5L delivers numerous performance enhancements over earlier AIX releases and
these updates are distributed throughout the OS functions, scalability, file systems,
networking and more have been improved. More information on the extended
features of AIX 5L can be found in the AIX 5L differences guide redbook.
• Disk I/O bandwidth control –in addition to 4.3.3 CPU and memory
• Fully dynamic configuration –no need to stop and start wlm when setting up new
classes
• Manual classification of processes –have multiple instances of the same
application in different classes
• New subclasses give 10 times as many classes as 4.3.3 –more granularity and
control
• System administrators can delegate subclass management to non root users
• Programming Application Interface (API) into wlm to allow external applications to
monitor and control the systems behaviour
• Do you have an AIX 5L installation package (release notes, media, and so on)?
• Are there any hardware issues with the migration, any third party hardware, device
drivers and so on?
• Do you have the latest recommended maintenance package for AIX 5L?
• What applications are running on the server, what version are they?
• Do your applications run on the version of AIX 5L that you intend to install?
• Are your applications binary compatible with AIX 5L?
• Will there be any licensing issues on the updated server?
• Do you have the necessary O/S support available during the migration?
• What are the fallback options if problems occur?
• Is my system and hardware microcode up-to-date
Before installing AIX 5L, it is worth reviewing the basic system requirements and these
are as follows.
These values are the minimum requirements for the OS and although installation may
take a number of hours with this minimum configuration, the resulting AIX 5L image will run
normally but possibly with above average paging activity (depending on usage). For
example, installation of AIX 5.1 on a 43p-150 system takes approximately one hour to
complete.
Tip: A ‘new and complete overwrite’ install is the only way to obtain a JFS2 ‘rootvg’.
2.5 Backups
An important consideration for any configuration change is the backup strategy. Most
systems are regularly backed up but before starting a migration, it is strongly
recommended to verify that your backup is readable. For more information on backups
and associated commands, please refer to http://www.ibm.com/servers/aix/library/ and
review: AIX Version 4.3 Books->System Management Concepts: Operating System
and Devices->Chapter 9. Backup and Restore.
2.5.1 mksysb
If you wish to create a specific pre-migration backup, one of the easiest ways to do
this is by using the mksysb command. mksysb creates an installable image of the
root volume group either in a file or onto a bootable tape and if necessary, this can be
used to restore the ‘rootvg’ to the original state. The only way to ensure that the
mksysb image is correct is by performing a test restoration from the media. For
example, to create a mksysb image of ‘rootvg’, you can use the command syntax as
follows.
mksysb -i /dev/rmt0
Where /dev/rmt0 is the tape device to write the image to and -i specifies that a
/image.data file be created for use by the installation process.
2.5.2 backup
The backup command can be used to save individual files or file systems and can
be used for incremental backup operations. If you intend to use backup to save the
non ‘rootvg’ file systems on your system before the migration processes, it is
important to ensure that you use level 0 for the backup which ensures that all files are
included in the backup process. The only way to ensure that the backup image is
correct is by performing a test restoration from the media. For example, to backup all
files on the /spdata file system, you can use the command syntax as follows.
Please refer to the command description for more information on the syntax and
arguments.
alt_disk_install –C hdisk4
# file 32bit_app
32bit_app: executable (RISC System/6000) or object
module not stripped
# file 64bit_app
64bit_app: 64-bit AIX executable or object module
not stripped
Note: Depending on your system configuration, lppchk –c may take a little while to
complete.
Boot Logical Volume should be at least 12 megabytes. Before you migrate, please
check the boot logical volume to ensure that it is large enough for the migration to take
place without error, if it is not, it is best to increase it before the migration, although the
migration code will try to do this also.
The size is the number of partitions (PPs) multiplied by the size of the partitions (PP
SIZE). In this example that is 1x4=4 megabytes and so, ‘hd5’ is not large enough.
If only one disk is in the ‘rootvg’, then ‘hd5’ is on that disk and you can look at the
mapping of the partitions on a hard disk using lspv:
# lspv -M hdisk0 | pg
hdisk0:1 hd5:1
hdisk0:2-51
hdisk0:52 lv03:36
hdisk0:53 lv03:37
hdisk0:54 lv03:38
hdisk0:55 lv03:39
hdisk0:56 lv03:40
hdisk0:57 lv03:41
hdisk0:58 lv03:42
....
If ‘rootvg’ is on more than one disk, simply run 'lspv -M hdiskX' until you find
‘hd5’.
In the example shown here, there is a partition following ‘hd5’ that is free, and ‘hd5’ can
simply be extended by:
# extendlv hd5 1 hdisk0
But if there is not a free partition (or partitions, as needed), next to ‘hd5’, then you need
to remove and recreate ‘hd5’.
1. Using the output of 'lspv -M <diskname>', find 3 free partitions (or 2 is PP SIZE
= 8). The free partitions should be within the first 4GB of the disk.
Then, if you want to recreate ‘hd5’ on hdisk2 (a different disk than ‘hd5’ was originally
on), on partitions 40 and 41, a map file can be created by::
echo "hdisk2:40-41" > your_MAP_file
3. Remove the existing ‘hd5’:
rmlv -f hd5
5. If you are recreating ‘hd5’ on a different disk from the original, then you need to clear
the boot record from the original ‘hd5’ disk. For example, if ‘hd5’ was previously on
‘hdisk1’, use the command:
mkboot -d /dev/hdisk0 -c
6. Use bosboot, to recreate the boot image and boot record on the new disk. For
example, if ‘hd5’ was recreated on ‘hdisk2’, this can be done with:
bosboot -a -d /dev/hdisk2
If however, the new ‘hd5’ is on the same disk as it was originally, you should recreate
the boot image with:
bosboot -a -d /dev/ipldevice
7. If ‘hd5’ is on a different disk from the original, you must update the ‘bootlist’ of your
system, to boot from the new disk. To see the current bootlist do:
bootlist -m normal -o
To change the ‘bootlist’ to use ‘hdisk2’ as the boot device, use the command:
bootlist -m normal hdisk2
If there were additional items in your ‘bootlist’, add them after ‘hdisk2’. For example:
bootlist –m normal hdisk2 cd0 rmt0
Once the ‘bootlist’ has been set, issuing the reboot command will reboot the system
and commence the migration.
This screen is used to select the language used during the migration/installation of AIX
5L. For this example, the English language is used. Once the language has been
selected, the next screen to be displayed will be as follows.
When this screen is displayed, you are able to either start the installation immediately
(just hit Enter) or change/show the installation options (recommended) that will be used
during the install. To review the settings, type the number ‘2’ and hit Enter, the resulting
screen is shown as follows.
Because the system is at AIX 4.3.2, the installation will automatically select to
perform a migration install and this will be the case for any AIX OS at or above AIX
3.2. The installation settings are shown on the screen and may be changed if
required, when ready to install, type the number ‘0’ (the default) and hit ‘Enter’.
The next screen you will see is as follows and shows that the installation is
performing preparation work before starting the real migration.
After a few minutes, the preparation will be complete and you have the opportunity to
review details of the migration installation. Once you are satisfied that the migration is
ready to continue, type the number ‘0’ (the default) and hit ‘Enter’. The screen is as
follows.
As soon as you have select to continue, the migration installation will start and the
console will display the progress of the migration. This is the time to have a cup of tea
or coffee, this portion of the installation will take approximately 30 minutes (depending
on system configuration -a 43p-150 takes 40 minutes) and the next action will be to
mount the next required AIX 5L CD (if any). The system console will request CDs as
needed and when all required filesets are installed, the system will reboot and the
installation will continue (the installation changes the ‘bootlist’ so that a reboot is
performed from the specified installation disk). If a graphics console is used, the
displayed screens may be different from the example ASCII console screen shots but
the content will be similar. When the system has rebooted, the next screen will
request the terminal type of the console. This screen is as follows.
When you have entered the terminal type, the installation will proceed by display a
licence agreement screen. If applicable, highlight the ‘Accept Licence
Agreements’ entry and press ‘Enter’. An example screen follows.
The system will process the licence operation and when complete will display
‘Command: OK’ on the ‘COMMAND STATUS’ screen. Return to the
‘Installation Assistant’ screen by pressing ‘F3’. The screen that will be
display is as follows.
Installation Assistant Screen:
If you have software packages to be updated to the latest level for the new OS, you
can use the ‘Finish migration installation’ entry that will allow more software to be
loaded (updated) on the system. If you have no software to load, select the ‘Tasks
Completed – Exit to Login’ entry and press ‘Enter’.
The system is now running AIX 5L and is ready for use. The complete installation on
a 43p-150 system took approximately 1 hour and 30 minutes.
System software has been verified, the network is functioning and the machine is ready
for further testing –defined during the planning stage.
Verify that the backups are valid before starting the migration
Any nonroot volume groups may be exported before the migration is started as long as
they are not required during the automatic reboot that occurs as part of the migration
process itself. A specific instance of this is ‘spdatavg’ which holds files that are required
at boot time and will cause errors if they are not available.
7 References
www.redbooks.ibm.com
AIX 5L Differences Guide Version 5.1 Edition SG24-5765-01
AIX 5L Porting Guide SG24-6034-00
AIX 5L Performance Tools Handbook SG24-6039-00
Problem Solving and Troubleshooting in AIX 5L SG24-5496-01
AIX 5L Workload Manager (WLM) SG24-5977-01
IBM e(logo)server pSeries 690 System Handbook SG24-7040-00
LPAR Heterogeneous Workloads on the IBM eServer REDP0425
pSeries 690 System
9 Acknowledgements
The author would like to thank the IBM AIX development (install group), ITSO personnel and
UK ATS group for their text contributions, assistance and guidance when writing this
whitepaper.