vug migrating to aix 7.2 with nimadm€¦ · • this presentation demonstrateshow to migrate to...

71
March 16 th , 2018 AIX VUG Migrating to AIX 7.2 with minimal downtime Chris Gibson ([email protected]) AIX & Power Systems Consultant IBM Systems Lab Services

Upload: dolien

Post on 13-Jun-2018

475 views

Category:

Documents


39 download

TRANSCRIPT

Page 1: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

March 16th, 2018AIX VUG

Migrating to AIX 7.2 with minimal downtime

Chris Gibson ([email protected])AIX & Power Systems Consultant IBM Systems Lab Services

Page 2: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

2IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Chris Gibson ([email protected]) IBM Lab Services AIX & Power Systems Consultant.

• IBM Redbooks co-author & technical editor/author for IBM Systems Magazine and IBM developerWorks. “Chris’s AIX blog” on developerWorks. IBM Champion for Power Systems.

• IBM Redooks: NIM A-Z, Exploiting WPARs and AIX 7.1 Differences Guide.

• @cgibbo Twitter – All things AIX and POWER

AIX VUG March 2018

Page 3: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

3IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Minimize migration downtime with NIMADM• Purpose

• This presentation demonstrates how to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool.

• You'll learn how to minimize the downtime required when migrating to the latest release of the AIX operating system.

• NIM• The AIX OS provides the Network Installation Manager (NIM).• Assist in administering and updating large numbers of AIX systems. • NIM Alternate Disk Migration (nimadm) feature. • Perform AIX migrations without the need for lengthy outages. • Demonstrate procedures we used to migrate our AIX systems. • Assume you are already very familiar with AIX and NIM. • Already have a NIM master in your environment. • Assume you are NOT familiar with nimadm.• Read this Redbook, NIM from A to Z in AIX 5L:

http://www.redbooks.ibm.com/redpieces/abstracts/sg247296.html?Open

Page 4: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

4IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating AIX Overview – conventional methodWithout NIM(adm)…what would we do?

• Over the years, I've migrated to several new releases of the AIX OS.

• To do this I would have typically used one of the “old school” methods.

• These methods consisted of either :

A) Migration using the AIX installation media (CD, DVD, iso) or

B) Migration using NIM.

• Method A is still possible, even in virtualized environments via the use of File-Backed devices.

• Method B is also perfectly viable by network booting the client LPAR and performing the migration using a NIM master.

• http://gibsonnet.net/aix/AIX_Migration_with_File-Backed_VIOS_Devices.htm

• http://www.ibm.com/developerworks/aix/library/au-aix-system-migration-installation/index.html

Page 5: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

5IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating AIX Overview – conventional method• Virtual Media Library - File-backed devices - on VIOS. Poor man’s NIM.

$ lsrep

Size(mb) Free(mb) Parent Pool Parent Size Parent Free

25497 9979 rootvg 279552 132096

Name File Size Optical Access

AIX_v7.2_DVD_1.iso 3222 vtopt4 ro

AIX_v7.2_DVD_2.iso 3976 None ro

Page 6: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

6IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating AIX Overview - conventional method• Boot the AIX system from either NIM or VML virtual CD. Perform migration.

Page 7: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

7IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating AIX Overview – conventional method• BOS menus – select Migration Install, etc…and….wait.......................for install to finish. Fingers crossed!

Page 8: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

8IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• The downside with both of these methods is that they both require significantdowntime on the system while the migration takes place.

• This downtime could be anywhere from 30-45 minutes to an hour or more, depending on the system.

• This can be a concern in environments with tight outage windows. Systems not clustered for HA.

Conventional AIX migration methods = DOWNTIME!

Page 9: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

9IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Why should I use nimadm?

• The nimadm utility offers several advantages over a conventional migration. • Creates a copy of a NIM client's rootvg (on a spare disk on the client). • Similar to alternate disk install (alt_disk_copy).• Migrate the alternate rootvg disk to a newer version of AIX.

• All of this can be done without disruption to the client .• There is no outage required to perform the migration.

• After the migration is finished, the only downtime required will be a scheduled reboot of the system.

• Another advantage is that the actual migration process occurs on the NIM master.• Taking the load off the client LPAR. • This reduces the processing overhead on the client.

• Minimizes the performance impact to the running applications.

AdvantagesNIM Alternate Disk Migration

Page 10: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

10IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Benefits?

• For customers with a large number of AIX systems.• nimadm tool supports migrating several clients at once.

• Benefits over other migration methods:

1. Reduced downtime for the client. 2. Migration is executed while the system is up and running. 3. No disruption to any of the applications or services running on the client.4. Upgrade can be done at a time convenient to the administrator. 5. At a later stage, a reboot can be scheduled in order to restart the system at the

later level of AIX.6. Back out, to a previous version of AIX, is simple. Does not require recovery from

mksysb.

AdvantagesNIM Alternate Disk Migration

Page 11: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

11IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Other reasons to use nimadm.

• Process is very flexible: Can be customized – optional customization resources i.e. image_data, bosinst_data, pre/post_migration scripts, exclude_files, and so on.

• Quick recovery from migration failures. All changes are performed on the rootvg copy (altinst_rootvg).

• Any serious problems with the migration, the original rootvg is still available and the system has not been impacted.

• If a migration fails or terminates at any stage, nimadm is able to quickly recover from the event and clean up afterwards.

• There is little for the administrator to do except determine why the migration failed, rectify the situation, and attempt the nimadm process again.

• If the migration completed but issues are discovered after the reboot, then the administrator can back out easily by booting from the original rootvg disk.

AdvantagesNIM Alternate Disk Migration

Page 12: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

12IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Preparation

• You must have a NIM master running AIX 7.2 or higher with the latest Technology Level and Service Pack.

• The NIM master (as always) should be at the same or higher AIX level than the level you are migrating to on the client.

• The lpp_source and SPOT NIM resources that have been selected for the migration must match the AIX level to which you are migrating.

• The NIM master must have the bos.alt_disk_install.rte fileset installed in the AIX 7.2 SPOT that will be used for the migration.

• Your live applications & application data should NOT reside in or run from rootvgi.e. DB2, Oracle, WAS, etc. Otherwise you need to stop applications before nimadm. “…application servers and the database servers do not start normally after the nimadmcommand operations are complete.”

• https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.cmds4/nimadm.htm

Preparing the NIM environmentfor nimadm

Page 13: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

13IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Preparation – continued.

• The target client must be registered with the NIM master as a standalone NIM client.

• The NIM master must be able to execute remote commands on the client using nimshor rsh.

• Ensure the NIM client has a spare disk (not allocated to a volume group) large enough to contain a complete copy of its rootvg.

• If rootvg is mirrored, break the mirror and use one of the disks for the migration.• Assign a new SAN disk for this purpose.

• Ensure the NIM master has a volume group (for example, nimadmvg) with enough free space to cater for a complete copy of the client's rootvg.

• If more than one AIX migration is occurring for multiple NIM clients, make sure there is capacity for a copy of each clients rootvg. Perhaps create a separate VG for each NIM client that is migrating.

Preparing the NIM environmentfor nimadm

Page 14: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

14IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Why not use NFS?

• By default, nimadm uses NFS for many of the tasks during the migration.• This can be a problem on slower networks because NFS writes can be very expensive.

• To avoid using NFS, a Local Disk Caching option exists that can provide some performance advantages.

• Local disk caching allows the NIM master to avoid having to use NFS to write to the client.

• Local Disk Caching will create the client file systems in a volume group (of your choosing) on the NIM master.

• It will then use streams (via nimsh or rshd) to cache all of the data from the client to the file systems on the NIM master.

Local disk caching versus NFSnimadm

Page 15: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

15IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Why Local Disk Caching?

• Local disk caching provides:• Improved performance for nimadm operations on relatively slow networks.• Improved performance for nimadm operations that are bottlenecked in NFS writes.• Decreased CPU usage on the client.• Client file systems not exported (security conscious).• Allows TCB enabled systems to be migrated with nimadm*.• For best performance, use a volume group on the NIM master that does not contain the

NIM resources being used for the AIX migration.

Some potential disadvantages: • Cache file systems take up space on the NIM master. • Increased CPU usage on the NIM master.• Increased disk I/O activity on the master. • Requires additional storage (when migrating lots of NIM clients).• May need more CPU and memory on NIM master (when migrating lots of NIM clients).

*Starting with AIX 7.2, the Trusted Computing Base security model is not supported. Therefore, it is disabled during the traditional migration to AIX 7.2 and when you migrate to AIX 7.2 by using the nimadm command.

Local disk caching - Advantagesnimadm

Page 16: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

16IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Local disk cachingnimadm

nimadm phases with disk caching•There are 12 phases to nimadm, however…•Here are the most important steps!

Page 17: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

17IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

12 Phases• The nimadm command performs a migration in 12 phases:

1. Master issues alt_disk_install to the client. Makes a copy of the clients rootvg to target disk. In this phase, the alternate root volume group (altinst_rootvg) is created.

2. Master creates the cache file systems in the cache volume group (nimadmvg) on the NIM master. Some initial checks for the required migration disk space are performed. VG name, nimadmvg, is an example only. It can be named anything you wish (1 to 15 characters in length).

3. The NIM master copies the NIM client's data to the cache file systems in nimadmvg. This data copy is done via nimsh (or rsh).

4. If a pre-migration script resource has been specified, it is executed in this phase.

5. System configuration files are saved. Initial migration space is calculated and appropriate file system expansions are made. The bos image is restored and the device database is merged (similar to a conventional migration).

6. All system filesets are migrated using installp. Any required RPM images are also installed during this phase.

Phasesnimadm

Page 18: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

18IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Phases

7. If a post-migration script resource has been specified, it is executed in this phase.

8. The bosboot command is run to create a client boot image, which is written to the client's alternate boot logical volume (alt_hd5).

9. All the migrated data is now copied from the NIM master's local cache file and synced to the client's alternate rootvg via nimsh or rsh.

10. The NIM master cleans up and removes the local cache file systems.

11. The alt_disk_install command is called again to make the final adjustments and put altinst_rootvg to sleep. The bootlist is set to the target disk.

12. Cleanup is performed to end the migration.

Note: Each phase can be executed individually by using the -P flag. The nimadm phases must be run sequentially.

Phasesnimadm

Page 19: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

19IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Before we start…• A few points for you to consider.

• I recommended that you do not to make any changes to your system once the migration is underway, such as adding local users, changing local passwords, adding print queues, and the like. LDAP is fine.

• If possible, wait until the migration has finished and the system has been rebooted on the new version of AIX.

• If you must perform administration tasks prior to the reboot, you should take note of the changes and re-apply them to the system after it has been rebooted into AIX 7.2.

• We developed, tested, and verified our migration procedures several times beforeimplementing them on our production systems.

• This allowed us time to verify that the steps were correct and that the AIX migrations would complete as expected. I recommend you do the same.

• If you have a multibos image in rootvg, remove it. AIX migrations are not supported with multibos enabled systems.**

• Ensure all rootvg LVs are renamed to their legacy names. If necessary, create a new instance of rootvg and reboot the LPAR.

**AIX 7.2 will allow migrations (i.e. 7.2 à NextAIX). You can now do preservation or migration operating system installs on a multibos instance. Previously these wouldn’t be a recognised rootvg. NIMADM is also acceptable. The logical volumes will be renamed to the normal lv names after the installation. NIMADM: for this case, the rename doesn’t occur until you boot to the altinst_rootvg. http://www.ibm.com/support/knowledgecenter/ssw_aix_72/com.ibm.aix.cmds3/multibos.htm

Consider this…nimadm

Page 20: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

20IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Before we start…• Ensure all rootvg LVs are renamed to their legacy names. If necessary, create a new

multibos instance and reboot the LPAR. For example:

# multibos –sXp# multibos –sX# shutdown –Fr

• Remove the old multibos instance.

# multibos -R

• Confirm the legacy LV names are now in use i.e. not bos_.

Consider this…nimadm

Page 21: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

21IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Let’s migrate…..

Page 22: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

22IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Let’s start…• Let's use nimadm now to migrate an AIX system. • We will migrate a system from AIX 7.1 to AIX 7.2. The NIM master in this environment

is running AIX 7.2 TL0 SP1. • Our NIM client is running AIX 7.1 TL3 SP3 (migrating to AIX 7.2 TL0 SP1).• Ensure that you document the system and take a mksysb before performing any

maintenance activity. You know this already, right? But I have to say it! • Ensure that you read the AIX 7.2 release notes and review the documented

requirements such as the amount of free disk space required.• Check your firmware levels, HMC code, VIOS code etc. Use the FLRT to check

compatibility.

• Prior to a migration, it is always a good idea to run the pre_migration script on the system to catch any issues (e.g. multibos) that may prevent the migration from completing successfully. You can find this script on the AIX 7.2 installation media.

# loopmount -i $PWD/AIX_v7.2_Base_Install_DVD_1_of_2_TL_7200-01-00_112016.iso -o "-V cdrfs -o ro" -m /mnt

# cd /mnt ; find . | grep pre_mig

./usr/lpp/bos/pre_migration

Migrating to AIX 7.2 using nimadmnimadm

Page 23: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

23IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Pre-Migration checks…

• Run this script, review the output (in /home/pre_migration), and correct any issues that it reports before migrating.

# ./pre_migration

All saved information can be found in: /home/pre_migration.120621143915

Checking size of boot logical volume (hd5).

Listing software that will be removed from the system.

Listing configuration files that will not be merged.

Listing configuration files that will be merged.

Saving configuration files that will be merged.

Running lppchk commands. This may take awhile.

Please check /home/pre_migration.120621143915/software_file_existence_check for possible errors.

Please check /home/pre_migration.120621143915/software_checksum_verification for possible errors.

Please check /home/pre_migration.120621143915/tcbck.output for possible errors.

All saved information can be found in: /home/pre_migration.120621143915

It is recommended that you create a bootable system backup of your system

before migrating.

• Commit any applied filesets: installp -c all.

Migrating to AIX 7.2 using nimadmnimadm

Page 24: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

24IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

bos.alt_disk_install.rte

• The fileset bos.alt_disk_install.rte fileset is installed on the NIM master:

# lslpp -l bos.alt_disk_install.rte

Fileset Level State Description

---------------------------------------------------------------------------

Path: /usr/lib/objrepos

bos.alt_disk_install.rte 7.2.0.1 COMMITTED Alternate Disk Installation Runtime

Path: /etc/objrepos

bos.alt_disk_install.rte 7.2.0.1 COMMITTED Alternate Disk Installation Runtime

• And it is also installed in the AIX 7.2 TL0 SP1 SPOT:

# nim -o showres spotaix72TL0SP1 | grep bos.alt

bos.alt_disk_install.rte 7.2.0.1 C F Alternate Disk Installation

Migrating to AIX 7.2 using nimadmnimadm

Page 25: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

25IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Spare disk, nimsh (or rsh)…

• If rootvg is mirrored, break the mirror and reduce it to a single disk.• Assign another SAN disk. • This gives you a spare disk that can be used for the migration. • To allow nimadm to do its job, we can use nimsh or temporarily enable rshd on the

client LPAR. • We will disable it again after the migration.

# chsubserver -a -v shell -p tcp6 -r inetd

# refresh –s inetd

# cd /

# vi .rhosts

nim01 root

# chmod 600 .rhosts

• On the NIM master, I can now ‘nimsh’ (or 'rsh’) to the client and run a command as root.

# nim -o showlog AIXlpar1

# rsh AIXlpar1 whoami

Migrating to AIX 7.2 using nimadmnimadm

Page 26: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

26IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Ready to migrate…

• At this point I'm ready to migrate. • The process will take around 30-45 minutes; all the while the applications on the

LPAR will continue to function as normal. • On the NIM master, I have created a new volume group (VG) named nimadmvg. • Note: Don’t use rendev to rename hdisk. Non-hdisk name will cause nimadm to fail.

Thanks to Shawn Bodily (PowerHAGuy) for the tip!• This VG has enough capacity to cater for a full copy of the NIM clients rootvg. • This VG will be empty until the migration is started. • NIM client: spare disk with enough capacity for a full copy of its rootvg.• On the master (nim1):

# mkvg –y nimadmvg hdisk9

# lsvg -l nimadmvg

nimadmvg:

LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT

• On the client (AIXlpar1):# lspv

hdisk0 0000273ac30fdcfc rootvg active

hdisk1 000273ac30fdd6e None

Migrating to AIX 7.2 using nimadmnimadm

Page 27: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

27IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Flags and options

• The nimadm command is executed from the NIM master.

# nimadm -j nimadmvg -c AIXlpar1 -s spotaix72 -l lpp_sourceaix72 -d hdisk1 –Y

Where:

• –j flag specifies the VG on the master which will be used for the migration• -c is the client name • -s is the SPOT name • -l is the lpp_source name • -d is the hdisk name for the alternate root volume group (altinst_rootvg) • -Y agrees to the software license agreements for software that will be installed during the

migration.

nimadm command line optionsnimadm

Page 28: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

28IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Executing nimadm…• Now I can sit back and watch the migration take place. Grab a tea or coffee!• All migration activity is logged on the NIM master in the /var/adm/ras/alt_mig directory. • For this migration, the log file name is AIXlpar1_alt_mig.log. Verbose –D –V.• Here's a sample of some of the output you can expect to see for each phase:

MASTER DATE: Wed Sep 30 13:48:27 AEST 2015

CLIENT DATE: Wed Sep 30 13:48:27 AEST 2015

NIMADM PARAMETERS: -j nimvg -c AIXlpar1 -s spotaix72 -l lpp_sourceaix72 -d hdisk1 -Y

Starting Alternate Disk Migration.

+-----------------------------------------------------------------------------+

Executing nimadm phase 1.

+-----------------------------------------------------------------------------+

Cloning altinst_rootvg on client, Phase 1.

Client alt_disk_install command: alt_disk_copy -j -M 7.2 -P1 -d "hdisk1"

Calling mkszfile to create new /image.data file.

Checking disk sizes.

LOGICAL_VOLUME= hd11admin

FS_LV= /dev/hd11admin

Creating cloned rootvg volume group and associated logical volumes.

Creating logical volume alt_hd5

Creating logical volume alt_hd6

Creating logical volume alt_hd8

...etc...

Generating a list of files

for backup and restore into the alternate file system...

Phase 1 complete.

Running nimadm….nimadm

Page 29: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

29IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 1.

+-----------------------------------------------------------------------------+

Cloning altinst_rootvg on client, Phase 1.

Client alt_disk_install command: alt_disk_copy -j -M 7.2 -P1 -d "hdisk1"

Calling mkszfile to create new /image.data file.

Checking disk sizes.

LOGICAL_VOLUME= hd11admin

FS_LV= /dev/hd11admin

Creating cloned rootvg volume group and associated logical volumes.

Creating logical volume alt_hd5

Creating logical volume alt_hd6

Creating logical volume alt_hd8

Creating logical volume alt_hd4

Creating logical volume alt_hd2

Creating logical volume alt_hd9var

Creating logical volume alt_hd3

Creating logical volume alt_hd1

Creating logical volume alt_hd10opt

Creating logical volume alt_hd11admin

Creating logical volume alt_lg_dumplv

Creating logical volume alt_livedump

Creating /alt_inst/ file system.

Creating /alt_inst/admin file system.

Creating /alt_inst/home file system.

Creating /alt_inst/opt file system.

Creating /alt_inst/tmp file system.

Creating /alt_inst/usr file system.

Creating /alt_inst/var file system.

Creating /alt_inst/var/adm/ras/livedump file system.

Generating a list of files

for backup and restore into the alternate file system...

Phase 1 complete.

nimadmPhase 1

Page 30: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

30IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 2.

+-----------------------------------------------------------------------------+

Creating nimadm cache file systems on volume group nimadmvg.

Checking for initial required migration space.

Creating cache file system /AIXlpar1_alt/alt_inst

Creating cache file system /AIXlpar1_alt/alt_inst/admin

Creating cache file system /AIXlpar1_alt/alt_inst/home

Creating cache file system /AIXlpar1_alt/alt_inst/opt

Creating cache file system /AIXlpar1_alt/alt_inst/tmp

Creating cache file system /AIXlpar1_alt/alt_inst/usr

Creating cache file system /AIXlpar1_alt/alt_inst/var

Creating cache file system /AIXlpar1_alt/alt_inst/var/adm/ras/livedump

+-----------------------------------------------------------------------------+

Executing nimadm phase 3.

+-----------------------------------------------------------------------------+

Syncing client data to cache ...

+-----------------------------------------------------------------------------+

Executing nimadm phase 4.

+-----------------------------------------------------------------------------+

nimadm: There is no user customization script specified for this phase.

nimadmPhase 2, 3 & 4

Page 31: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

31IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 5.

+-----------------------------------------------------------------------------+

Saving system configuration files.

Checking for initial required migration space.

Setting up for base operating system restore.

/AIXlpar1_alt/alt_inst

Restoring base operating system.

Merging system configuration files.

Running migration merge method: ODM_merge Config_Rules.

Running migration merge method: ODM_merge SRCextmeth.

Running migration merge method: ODM_merge SRCsubsys.

Running migration merge method: ODM_merge SWservAt.

Running migration merge method: ODM_merge pse.conf.

Running migration merge method: privcmds_mig.

Running migration merge method: privdevs_mig.

Running migration merge method: ODM_merge vfs.

Running migration merge method: ODM_merge xtiso.conf.

Running migration merge method: ODM_merge PdAtXtd.

Running migration merge method: ODM_merge PdDv.

Running migration merge method: convert_errnotify.

Running migration merge method: passwd_mig.

Running migration merge method: login_mig.

Running migration merge method: user_mrg.

Running migration merge method: secur_mig.

Running migration merge method: RoleMerge.

Running migration merge method: methods_mig.

Running migration merge method: mkusr_mig.

Running migration merge method: ODM_merge GAI.

Running migration merge method: ODM_merge PdAt.

Running migration merge method: merge_smit_db.

Running migration merge method: ODM_merge fix.

Running migration merge method: merge_swvpds.

Running migration merge method: SysckMerge.

nimadmPhase 5

Page 32: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

32IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 6.

+-----------------------------------------------------------------------------+

Installing and migrating software.

Checking space requirements for installp install.

Expanding /AIXlpar1_alt/alt_inst/ local filesystem.

Filesystem size changed to 1048576

Expanding /AIXlpar1_alt/alt_inst/usr local filesystem.

Filesystem size changed to 4653056

Expanding /AIXlpar1_alt/alt_inst/var local filesystem.

Filesystem size changed to 851968

Installing software with the installp installer.

+-----------------------------------------------------------------------------+

Pre-installation Verification...

+-----------------------------------------------------------------------------+

Verifying selections...done

Verifying requisites...done

Results...

…etc…

Filesets processed: 1 of 681 (Total time: 3 secs).

installp: APPLYING software for:

wio.vscsi 7.2.0.0

…etc…

install_all_updates: Checking for recommended maintenance level 7200-00.

install_all_updates: Executing /usr/bin/oslevel -rf, Result = 7200-00

install_all_updates: Verification completed.

install_all_updates: Log file is /var/adm/ras/install_all_updates.log

install_all_updates: Result = SUCCESS

Restoring device ODM database.

nimadmPhase 6

Page 33: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

33IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 7.

+-----------------------------------------------------------------------------+

nimadm: There is no user customization script specified for this phase.

+-----------------------------------------------------------------------------+

Executing nimadm phase 8.

+-----------------------------------------------------------------------------+

Creating client boot image.

bosboot: Boot image is 53248 512 byte blocks.

Writing boot image to client's alternate boot disk hdisk1.

+-----------------------------------------------------------------------------+

Executing nimadm phase 9.

+-----------------------------------------------------------------------------+

Adjusting client file system sizes ...

Adjusting size for /

Adjusting size for /admin

Adjusting size for /home

Adjusting size for /opt

Adjusting size for /tmp

Adjusting size for /usr

Adjusting size for /var

Adjusting size for /var/adm/ras/livedump

Syncing cache data to client ...

nimadmPhase 7, 8 & 9

Page 34: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

34IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 10.

+-----------------------------------------------------------------------------+

Unmounting client mounts on the NIM master.

forced unmount of /AIXlpar1_alt/alt_inst/var/adm/ras/livedump

forced unmount of /AIXlpar1_alt/alt_inst/var/adm/ras/livedump

forced unmount of /AIXlpar1_alt/alt_inst/var

forced unmount of /AIXlpar1_alt/alt_inst/var

forced unmount of /AIXlpar1_alt/alt_inst/usr

forced unmount of /AIXlpar1_alt/alt_inst/usr

forced unmount of /AIXlpar1_alt/alt_inst/tmp

forced unmount of /AIXlpar1_alt/alt_inst/tmp

forced unmount of /AIXlpar1_alt/alt_inst/opt

forced unmount of /AIXlpar1_alt/alt_inst/opt

forced unmount of /AIXlpar1_alt/alt_inst/home

forced unmount of /AIXlpar1_alt/alt_inst/home

forced unmount of /AIXlpar1_alt/alt_inst/admin

forced unmount of /AIXlpar1_alt/alt_inst/admin

forced unmount of /AIXlpar1_alt/alt_inst

forced unmount of /AIXlpar1_alt/alt_inst

Removing nimadm cache file systems.

Removing cache file system /AIXlpar1_alt/alt_inst

Removing cache file system /AIXlpar1_alt/alt_inst/admin

Removing cache file system /AIXlpar1_alt/alt_inst/home

Removing cache file system /AIXlpar1_alt/alt_inst/opt

Removing cache file system /AIXlpar1_alt/alt_inst/tmp

Removing cache file system /AIXlpar1_alt/alt_inst/usr

Removing cache file system /AIXlpar1_alt/alt_inst/var

Removing cache file system /AIXlpar1_alt/alt_inst/var/adm/ras/livedump

nimadmPhase 10

Page 35: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

35IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

+-----------------------------------------------------------------------------+

Executing nimadm phase 11.

+-----------------------------------------------------------------------------+

Cloning altinst_rootvg on client, Phase 3.

Client alt_disk_install command: alt_disk_copy -j -M 7.2 -P3 -d "hdisk1"

## Phase 3 ###################

Verifying altinst_rootvg...

Modifying ODM on cloned disk.

forced unmount of /alt_inst/var/adm/ras/livedump

forced unmount of /alt_inst/var/adm/ras/livedump

forced unmount of /alt_inst/var

forced unmount of /alt_inst/var

forced unmount of /alt_inst/usr

forced unmount of /alt_inst/usr

forced unmount of /alt_inst/tmp

forced unmount of /alt_inst/tmp

forced unmount of /alt_inst/opt

forced unmount of /alt_inst/opt

forced unmount of /alt_inst/home

forced unmount of /alt_inst/home

forced unmount of /alt_inst/admin

forced unmount of /alt_inst/admin

forced unmount of /alt_inst

forced unmount of /alt_inst

Changing logical volume names in volume group descriptor area.

Fixing LV control blocks...

Fixing file system superblocks...

Bootlist is set to the boot disk: hdisk1 blv=hd5

+-----------------------------------------------------------------------------+

Executing nimadm phase 12.

+-----------------------------------------------------------------------------+

Cleaning up alt_disk_migration on the NIM master.

Cleaning up alt_disk_migration on client AIXlpar1.

nimadmPhase 11 & 12

Page 36: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

36IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migration complete!

• After the migration is complete, confirm that the bootlist is set to the altinst_rootvg disk.

# lspv | grep rootvg

hdisk0 0000273ac30fdcfc rootvg active << AIX 7.1

hdisk1 000273ac30fdd6e altinst_rootvg active << AIX 7.2

# bootlist -m normal –o

hdisk1 blv=hd5 pathid=0

hdisk1 blv=hd5 pathid=1

• At an agreed time, reboot the LPAR and confirm that the system is now running AIX 7.2.

# oslevel –s

7100-03-03-1415

# shutdown –Fr

; system reboots here…takes a few minutes.

# oslevel –s

7200-00-01-1543

nimadmAfter the migration

Page 37: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

37IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Health checks and clean up

• At this point, perform some general AIX system health checks to ensure that the system is configured and running as expected.

• https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/DIY+AIX+System+Health+Checklist

• You may want to consider upgrading other software such as openssl, openssh, lsof, etcat this stage.

• If enabled, the rsh daemon can now be disabled after the migration.

• # chsubserver -d -v shell -p tcp6 -r inetd• # refresh –s inetd• # cd / • # rm .rhosts• # ln -s /dev/null .rhosts

• There is also a post_migration script that you can run to verify the migration. You can find this script in /usr/lpp/bos, after the migration.

nimadmAfter the migration

Page 38: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

38IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Post migration• The post_migration command performs the following actions:

• Verify fileset version consistency. • Check the installation list from before the migration, and inform the user of any filesets that might

still need migrating. • Compare saved and merged configuration scripts and save the differences.

https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.install/migration_scripts.htm

# /usr/lpp/bos/post_migration

Checking for software that was unchanged during the migration.

Comparing saved configuration files.

Running lppchk commands. This may take awhile.

All saved information can be found in: /home/post_migration.170801122811

[home/post_migration.170801122811 # ls -ltrtotal 115232-rw-r--r-- 1 root system 87783 Aug 01 12:28 software_installed_after_migration-rw-r--r-- 1 root system 1276 Aug 01 12:28 filesets_to_be_updated-rw-r--r-- 1 root system 16984 Aug 01 12:28 filesets_updated-rw-r--r-- 1 root system 0 Aug 01 12:29 software_consistency-rw-r--r-- 1 root system 58868353 Aug 01 12:29 compared_saved_configuration_files-rw-r--r-- 1 root system 731 Aug 01 12:29 software_link_existence_check-rw-r--r-- 1 root system 290 Aug 01 12:29 software_file_existence_check-rw-r--r-- 1 root system 290 Aug 01 12:30 software_checksum_verification

nimadmAfter the migration

Page 39: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

39IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Post migration

• With the migration finished, the applications are started and the application support team verify that everything is functioning as expected.

• Take a mksysb and document the system configuration after the migration.

• Once we are all satisfied that the migration has completed successfully, we then return rootvg to a mirrored disk configuration (only if required).

# lspv | grep old_rootvg

hdisk0 000071da26fe3bd0 old_rootvg

# alt_rootvg_op -X old_rootvg

; If mirrored rootvg

# extendvg –f rootvg hdisk0

# mirrorvg rootvg hdisk0

# bosboot -a -d /dev/hdisk0

# bosboot -a -d /dev/hdisk1

# bootlist -m normal hdisk0 hdisk1

# bootlist -m normal -o hdisk0 blv=hd5 hdisk1 blv=hd5

nimadmAfter the migration

Page 40: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

40IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Uh oh! Back out!

• If there was an issue with the migration, easily back out to the previous release of AIX.• Instead of re-mirroring rootvg (previous slide), we would change the boot list to point at

the previous rootvg disk (old_rootvg) and reboot the LPAR.

# lspv | grep old_rootvg

hdisk0 000071da26fe3bd0 old_rootvg

# bootlist -m normal hdisk0

# bootlist -m normal –o

hdisk0 blv=hd5

# shutdown –Fr

• This is much simpler and faster than restoring a mksysb image (via NIM, tape, or DVD), as you would with a conventional migration method.

nimadmAfter the migration

Page 41: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

41IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

No more lengthy after hours upgrades!

• By using nimadm, we were able to reduce the overall downtime required when migrating our systems to AIX 7.2.

• We were also given a convenient way to back out a migration, had it been necessary to do so.

• I hope this provides you with some ideas on how to best migrate your systems to AIX 7.2, when the time comes.

• http://www.ibm.com/developerworks/aix/library/au-migrate_nimadm/?S_TACT=105AGY20&S_CMP=HP

nimadmAfter the migration

Page 42: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

42IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Other tips, tricks and best practices for AIX migration and NIM…..

Page 43: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

43IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Alternative migration technique

• Migrate mksysb image from one version of AIX to another.

• Migrate AIX 6.1 mksysb image to AIX 7.1 or 7.2.

• Similar to nimadm – uses cache file systems (nimadmvg).

• Use the migrated mksysb image to install a new LPAR via NIM.

• Source LPAR running AIX 6.1 TL6 SP3. Took a mksysb of the source system to NIM master.

root@aix61lpar / # oslevel -s6100-06-03-1048

• NIM mksysb resource named cg-aix61.

root@nim1 / # lsnim -t mksysb | grep cgcg-aix61 resources mksysb

nimadmnimadm – migrate mksysb image

Page 44: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

44IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Alternative to standard nimadm - continued

• AIX 7.1 lpp_source and SPOT ready and waiting on my NIM master.

root@nim1 / # lsnim -t lpp_source | grep aix7aix7tl0sp2 resources lpp_source

root@nim1 / # lsnim -t spot | grep aix7spotaix7tl0sp2 resources spot

nimadmnimadm – migrate mksysb image

Page 45: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

45IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Alternative to standard nimadm - continued

• To migrate the mksysb image from AIX 6.1 to AIX 7.1, I ran the following nimadmcommand:

# nimadm -T cg-aix61 -O /export/mksysb/cg-aix71 -s spotaix7tl0sp2 -l aix7tl0sp2 -j nimadmvg -Y -N cg-aix71

• The flags indicate the following:• -T specifies the existing AIX 6.1 NIM mksysb resource.• -O specifies the output location for the migrated mksysb resource.• -s indicates the AIX 7.1 NIM SPOT resource for the migration.• -l indicates the AIX 7.1 NIM lpp_source resource for the migration.• -j identifies the volume group that will be used on the NIM master to create file systems.• -Y Agress to required software license agreements.• -N specifies the name of the new AIX 7.1 NIM mksysb resource to be created after

migration.

nimadmnimadm – migrate mksysb image

Page 46: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

46IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrate mksysb…continued

• Output.

# nimadm -T cg-aix61 -O /export/mksysb/cg-aix71 -s spotaix7tl0sp2 -l aix7tl0sp2 -j nimadmvg -Y -N cg-aix71

Initializing the NIM master.Verifying alt_disk_migration eligibility.Initializing log: /var/adm/ras/alt_mig/cg-aix61_alt_mig.logStarting Alternate Disk Migration.

+-----------------------------------------------------------------------------+Executing nimadm phase 1.+-----------------------------------------------------------------------------+Processing target mksysb resource cg-aix61.Restoring /image.data from mksysb image.

+-----------------------------------------------------------------------------+Executing nimadm phase 2.+-----------------------------------------------------------------------------+Creating nimadm cache file systems on volume group nimadmvg.Checking for initial required migration space.Creating cache file system /cg-aix61_mm_alt/alt_instCreating cache file system /cg-aix61_mm_alt/alt_inst/adminCreating cache file system /cg-aix61_mm_alt/alt_inst/homeCreating cache file system /cg-aix61_mm_alt/alt_inst/optCreating cache file system /cg-aix61_mm_alt/alt_inst/tmpCreating cache file system /cg-aix61_mm_alt/alt_inst/usrCreating cache file system /cg-aix61_mm_alt/alt_inst/varCreating cache file system /cg-aix61_mm_alt/alt_inst/var/adm/ras/livedump

continuednimadm – migrate mksysb image

Page 47: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

47IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrate mksysb…NIM mksysb resource - continued

• New NIM msysb resource after successful migration.

+-----------------------------------------------------------------------------+Executing nimadm phase 11.+-----------------------------------------------------------------------------+Defining NIM mksysb resource ...New NIMmksysb resource name is cg-aix71

• Once the migration had completed, I found a new mksysb file in /export/mksysb (as expected). The file was named cg-aix71. And a new NIM mksysb resource was now available.

root@nim1 / # ls -ltr /export/mksysb/ | grep aix7-rw-r--r-- 1 root system 1967411200 Jan 06 11:00 cg-aix71

root@nim1 / # lsnim -t mksysb | grep aix7cg-aix71 resources mksysb

continuednimadm – migrate mksysb image

Page 48: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

48IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrate mksysb…NIM mksysb resource - continued

• I was able to use the new, migrated, AIX 7.1 mksysb image to install a new LPAR.

AIX Version 7Copyright IBM Corporation, 1982, 2010.login: rootroot's Password:******************************************************************************** ** Welcome to AIX Version 7.1! ** ** ** Please see the README file in /usr/lpp/bos for information pertinent to ** this release of the AIX Operating System. ** ********************************************************************************Last login: Thu Jan 6 13:21:04 EETDT 2011 on /dev/vty0

# oslevel -s7100-00-02-1041

https://www.ibm.com/developerworks/mydeveloperworks/blogs/cgaix/entry/migrating_to_aix_7_1_with_nimadm?lang=en

continuednimadm – migrate mksysb image

Page 49: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

49IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Other considerations – continued…

• nimadm does NOT convert rootvg file systems from JFS to JFS2.

• I have requested this feature. You should too! https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=117376

• Starting with 6.1 TL4, alt_disk_copy has new –T flag to convert to JFS2.

• One option is to use nimadm to migrate, then run alt_disk_copy with –T.

• Really only a problem for AIX 5.3 systems – alt_disk_copy –T not available.

• If you are on AIX 6.1 TL4 or higher, run alt_disk_copy –T first, then migrate to AIX 7.2.

https://www.ibm.com/developerworks/mydeveloperworks/blogs/cgaix/entry/convert_rootvg_file_systems_to_jfs2_using_alt_disk_copy?lang=en

Other tips and tricksMigrating to AIX 7.2 – JFS to JFS2

Page 50: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

50IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Other considerations – continued…

• Pre & Post migration scripts.

-a PreMigrationScript Specifies the pre-migration NIM script resource.-z PostMigrationScript Specifies the post-migration NIM script resource.

• Use post migration script to update 3rd party MPIO device driver filesets

• e.g. HDLM, HDS ODM, etc.

# nimadm -j nimadmvg -c lparaix01 -s spotaix610605 -l lpp_sourceaix610605 -d hdisk2 -z XYZPOST –Y

https://www.ibm.com/developerworks/mydeveloperworks/blogs/cgaix/entry/using_a_post_migration_script_with_nimadm1?lang=en

Other tips and tricksnimadm – pre & post scripts

Page 51: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

51IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX 7.2 NIM master - migrating clients to from AIX 5.3 to 6.1 (6.1 is EOS April 2017)

• If you plan on using your AIX 7.2 NIM master to migrate your AIX 5.3 clients to AIX 6.1, then make sure you install the AIX 7.2 bos.alt_disk_install.rte fileset into the AIX 6.1 SPOT resource first. Failure to do so will result in your nimadm operation reporting the following error message:

# nimadm -j nimadmvg -c lparaix53 -s spotaix610605 -l lpp_sourceaix610605 -d hdisk2 -YInitializing the NIM master.Initializing NIM client lparaix53.0042-001 nim: processing error encountered on "master":

/usr/bin/lslpp: Fileset bos.alt_disk_install.rte not installed.

0505-204 nimadm: SPOT spotaix610605 does not have bos.alt_disk_install.rte installed.0505-205 nimadm: The level of bos.alt_disk_install.rte installed in SPOTspotaix610605 (0.0.0.0) does not match the NIM master's level (7.2.0.1).Cleaning up alt_disk_migration on the NIM master.

• You can verify the correct fileset is installed in your 6.1 SPOT using the following nimcommand:

# nim -o showres spotaix610605 | grep bos.alt_disk_install.rtebos.alt_disk_install.rte 7.2.0.1 A F Alternate Disk Installation

• Applies to AIX 5.3 -> 7.1 and AIX 6.1 -> 7.1 also.

Other tips and tricksMigrating to AIX 6.1 – from AIX 5.X – with a 7.2 NIM master

Page 52: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

52IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX 7.2 NIM master - migrating clients to from AIX 5.3 to 6.1 - continued…

• You must install the AIX 7.2 bos.alt_disk_install.rte fileset into your AIX 6.1 SPOT resource.

# smit nim_res_op

....etc...

> spotaix610605

Customize a SPOT

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

* Resource Name spotaix610605

* Source of Install Images [lpp_sourceaix72] +

Fileset Names [bos.alt_disk_install.rte]

Other tips and tricksMigrating to AIX 6.1 – from AIX 5.X – with a 7.2 NIM master

Page 53: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

53IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

nimadm & multibos tipOther tips and tricks

Multibos /bos_inst

• As mentioned earlier, multibos is not supported in nimadm environments. Before you start a nimadm migration make sure you have removed any old standby BOS instance and that your rootvg logical volumes are not using any bos_ LV names.

• Exception: AIX 7.2 will allow it. AIX 7.2 à NextAIX.

• During our tests we found that even though we removed the standby instance (multibos –R), the nimadm process failed with the following error:

+-----------------------------------------------------------------------------+Executing nimadm phase 11.

+-----------------------------------------------------------------------------+Cloning altinst_rootvg on client, Phase 3.Client alt_disk_install command: alt_disk_copy -j -M 7.1 -P3 -d "hdisk1"## Phase 3 ###################Verifying altinst_rootvg...alt_disk_copy: 0505-218 ATTENTION: init_multibos() returned an unexpected result.Cleaning up.…etc..0505-187 nimadm: Error cloning altinst_rootvg on client.Cleaning up alt_disk_migration on the NIM master.Cleaning up alt_disk_migration on client lpar1.Client alt_disk_install command: alt_disk_install -M 7.1 -XBootlist is set to the boot disk: hdisk0 blv=hd5

• Unfortunately, it appears that ‘multibos –R’ may not clean up the /bos_instdirectory. If this directory exists the nimadm operation will most likely fail. The simplefix (in our case) was to remove the /bos_inst directory before attempting the AIX migration.

# rm –r /bos_inst

Page 54: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

54IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating AIX 4.3.3 to AIX v7.xOther tips and tricks

Can I upgrade AIX 4.3.3. to AIX 5, 6 or 7, using nimadm? Yes, you can!• A customer of mine actually did this….needed to test an old & unsupported

application on AIX 4.3.3 and then migrate to AIX 7.1.• Installed AIX 4.3.3 (from CD) on an old R/S6000 F50! PowerPC 604e processor!• Put it on his network and used nimadm to migrate it to AIX 5.3. It all worked. Took 5.3

mksysb & installed on POWER7 795. Migrated to 7.1.• One problem in nimadm phase 8 with 4.3.3 to 5.3 migration…• Because in v5.X the boot image requires 12 MB of space!• 1 PP of 8MB in size is not sufficient which is why NIMADM failed.• Extend the size of hd5 and away we go…

NIMADM PARAMETERS: -j nimadmvg -c uataixl03 -s spotaix531208 -l lpp_sourceaix531208 -d hdisk1 -Y -V

Executing nimadm phase 8.+-----------------------------------------------------------------------------+Creating client boot image.bosboot: Boot image is 44452 512 byte blocks.Writing boot image to client's alternate boot disk hdisk1.dd: /alt_inst/usr/lib/boot/bootinfo.txt: A file or directory in the path name does not exist.44452+0 records in.44452+0 records out.dd: 0511-053 The write failed.: There is a request to a device or address that does not exist.0505-184 nimadm: Error writing client boot image.Cleaning up alt_disk_migration on the NIM master.------------------------------------------------------------

Workaround…# extendlv hd5 1# bosboot -ad /dev/hdisk0; re-run nimadm.

Page 55: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

55IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Other considerations….

• Latest AIX 7.2 installation tipshttp://www-01.ibm.com/support/docview.wss?uid=isg1SSRVPOAIX72TIPS170127-1543

• Preparing to Migrate in AIX http://www-01.ibm.com/support/docview.wss?uid=isg3T1011431

• This document covers migration preparation information. • Information regarding version 5, 6 , and 7 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 & 7

What migration will do to your system• Post migration checks

Other tips and tricksMigrating to AIX 7.2

Page 56: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

56IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

IBM SDDPCM and NIMADM• Note: If your NIM master and/or clients use the SDDPCM multi-pathing disk driver (with IBM SVC or other IBM disk),

please don’t forget that you’ll need to update the SDDPCM fileset to the correct version for AIX 7.2.

• The devices.sddpcm.71.rte fileset will need to be removed and devices.sddpcm.72.rte installed. Boot from SAN.

• IBM support has scripts to assist with this process when performing conventional migrations (i.e. from media and/or the VML) and with NIM/nimadm.

• There are several different scripts, depending on the type of migration you are performing. For example, if you are performing a conventional migration then you can request the “Procedures for migrating SDDPCM before AIX Operating Systems migration or Virtual I/O Server migration” scripts (two scripts: migratePCMbeforeOSmigrate.sh and restorelvm.sh).

• If you are migrating a NIM client, using nimadm, then should request the “Migrate SDDPCM along with the nimadmmethod of AIX OS migration via NIM for SAN boot or Non-SAN boot client” scripts (four scripts: preSDDPCMOSmigration.sh, postSDDPCMOSmigration.sh, savelvm.sh and restorelvm.sh).

• Contact IBM support for the nimadm pre/post migration scripts. Open a PMR.

Other tips and tricksMigrating to AIX 7.2

Overview of SDDPCM migration methods with IBM AIX (July 2017)https://www-01.ibm.com/common/ssi/cgi-bin/ssialias?htmlfid=TSW03553USEN&

Upgrading the AIX OS with SDD or SDDPCM installed or migrating SDD to SDDPCM and booting AIX rootvg from a SAN devicehttp://www-01.ibm.com/support/docview.wss?uid=ssg1S1002845

Page 57: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

57IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

How do I migrate my NIM master to AIX 7.2?• Do you have a VIOS on the same frame as your NIM master?• Use the VIOS Virtual Media Library (VML). Conventional migration method using install media (ISO).

• Migrate Your NIM Master to AIX 7.2 Using the VIOS VML• http://www.ibmsystemsmag.com/aix/administrator/systemsmanagement/migrate-NIM-master/

Other tips and tricksMigrating to AIX 7.2

Page 58: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

58IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX Tunables Post Migration

• After an AIX migration, I usually like to run the tuncheck command to verify the current tunable parameters are valid. One area that may indicate a tuning problem is the AIX error report. If you see the following messages in the errpt output, you may want to verify the current settings are valid:

IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTIOND221BD55 0523115112 I O perftune RESTRICTED TUNABLES MODIFIED AT REBOOT---------------------------------------------------------------------------LABEL: TUNE_RESTRICTEDIDENTIFIER: D221BD55

Date/Time: Wed May 23 11:51:16 EET 2012Sequence Number: 676Machine Id: 00C342C64C00Node Id: lparaix53Class: OType: INFOWPAR: GlobalResource Name: perftune

DescriptionRESTRICTED TUNABLES MODIFIED AT REBOOT

Probable CausesSYSTEM TUNING

User CausesTUNABLE PARAMETER OF TYPE RESTRICTED HAS BEEN MODIFIED

Recommended ActionsREVIEW TUNABLE LISTS IN DETAILED DATA

Detail DataLIST OF TUNABLE COMMANDS CONTROLLING MODIFIED RESTRICTED TUNABLES AT REBOOT, SEE FILE /etc/tunables/lastboot.logvmo

Other tips and tricksMigrating to AIX 7.2 - Tunables

Page 59: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

59IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX Tunables Post Migration - continued

• In the output above you’ll notice that we are advised to check the /etc/tunables/lastboot.log for a modified restricted vmo tuning parameter.

• At this point I usually like to run the tuncheck command against the current /etc/tunables/nextboot file and review its output.

• As you can see, in the example below, we are warned that several restricted tunables are not set to their default values.

• These values may not be appropriate for your newly migrated AIX 7.2 (or 7.1 or 6.1) system.

• Settings that worked well with 5.3 are most likely no longer appropriate with 7.2.

# tuncheck -p -f /etc/tunables/nextbootWarning: restricted tunable lrubucket is not at default valueWarning: restricted tunable strict_maxperm is not at default valueWarning: unknown parameter lru_file_repage in stanza vmoWarning: restricted tunable maxperm% is not at default valueWarning: restricted tunable maxclient% is not at default valueChecking successful

Other tips and tricksMigrating to AIX 7.2 - Tunables

Page 60: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

60IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX Tunables Post Migration - continued

• Based on the output above, the tuning for this newly migrated 7.2 system appears to be inappropriate. Unless we have a valid reason (which has been verified by IBM AIXsupport) we should set these tunables to their default AIX 7.2 settings.

• You can reset individual tunables to their defaults using the –d flag and the corresponding tuning command. For example to set the maxperm% tunable to its default you would run the following vmo command:

# vmo -p -d maxperm%Modification to restricted tunable maxperm%, confirmation required yes/no yesSetting maxperm% to 90 in nextboot fileSetting maxperm% to 90Warning: a restricted tunable has been modified

• If you want to set all the vmo tunables back to their defaults you would run the following vmo command with the –D option (requires bosboot & reboot):

# vmo -r -D

Other tips and tricksMigrating to AIX 7.2 - Tunables

Page 61: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

61IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

AIX Tunables Post Migration - continued

• Unless you’ve permanently set restricted tunables in your /etc/tunables/nexboot file, the migration will change the systems default tuning to match the newer version of AIX.

• For example, we observed the following tuning changes on our AIX 5.3 system after migrating to 7.2.

• The maxperm default value changed from 80 to 90:

maxperm% 80 80 80 1 100 % memory Dmaxperm% 90 90 90 1 100 % memory D

• The minperm default value changed from 20 to 3:

minperm% 20 20 20 1 100 % memory Dminperm% 3 3 3 1 100 % memory D

• Note that starting with AIX 7.1 lru_file_repage is hardcoded to 0 and removed from the list of vmo tunables. Please refer to the following document, Oracle Architecture and Tuning on AIX v2.20, for more information. http://www-03.ibm.com/support/techdocs/atsmastr.nsf/WebIndex/WP100883

Other tips and tricksMigrating to AIX 7.2 - Tunables

Page 62: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

62IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

What’s on the old rootvg disk?

• Wake up the old rootvg and use chroot to find out!

# oslevel –s << Booted on AIX 7.27200-01-02-1717

# alt_rootvg_op -W -d hdisk0 << Wake up the old rootvgWaking up old_rootvg volume group ...

# chroot /alt_inst /alt_inst/bin/ksh oslevel –s << Check oslevel level with chroot on old rootvg (/alt_inst)7100-04-03-1642 << It’s AIX 7.1 TL4 SP3

# alt_rootvg_op -S -d hdisk0 << Put old rootvg to sleep again. YOU MUST DO THIS!!!Putting volume group altinst_rootvg to sleep ...forced unmount of /alt_inst/var/adm/ras/livedumpforced unmount of /alt_inst/var/adm/ras/livedumpforced unmount of /alt_inst/varforced unmount of /alt_inst/varforced unmount of /alt_inst/usrforced unmount of /alt_inst/usrforced unmount of /alt_inst/tmpforced unmount of /alt_inst/tmpforced unmount of /alt_inst/optforced unmount of /alt_inst/optforced unmount of /alt_inst/homeforced unmount of /alt_inst/homeforced unmount of /alt_inst/adminforced unmount of /alt_inst/adminforced unmount of /alt_instforced unmount of /alt_instFixing LV control blocks...Fixing file system superblocks...

alt_rootvg_op tipAfter the migration

Page 63: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

63IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

What version of AIX is installed on that hdisk?• Look for the pad string in the blv by running the following command:

# /usr/lpp/bosinst/blvset -d /dev/hdiskX –glevel

• The result should show your current version (3.2, 4.2, 4.3, 5.1, 5.2, 5.3, 6.1, 7.1 or 7.2, you get the idea!). If it does not, run the following command:

# /usr/lpp/bosinst/blvset -d /dev/hdiskX –plevel

• It will move the cursor to the next line and wait for input. For the input of this command, enter your version (e.g. 7.2), then press Enter.

• In an attempted migration from one AIX Version to a higher one, no migration option is presented on BOS menu. Can be fixed with blvset (or bosboot –ad /dev/ipldevice). http://www-01.ibm.com/support/docview.wss?uid=isg3T1025509

# lspv

hdisk0 00f94f58a3b21780 rootvg active

hdisk1 00f94f58a4464da1 None# /usr/lpp/bosinst/blvset -d /dev/hdisk0 –glevel

7.2# /usr/lpp/bosinst/blvset -d /dev/hdisk1 –glevel

7.1

Page 64: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

64IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

RSH is DEAD LONG LIVE NIMSH!

• Starting with AIX 6.1 TL8 and AIX 7.1 TL2, the nimadm tool now supports the NIM service handler (nimsh) protocol.

• Using this protocol allows AIX migrations to be performed without enabling rshd on the NIM client.

• These articles describe how to use nimsh with nimadm to migrate to AIX version 7.1:• http://www.ibm.com/developerworks/aix/library/au-nim_service_handler/• http://www.ibmsystemsmag.com/aix/administrator/systemsmanagement/nimsh_nimadm/• https://www.ibm.com/developerworks/community/blogs/cgaix/entry/rsh_is_dead_long_live

_nimsh?lang=en• Based on my tests, using nimsh adds around 20 minutes to the overall migration time,

when compared with rsh. Your mileage may vary.

NIMSH+NIMADM============Start: Fri Aug 30 14:37 EET 2013Finish: Fri Aug 30 15:47 EET 20131 hr 10 min

• Yes, RSH is still supported with nimadm today but long term support for it will (eventually) disappear!

.

Use nimshRSH is dead.

SHELL+NIMADM============Start: Sun Sep 1 20:01 EET 2013Finish: Sun Sep 1 20:53 EET 201352 min

Page 65: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

65IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

I used LPM to move a NIM client, now my NIM mksysb’s don’t work! L

• CPUid changes after LPM operation. Sure does! Working as designed.• Everything is OK until you restart the nimsh daemon. Cached CPUid is replaced.• Use SSL with NIM. The CPUid is not used (ignored). SSL cert’s instead.

https://www.ibm.com/developerworks/community/blogs/cgaix/entry/NIMSH_SSL_and_LPM?lang=enhttps://www.ibm.com/developerworks/community/blogs/cgaix/entry/NIMSH_SSL_Hang?lang=en*

[root@nimmaster]/ # nimconfig –c[root@nimmaster]/ # /usr/samples/nim/ssl/certview -I /tftpboot/server.pem

[root@AIXcg]/# nimclient –c[root@nimmaster]/ # lsnim -l AIXcgAIXcg:

class = machinestype = standaloneconnect = nimsh (secure)

[root@AIXcg]/var/adm/ras# tail -f nimsh.logFri Apr 29 23:13:33 2016 passing OpenSSL setting of 1Fri Apr 29 23:13:33 2016 set symbol tableFri Apr 29 23:13:33 2016 cert filename discovered: /ssl_nimsh/certs/nimmast.0Fri Apr 29 23:13:33 2016 ** OpenSSL FIPS mode enabled successfullyFri Apr 29 23:13:33 2016 seed_prngFri Apr 29 23:13:33 2016 Loading certificates..Fri Apr 29 23:13:33 2016 Loading private key file..Fri Apr 29 23:13:33 2016 create BIOFri Apr 29 23:13:33 2016 - SSL Connection verified successfully –

*Note: APAR IV93152: NIM PUSH OPERATION TO CLIENT HANG ON NIMSH OVER SSL https://www-304.ibm.com/support/entdocview.wss?uid=isg1IV93152

Other tips and tricksNIMSH, SSL, LPM & mksysb

Page 66: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

66IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

VIOS to NIM Master Mapping. • Minimum NIM master levels for VIOS NIM clients.• Your NIM master must always be at the highest level of AIX that it's required to support.• https://www-304.ibm.com/webapp/set2/flrt/sas?page=viostable

Other tips and tricksNIM and VIOS support

Page 67: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

67IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Known issues related to nimadm and/or AIX migration• If you're planning to migrate from AIX 7.1 TL5 to AIX 7.2, using nimadm, please review the following

APARs first. An ifix is available for both APARs (for AIX 7.1 TL5 SP1). You can request the ifix(es) from IBM support. Workaround: Use rsh instead of nimsh.

IJ01500: NIMADM ISSUE WITH RPM COMMANDhttp://www-01.ibm.com/support/docview.wss?uid=isg1IJ01500

IJ01499: NIMADM FAILS DUE TO SOME COMMANDS (AWK AND GREP) NOT FOUNDhttp://www-01.ibm.com/support/docview.wss?uid=isg1IJ01499

• nimadm with cachevg fails in updating RPMs. Request an ifix.

IJ02912: NIMADM WITH CACHEVG MAY FAIL IN UPDATING RPM WITH CHFS ERRORhttps://www-01.ibm.com/support/entdocview.wss?uid=isg1IJ02912

Error descriptionnimadm with cachevg may fail in updating rpm with chfs error.

install_all_updates: Updating rpm packages..Validating RPM package selections ...chfs: No record matching '/dev/fslv04' was found in /etc/filesystems.

Local workaroundUse nimadm without cache VG

Page 68: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

68IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Known issues related to nimadm and/or AIX migration• Problem Description: AIX 7.1 TL4 SP3 to AIX 7.2 TL1 SP3 migration. The bos.cifs_fs.rte is down

level. Problem Resolution: Fileset (bos.cifs_fs) is available in the AIX 7.2 Expansion Pack. Download ISO from ESS.

https://www.ibm.com/support/knowledgecenter/en/ssw_aix_72/com.ibm.aix.rnbase720/rnbase720.htm

"CIFS Client filesetThe bos.cifs_fs software package has moved to the AIX Version 7.2 Expansion Pack media. The CIFS Client is provided as-is (without support)."

To install the base fileset you need to set the installp 'force overwrite' option ( -F), so run:

# installp -d . -acFXY bos.cifs_fs.7.2.0.0.I

Once the base fileset is installed, run 'smitty update_all" again to bring the fileset up to the latest level for AIX 7.2.

Page 69: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

69IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

• Using NIM Alternate Disk Migration (NIMADM)• http://www-01.ibm.com/support/docview.wss?uid=isg3T1012571

• AIXchange (Rob McNelly).• http://ibmsystemsmag.blogs.com/aixchange/• http://ibmsystemsmag.com/blogs/aixchange/archive/using-mksysb-for-nim-backups/

• Chris’s AIX blog.• https://www.ibm.com/developerworks/mydeveloperworks/blogs/cgaix/?lang=en• https://gibsonnet.net/AIX/

• AIX articles on IBM developerWorks.• http://www.ibm.com/developerworks/views/aix/libraryview.jsp?sort_by=&show_abstract=tr

ue&show_all=&search_flag=&contentarea_by=AIX+and+UNIX&search_by=chris+gibson&topic_by=-1&industry_by=-1&type_by=All+Types&ibm-search=Search

• AIX articles on IBM Systems Magazine• http://ibmsystemsmag.com/authors/chris-gibson/

• Follow AIX resources on Twitter: @cgibbo, @Kristijan, @robmcnelly, @chet_metha, @IBMAIXdoc, @power_gaz, @mr_nmon

AIX blogs and other online resources

Page 70: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

Copyright IBM Corporation 2017

IBM Systems Lab Services & Training - Power Systems

Terms and Conditions: Actual Tasks, Deliverables, Service Estimates, and travel requirements vary with each client’s environment. When we have reached a final agreement on the scope of your initiative and our level of assistance, a formal document describing our proposed work effort, costs, etc, will be presented for your approval and signature.

Jacell Bangit – Opportunity Manager [email protected] +61409 271 375 IBM Systems Lab Services & Training - Power SystemsServices for AIX, and Linux on Power

OverviewThe NIM Alternate Disk Migration tool is a significant feature of the AIX Enterprise offering that allows customers to migrate their AIX systems to a newer release with minimal downtime.

Conventional AIX migration techniques often require significant downtime; from anywhere between 30-45 minutes to several hours. This can be a serious concern in environments with tight outage windows and lack of high availability or clustering. The requirement for lengthy application outages often led to delays in migrating to a new AIX release, leaving customers unable to take advantage of the latest features and enhancements.

This offering covers the concepts, implementation and configuration of the NIM alternate disk technology.

This offering provides a customer or business partner knowledge and hands-on experience to make an intelligent decision when implementing NIMAD over traditional migration strategies. This offering is a quick, cost effective method to integrate this technology into an existing Power environment, training IT Staff and obtaining the best availability possible from IBM Power architecture.

Duration:* 1 – 2 day engagement. Customers and Business Partners preparing to implement NIMADM on AIX7.2 and achieve minimal application downtime when migrating. POC (Proof of Concept).

Delivery:

This is an onsite offering consisting of standup lectures. Presentation handouts are provided in PowerPoint format.If the scope of this offering is to implement NIMADM into an existing customer or POC environment, IBM will conduct a design and requirements review to insure successful migration to AIX 7.2 of a partition..

Topics:

* Overview of traditional migration methodologies* Introduction of NIMADM concepts, design and comparison to traditional OS update technologies* Introduction of NIMADM requirements and Configuration options* Configure AIX NIM master for NIMADM and examining resource requirements

Who benefits from this workshop?

* Customers and Business Partners considering NIMADM over traditional migration strategies.

* Customers looking to quickly implement NIMADM into existing Power7 and Power8 environments and train their IT staff

* Business partners requiring the knowledge and skills necessary to assist customers migrating to AIX 7.2 with NIMADM.

* Business partners and customers performing POC engagements to evaluate AIX 7.2 NIMADM migration and integrate into existing customer procedures and environments.

AIX7.2MigrationwithNIMADM

70

Page 71: VUG Migrating to AIX 7.2 with nimadm€¦ · • This presentation demonstrateshow to migrate to AIX 7.2 using the NIM Alternate Disk Migration tool

71IBM Systems Technical Events | ibm.com/training/events © Copyright IBM Corporation 2018. Technical University/Symposia materials may not be reproduced in whole or in part without the prior written permission of IBM.

Migrating to AIX 7.2 with minimal downtime

?THANK YOU!

ANY QUESTIONS?

[email protected]