Update Fixpack & Interim Fix

Update 7200-04-00-0000 to 7200-05-06-2320 
 Update Fixpacks 
 Download 
 
 Instruction:  https://www.ibm.com/support/pages/updating-new-technology-level-or-service-pack   
 Download: https://www.ibm.com/support/fixcentral/aix/selectFixes?release=7.2&function=release   
 
 下載注意事項： 
 
 提供機型與機號的資訊，且下載版本須相符合約裡的機型機號。 
 需要登入 IBMid，且過程中需要 Email 驗證。 
 變更下載選項
 
 HTTPS 下載 
 請勾選 ISO 格式 (檔案約 7-8 GB) 
 
 
 
 Pre-Checks 
 1.System Backup 
 備份 VG: rootvg 至其他未使用的 PV，PV 空間需相等或足夠 rootvg 的使用。 
 # 複製 VG: rootvg 至 hdisk1, 請確認 hdisk1 無重要資料
alt_disk_copy -B -d hdisk1 
 NOTE: 如果 VG: rootvg 有兩個 PV 做 Mirror，須改用以下指令： 
 # 複製 rootvg 至 hdisk6
mkszfile
sed 's/COPIES= [2-3]/COPIES= 1/g' /image.data > /image.data.one_copy
nohup alt_disk_copy -B -i /image.data.one_copy -d hdisk6 > clonelog.log & 
 Optional: 如果目的 PV 曾經做過備份，執行以下指令先做 VG 卸載 
 exportvg hdisk6 
 2.Boot Image Verification 
 檢查目前開機磁碟位置: hd5 是預設開機磁區 
 root@aixvm:> lslv -m hd5

hd5:N/A
LP PP1 PV1 PP2 PV2 PP3 PV3
0001 0001 hdisk0
 
 3.Firmware 
 It is recommended to check and update the firmware level when a technology level update is being considered. In general, it's best to apply firmware updates before software updates, but that is not always the case. 
 4.Fileset Consistency 
 Ideally, it returns to the command line with no output. If you receive output and are unfamiliar with how to resolve it, call the support center for assistance before running your update. 
 lppchk -v 
 Install the fixpacks 
 掛載更新檔: H11072988.iso 
 mkdir /mnt/iso
loopmount -i H11072988.iso -o "-V cdrfs -o ro" -m /mnt/iso 
 1. Commit Applied Software Updates 
 將前一次的更新執行 commit，這樣可以釋出一些可用磁碟空間 
 smitty > Software Installation and Maintenance > Software Maintenance and Utilities > Commit Applied Software Updates 
 2.先更新Installp 
 如果目前版本與要更新的版本，中間跨了許多版本，建議先更新安裝程式 installp，可以避免更新失敗。 
 # Check if any EFIX installed, if so, remove it before update.
lslpp -e
emgr -r -L <EFIX-Label>

# Using smitty
smitty install_latest

# Using CLI
installp -acd /mnt/iso bos.rte.install

# Check the version
lslpp -L | grep bos.rte.install 
 
 INPUT device / directory for software : [/mnt/iso]  
 SOFTWARE to update : bos.rte.install 
 PREVIEW only?  (install operation will NOT occur) : no 
 
 3.PREVIEW: yes 
 smitty update_all 
 
 INPUT device / directory for software : [/mnt/iso]  
 SOFTWARE to update : _update_all 
 PREVIEW only?  (install operation will NOT occur) : yes 
 COMMIT software updates? : no 
 SAVE replaced files? : yes 
 ... 
 ACCEPT new license agreements? : yes 
 
 4.PREVIEW: no 
 
 PREVIEW only?  (install operation will NOT occur) : no 
 
 Post checks 
 Check the Technology Level (TL) and Service Pack (SP) 
 # Check TL
oslevel -r

# Check SP
oslevel -s 
 Check Fileset Consistency 
 # Ideally, it returns to the command line with no output.
lppchk -v 
 Interim Fix (APAR) 
 URL to check the APAR number 
 https://www.ibm.com/support/pages/apar/[apar number] 
 Interim fix installation 
 # List all interim fixes on the system
emgr -l
emgr -l IJ50602m7a

# Preview & Install an interim fix package
emgr -p -e IJ50602m7a.240409.epkg.Z
emgr -X -e IJ50602m7a.240409.epkg.Z 
 FAQ 
 EFIX MANAGER LOCKS 
 
 EFIX MANAGER LOCKS ------------------ 
   * * * ATTENTION * * * 
   The following selected filesets are locked by EFIX manager: 
   bos.rte.control 
   installp has halted this operation because one or more files in the   filesets listed above are registered as having an EFIX. You must remove   these EFIXES before performing operations on the given fileset. 
   To get a listing of all locked filesets and the locking EFIX label,    execute the following command: 
   # /usr/sbin/emgr -P  
   To remove the given EFIX, execute the following command: 
   # /usr/sbin/emgr -r -L <EFIX label>  
   For more information on EFIX management please see the emgr man page   and documentation. 
 
 Solution: 
 # List the EFIX installed
emgr -l

# List the EFIX locked
emgr -P

# Remove the EFIX locked
emgr -r -L <EFIX label>