upgrade aix - liamlamth/blog GitHub Wiki
- aix7.1 to aix7.2.5.5
- patches
- inserted cd (7200-03-02)
- file (7200-05-05)
- interim fix
- mount cd
-
login HMC, identify if the cd-rom is connected to the correct lpar
-
curl; or
HMC >> left bar(system management > servers > server-lamth) >> vios1/vios2 >> hardware information >> virtual i/o adapters >> scsi
-
putty
vt menu ### padmin lsdev -type optical lsmap -all lsmap -vadapter vhost0
-
curl; or
-
login the wrong lpar, remove the cd-rom from the lpar
lsdev -l cd0 lsdev -l cd0 -F parent rmdev -dl vscsi0 -R
-
login the correct lpar, map the cd-rom
cfgmgr lsdev -l cd0 mount -o ro /dev/cd0 /mnt
-
if not work
- login vio, export cd0 to another lpar
rmvdev -f -vtd vtopt0 ### remove the virtual target device (vtd) to release cd0 mkvdev -vdev cd0 -vadapter vhost1 ### to export the cd0 to vhost1
- check lpar id
lssyscfg -m ServerName -r lpar -F name,lpar_id
- login vio, export cd0 to another lpar
-
- backup if possible
- health check:
errpt
lppchk -vm3
- stop application/database/hacmp service if any
- apply patch
- putty HMC
-
shutdown -Fr
, do not use reboot - when rebooting, keep pressing
1
to enter sms mode[5] Select boot options >>> [1] Select Install/Boot Device >>> [3] CD/DVD >>> [9] List All Devices >>> [4] SCSI CD-ROM >>> [2] Normal Mode Boot >>> [1] Yes >>> Input "1" and press Enter >>> Input "1" and press Enter >>> [1] Start Install Now with Default Settings >>> [1] Continue with Install >>> MIGRATION title should be shown in title, otherwise it is new installation [0] Continue with the migration
- after bootup
xterm >>> accept license agreement >>> accept installed license agreement >>> yes >>> enter >>> F3 >>> F3 >>> F3 tasks completed - exit to login
-
tab
to change;F3
=esc
+3
- about 30-50 mins to complete
-
- pro-check:
oslevel -s
: os version is updated but may not be the expected version
bootlist -m normal -o
: bootlist is assigned to rootvg - apply other patches file
- mount to the server if needed (aix servers requires to add the target/source ip and hostnames in
/etc/hosts
in both server) instfix -i | grep ML
instfix -ick
<the patch not found> | grep :-:
, find out the missing patch-
smit update_all
, fill in the patch location
*setpreview
to true,commit
to false, in order to pre-check
*setagreement
to true
*usually it may need to patch twice as the first update may still be missing some patch, useoslevel -s
to check shutdown -Fr
- mount to the server if needed (aix servers requires to add the target/source ip and hostnames in
- apply interim fix
emgr -e IJ43869s5a.221212.epkg.Z -p ### preview emgr -e IJ43876s5a.221212.epkg.Z -X ### execute emgr -l ### confirm, state should be Q shutdown -Fr emgr -l ### confirm, state should be S
- unload cd-rom