AIX5.3更新(更新檔安裝更新)
一、檢視更新檔資訊(以我的IBM小型機ps為例)
(1)oslevel -s指令确認版本資訊:
# oslevel -s
5300-10-04-1015
(2)還可以通過instfix -i |grep AIX_ML檢視實際檔案集情況:
# instfix -i |grep AIX_ML
All filesets for 5.3.0.0_AIX_ML were found.
All filesets for 5300-01_AIX_ML were found.
All filesets for 5300-02_AIX_ML were found.
All filesets for 5300-03_AIX_ML were found.
All filesets for 5300-04_AIX_ML were found.
All filesets for 5300-05_AIX_ML were found.
All filesets for 5300-06_AIX_ML were found.
All filesets for 5300-07_AIX_ML were found.
All filesets for 5300-08_AIX_ML were found.
All filesets for 5300-09_AIX_ML were found.
All filesets for 5300-10_AIX_ML were found.
說明:更新檔已經打到10并且打全,如果更新檔沒有打全(以5300-10為例)會顯示:Not all filesets for 5300-10_AIX_ML were found.
(3)如果更新檔沒有打全如5300-10還可以檢視105300-10缺哪些檔案檔案:
# oslevel -rl 5300-10
二、下載下傳AIX5.3所需最新更新檔(以更新檔包5300-12為例)
1.更新檔下載下傳位址:http://www-933.ibm.com/support/fixcentral/
2.更新檔下載下傳好後,将更新檔包上傳至小型機相應目錄。(可通過FTP軟體如:FlashFXP上傳)
注意:2012年1月31号後下載下傳需要先注冊。
三、更新檔安裝。
1、檢視更新前系統狀态。
errpt 沒有異常;
df –g 檢查檔案系統使用率沒有超過80%或者未使用空間大小超過100M;
lsps –s 檢查swap使用率,最好不要超過20%;
lsvg –l rootvg 沒有看到stale的邏輯卷;
lsdev –Cc processor 看到CPU個數正确;
ifconfig –a 看到網卡狀态為UP。
Lppchk -v 執行無異常
2、确定系統正常後,制作系統級全備份 mksysb至錄音帶,
smit mksysb
----Backup Device or File
選擇【/dev/rmt0】
等到螢幕顯示OK後拿出錄音帶. 這時候, 系統備份完成。如圖:

3、更新操作:
(1)停止AIX系統上的所有應用(down)。
(2)對主機上在此次系統更新檔安裝之前所安裝的更新檔作COMMIT操作
1) 以root使用者登入主機
2) Smit commit
對主機在此次系統更新檔安裝之前的更新檔進行commit操作:SOFTWARE name 選擇all,PREVIEW only 選擇no,COMMIT requistites 選擇yes,EXTEND file system if space needed 選擇yes,DETAILED output選擇yes,回車。如圖:
注意:如發現有fail等報錯資訊,請停止更新。
(3)以Preview方式預安裝更新檔,檢查預安裝結果
2) smit update_all
3) INPUT device/directory for software中輸入更新檔檔案的絕對路徑;
4) 選擇Preview預安裝系統更新檔:PREVIEW only 選擇yes;COMMIT software updates選擇yes,SAVE replaced files選擇yes,DETAILED output選擇yes,ACCEPT new license agreement選擇yes,回車。如圖:
注意:檢查是否有報錯資訊。
(4)以Apply方式安裝更新檔,檢查安裝結果
1)以root使用者登入主機
2) cd到更新檔存放目錄
3) smit update_all
4) 安裝系統更新檔:REVIEW only 選擇no;COMMIT software updates選擇No,SAVE replaced files選擇yes,DETAILED output選擇yes,ACCEPT new license agreement選擇yes,回車。
如圖:
注意:檢查是否有報錯資訊
(5)檢視更新檔安裝情況。
lslpp -l |grep -i APPLIED |more 可以看到安裝的系統更新檔,狀态為applied;
oslevel-r看到目前作業系統維護級别;
instfix –vi|grep –i ML|more 可以檢視到已經安裝的更新檔
(6)一般情況AIX系統更新檔安裝不需要重新開機,但為保證系統的穩定性建議重新開機。
# shutdown -Fr(以下為重新開機資訊)
SHUTDOWN PROGRAM
Sun Feb 26 15:35:58 BEIST 2012
0513-044 The sshd Subsystem was requested to stop.
Wait for 'Rebooting...' before stopping.
Error reporting has stopped.
Advanced Accounting has stopped...
Process accounting has stopped.
nfs_clean: Stopping NFS/NIS Daemons
0513-004 The Subsystem or Group, nfsd, is currently inoperative.
0513-044 The biod Subsystem was requested to stop.
0513-044 The rpc.lockd Subsystem was requested to stop.
0513-044 The rpc.statd Subsystem was requested to stop.
0513-004 The Subsystem or Group, gssd, is currently inoperative.
0513-004 The Subsystem or Group, nfsrgyd, is currently inoperative.
0513-004 The Subsystem or Group, rpc.mountd, is currently inoperative.
0513-044 The qdaemon Subsystem was requested to stop.
All processes currently running will now be killed...
Unmounting the file systems...
umount: 0506-349 Cannot unmount /dev/hd10opt: The requested resource is busy.
(7)重新開機後檢查系統運作狀态
errpt 沒有異常;
df –g檢查檔案系統使用率沒有超過80%或者未使用空間大小超過100M;
lsps –s檢查swap使用率,最好不要超過20%;
lsvg –l rootvg沒有看到stale的邏輯卷;
lsdev –Cc processor看到CPU個數正确;
ifconfig –a看到網卡狀态為UP。
Lppchk -v 執行無異常