upgrade aix - liamlamth/blog GitHub Wiki

use case

  • aix7.1 to aix7.2.5.5

prerequisite

  • patches
    • inserted cd (7200-03-02)
    • file (7200-05-05)
  • interim fix

cd upgrade

  1. mount cd
    1. 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
        
    2. login the wrong lpar, remove the cd-rom from the lpar

      lsdev -l cd0
      lsdev -l cd0 -F parent
      rmdev -dl vscsi0 -R
      
    3. login the correct lpar, map the cd-rom

      cfgmgr
      lsdev -l cd0
      mount -o ro /dev/cd0 /mnt
      
    4. 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
        
  2. backup if possible
  3. health check: errpt lppchk -vm3
  4. stop application/database/hacmp service if any
  5. apply patch
    1. putty HMC
    2. shutdown -Fr, do not use reboot
    3. 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
      
    4. 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
  6. pro-check:
    oslevel -s: os version is updated but may not be the expected version
    bootlist -m normal -o: bootlist is assigned to rootvg
  7. apply other patches file
    1. mount to the server if needed (aix servers requires to add the target/source ip and hostnames in /etc/hosts in both server)
    2. instfix -i | grep ML
    3. instfix -ick <the patch not found> | grep :-:, find out the missing patch
    4. smit update_all, fill in the patch location
      *set preview to true, committo false, in order to pre-check
      *set agreement to true
      *usually it may need to patch twice as the first update may still be missing some patch, use oslevel -s to check
    5. shutdown -Fr
  8. 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
    
  9. unload cd-rom
⚠️ **GitHub.com Fallback** ⚠️