Migration concepts - How to update the existing lpp source with any additional filesets from the ISO images in aix?
Implementation steps:
First copy the AIX710402 base iso
images files to the target nim server using SCP.
AIX_7.1_Base_7100-04-02_DVD_1_of_2_17226.iso
AIX_7.1_Base_7100-04-02_DVD_2_of_2_17226.iso
1. Mount the iso images:
# loopmount -i AIX_7.1_Base_7100-04-02_DVD_1_of_2_17226.iso -o "-V
cdrfs -o ro" -m /mnt
2. Update the existing lpp source
with any additonal filesets from the dvd media:
# nim -o update -a show_progress=yes -a packages=all -a source=/mnt
aix71_TL04_lppsource
# cd /export/lpp_source/aix71_TL04_lppsource/installp/ppc
# chown root:system *
# chmod 644 *
(or)
smitty nim - perform nim admin
tasks - manage resources - perform operations on resoruce - select
aix71_TL04_lppsource - select "update=add or remove software to or from an
lpp_source" - select "Add" and enter the software
media source
(Target lpp_source=aix71_TL04_lppsource;
sources of software to add=/mnt; software packages to add: all)
Note down the list of packages that
are being added to the lpp_source. We need this list if we were to backout.
3. Repeat step 1 and 2 for the
second DVD image
4. Remove any duplicate software
and superseded updates.
# nim -o lppmgr -a lppmgr_glags="-bu-x-r" aix71_TL04_lppsource
(or)
# smitty nim - perform nim admin
tasks - manage resources - perform operations on resoruce - select
aix71_TL04_lppsource - select "lppmgr=eliminate unnecessasry software in
an lpp_source"
(target
lpp_source=aix71_TL04_lppsource; preview only:no; Remove duplicate
software:yes; Remove superseded software:yes; Remove language software:no;
Preserve lang: [C]; Remove non-simage software: no; Save removed files: no; directory for
storing save files[]; Extend filesystem if space needed: yes)
5. Check the source
"Rstate" equals "Ready for use" and "simages"
equals "yes"
# lsnim -l aix71_TL04_lppsource.
6. Update the SPOT resource (To
make sure SPOT is in right state, check the SPOT resource and if required
update or recreate it)
# nim -o check -a show_progress=yes aix71_TL04_spot
# nim -o lppchk -a show_progress=yes aix71_TL04_spot
# nim -o cust -a lpp_source=aix71_TL04_lppsource aix71_TL04_spot
if any of the above operation fails
or give errors, remove the SPOT resource and recreate it from the updated
lpp_source.
# nim -o remove aix71_TL04_spot
# nim -o define -t spot -a show_progress=yes -a server=master -a
location=/export/spot/aix71_TL04_spot -a installp_flags=aQg -a
source=aix71_TL04_lppsource aix71_TL04_spot
7. Check the source "Rstate"
equals "Ready for use" and correct OS levels are reported.
#lsnim -l aix71_TL04_spot